mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Some awful hackery to get volume_id to build with klibc. We'll need
it for mounting by label in the initrd. svn path=/nixpkgs/trunk/; revision=12558
This commit is contained in:
parent
a9d19f45db
commit
537fa9185a
1 changed files with 15 additions and 7 deletions
|
@ -10,14 +10,22 @@ stdenv.mkDerivation {
|
|||
|
||||
# "DESTDIR=/" is a hack to prevent "make install" from trying to
|
||||
# mess with /dev.
|
||||
preBuild = ''
|
||||
makeFlagsArray=(prefix=$out usrbindir=$out/bin usrsbindir=$out/sbin usrlibdir=$out/lib \
|
||||
mandir=$out/share/man includedir=$out/include \
|
||||
EXTRAS="extras/ata_id extras/edd_id extras/floppy extras/path_id extras/scsi_id extras/usb_id ${if stdenv ? isKlibc then "" else "extras/cdrom_id extras/volume_id"}"
|
||||
INSTALL='install -c' DESTDIR=/)
|
||||
preBuild =
|
||||
''
|
||||
makeFlagsArray=(prefix=$out usrbindir=$out/bin usrsbindir=$out/sbin usrlibdir=$out/lib \
|
||||
mandir=$out/share/man includedir=$out/include \
|
||||
EXTRAS="extras/volume_id extras/ata_id extras/edd_id extras/floppy extras/path_id extras/scsi_id extras/usb_id ${if stdenv ? isKlibc then "" else "extras/cdrom_id"}"
|
||||
INSTALL='install -c' DESTDIR=/ \
|
||||
${if stdenv ? isStatic then "USE_STATIC=true SHLIB= VOLUME_ID_STATIC=true" else ""})
|
||||
|
||||
substituteInPlace udev_rules.c --replace /lib/udev $out/lib/udev
|
||||
'';
|
||||
substituteInPlace udev_rules.c --replace /lib/udev $out/lib/udev
|
||||
''
|
||||
|
||||
+ (if stdenv ? isStatic then
|
||||
''
|
||||
# `make install' would cause the shared library to be installed, which we don't build.
|
||||
substituteInPlace extras/volume_id/lib/Makefile --replace 'install:' 'disabled:'
|
||||
'' else "");
|
||||
|
||||
preInstall = ''
|
||||
installFlagsArray=(udevdir=$TMPDIR/dummy)
|
||||
|
|
Loading…
Reference in a new issue