-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
lvm2: cleanup & fix eval error when systemd=null #62660
Conversation
@GrahamcOfBorg build lvm2 |
sed -i /DEFAULT_SYS_DIR/d Makefile.in | ||
sed -i /DEFAULT_PROFILE_DIR/d conf/Makefile.in | ||
'' + stdenv.lib.optionalString (systemd != null) '' | ||
substituteInPlace scripts/lvm2_activation_generator_systemd_red_hat.c \ | ||
--replace /usr/bin/udevadm ${systemd}/bin/udevadm | ||
''; | ||
|
||
# gcc: error: ../../device_mapper/libdevice-mapper.a: No such file or directory |
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.
Oops, forgot to remove this comment ...
The closure still picks up systemd via udev, however, overriding with eudev is necessary to avoid the reference.
--enable-applib has been removed.
8b44cf5
to
ecd6931
Compare
@GrahamcOfBorg build systemd_with_lvm2 |
lvm2: cleanup & fix eval error when systemd=null (cherry picked from commit bd58bdc)
FTR I am getting the |
@joachifm How do you use this / for what? (I'm looking into building Edit: This works: https://github.com/nh2/parted/releases/tag/v3.3 nix-build -E '(import <nixpkgs> {}).pkgsStatic.parted.override { lvm2 = null; }' |
@nh2 I used it for a minimal Linux appliance that needed LVM2 but not systemd et al, so this was really part of a larger patch set that sought to allow stuff to be built without "unnecessary" (for my purposes) deps. A version that supports static linking sounds great. |
No description provided.