-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scotch: update & switch to cmake #22321
base: master
Are you sure you want to change the base?
Conversation
provides=() | ||
conflicts=() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package with the new name should probably conflict, replace, and provide(?) the old name of this package.
The package grokker indicates that the following package needs a rebuild: (Potentially, because one library seems to be split into three libraries now?) |
IIUC, the previous build rules manually created package config files for scotch and ptscotch. They are not created with the CMake build rules. Maybe, you could keep the part of the old build rules that created these files manually? |
endif() | ||
|
||
-add_library(scotcherr library_error.c) | ||
+add_library(scotcherr STATIC library_error.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, you'd like that the shared library also exports the symbols from this source file without having it be its own (shared) library.
If that is your goal here, it would probably be better to have scorcherr
be an OBJECT
library target instead.
Otherwise, users would need to link to the shared library and this static library.
Info from scotch about .pc
|
Like I wrote, the previous build rules created the package config files manually. See this part of the
So, no surprise that upstream doesn't know about files that are only created by the MSYS2 packaging rules... |
Ok, now I see that the files were created manually, is it also possible to do it this way for the cmake version? |
I don't know why it wouldn't be possible. |
You need to provide *.pc.in file with every required data in it. Then just use cmake's |
Draft:
#22063