Skip to content

remove hard-coding /lib/systemd , for build archlinux package #34

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

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

hitsmaxft
Copy link
Contributor

@hitsmaxft hitsmaxft commented Oct 4, 2022

archlinux keep /lib/ own by filesystem , pkg shuould not install under /lib

this pr remove hardcoding /lib/systemd in .service file and meson build scripts , and using PKGPREFIX='/lib/systemd/' as default ,

Directory Symlink Handling: Example time! Arch Linux has a /lib -> /usr/lib symlink. Previously, if pacman was installing a package and it found files in /lib, it would follow the symlink and install it in /usr/lib. However the filelist for that package still recorded the file in /lib. This caused heaps of difficulty in conflict resolving – primarily the need to resolve every path of all package files to look for conflicts. That was a stupid idea! So now if pacman sees a /lib directory in a package, it will detect a conflict with the symlink on the filesystem. If you were using this feature to install files elsewhere, you probably need to look into what a bind mount is! Note that this change requires us to correct the local package file list for any package installed using this mis-feature, so we bumped the database version. Upgrade using pacman-db-upgrade. Thanks to Andrew!

ref http://allanmcrae.com/2014/12/pacman-4-2-released/

@hitsmaxft hitsmaxft changed the title make build option --prefix changable for archlinux remove hard0coding --prefix , for build archlinux package Oct 4, 2022
@hitsmaxft hitsmaxft changed the title remove hard0coding --prefix , for build archlinux package remove hard-coding --prefix , for build archlinux package Oct 4, 2022
@hitsmaxft hitsmaxft changed the title remove hard-coding --prefix , for build archlinux package remove hard-coding /lib/systemd , for build archlinux package Oct 4, 2022
@hitsmaxft hitsmaxft closed this Oct 4, 2022
@hitsmaxft hitsmaxft reopened this Oct 4, 2022
@ssahani ssahani merged commit 01340ce into systemd:main Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants