-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add systemd/system #2468
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
Add systemd/system #2468
Conversation
Some configurations of 'libudev/system' failed in build 1 (
|
All green in build 2 (
|
All green in build 3 (
|
Since udev got merged into systemd directly and on some distros we need to install the |
@Croydon , Thinking from the consumer POV, do you think it would be better..? self.requires("systemd/system")
---
find_package(systemd)
target_link_libraries(mylibrary PUBLIC systemd::libudev) than self.requires("libudev/sysstem")
---
find_package(libudev)
target_link_libraries(mylibrary PUBLIC libudev::libudev) |
A quick random search on the web shows that some projects have created custom However, this might originate from the time before the merge into systemd and could be seen as legacy. Another point to consider: we might want/need more systemd libs in the future. Do we create one system package for each of them or one systemd package with different targets? |
We agree that thanks to components we can get any desired granularity when consuming these _system _ libraries, but I would say that the same granularity is desired when installing the actual system packages that provide these libraries. I mean, if we add a lot of them to the same |
Co-authored-by: Uilian Ries <uilianries@gmail.com>
All green in build 4 (
|
Co-authored-by: Uilian Ries <uilianries@gmail.com>
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.
LGTM
Let's push this one, there is a PR requesting libudev and libusb can be updated too. |
All green in build 5 (
|
I did it. |
Some configurations of 'systemd/system' failed in build 6 (
|
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Some configurations of 'systemd/system' failed in build 7 (
|
Ubuntu Trusty does not have a https://pkgs.org/search/?q=systemd I'm not sure which Ubuntu versions changed that, if we could find that out that would be good. If not, 16.04 Xenial has it for sure. So let's make a switch for |
Sorry if someone already brought this out, but doesn't this recipe collide with #3556 ? Anyway, while checking some other pr for system packages, I noticed that this one fails on these distros: |
@intelligide now that #3556 is merged, do we still need this one ? if yes, we probably want to rename it libsystemd/system |
Yes! We need libudev. #3556 is only about libsystemd, here all libs under systemd are incorporated. |
Co-authored-by: ericLemanissier <ericLemanissier@users.noreply.github.com>
Some configurations of 'systemd/system' failed in build 8 (
|
if tools.os_info.with_yum or tools.os_info.with_dnf: | ||
packages = ["systemd", "systemd-libs", "libudev-devel"] | ||
elif tools.os_info.with_apt: | ||
packages = ["libsystemd-dev", "libudev-dev", "systemd"] |
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.
packages = ["libsystemd-dev", "libudev-dev", "systemd"] | |
packages = ["libudev-dev", "systemd"] | |
if not (tools.os_info.linux_distro == "ubuntu" and tools.os_info.os_version < "15"): | |
packages.append("libsystemd-dev") |
fix ubuntu trusty, which does not have libsystemd-dev
self.info.header_only() | ||
|
||
def package_info(self): | ||
self._fill_cppinfo_from_pkgconfig("systemd", "libsystemd") |
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.
self._fill_cppinfo_from_pkgconfig("systemd", "libsystemd") | |
if not (tools.os_info.linux_distro == "ubuntu" and tools.os_info.os_version < "15"): | |
self._fill_cppinfo_from_pkgconfig("libsystemd", "libsystemd") |
systemd.pc contains only variables. do we really want systemd.pc or libsystemd.pc ?
also, ubuntu trusty has no package providing libsystemd.pc nor libsystemd.so. The alternative would be to raise a ConanInvalidConfiguration on this distro.
Also as I expressed my concerns here #3556 (comment) & here #3556 (comment) - isn't there a huge chance that this might lead to conflicts? How API and ABI stable is libsystemd? I think for other CCI recipes we should only rely on |
If we want to avoid conflicts, we can use provides feature. |
I didn't mean conflicts between Conan packages. I mean a conflict between the Conan package |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Specify library name and version: systemd/system
conan-center hook activated.