Anthony Messina
2014-Mar-29 00:43 UTC
[asterisk-users] Unable to build DAHDI-Linux in mock chroot
Unfortunately, after http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commitdiff;h=6cebc1c1fb12cc0661f3810ef47ad33206b2e398 I am unable to build DAHDI-Linux in a mock chroot for packaging purposes. I believe this is related to the Makefile calling install_firmware with only 2 args, where install_firmware is a shell script with DESTDIR set to $3, which is empty. In this case, the DESTDIR evaluates to "/usr/lib/hotplug/firmware", rather than "<buildroot_destdir>/usr/lib/hotplug/firmware". make -C drivers/dahdi/firmware hotplug-install DESTDIR=/builddir/build/BUILDROOT/dahdi-linux-2.9.1-1.fc20.x86_64 HOTPLUG_FIRMWARE=yes make[1]: Entering directory `/builddir/build/BUILD/dahdi- linux-2.9.1/drivers/dahdi/firmware' mkdir -p /builddir/build/BUILDROOT/dahdi- linux-2.9.1-1.fc20.x86_64/usr/lib/hotplug/firmware mkdir -p /builddir/build/BUILDROOT/dahdi- linux-2.9.1-1.fc20.x86_64/lib/firmware Installing dahdi-fw-oct6114-032.bin to hotplug firmware directories install: cannot create regular file '/usr/lib/hotplug/firmware': No such file or directory make[1]: *** [hotplug-install] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/dahdi- linux-2.9.1/drivers/dahdi/firmware' make: *** [install-firmware] Error 2 -A -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140328/6f734085/attachment.pgp>
Anthony Messina
2014-Mar-29 00:57 UTC
[asterisk-users] Unable to build DAHDI-Linux in mock chroot
On Friday, March 28, 2014 07:43:48 PM Anthony Messina wrote:> Unfortunately, after > > http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commitdiff;h=6cebc1c1fb1 > 2cc0661f3810ef47ad33206b2e398 > > I am unable to build DAHDI-Linux in a mock chroot for packaging > purposes. I believe this is related to the Makefile calling > install_firmware with only 2 args, where install_firmware is a shell script > with DESTDIR set to $3, which is empty. > > In this case, the DESTDIR evaluates to "/usr/lib/hotplug/firmware", rather > than "<buildroot_destdir>/usr/lib/hotplug/firmware". > > > make -C drivers/dahdi/firmware hotplug-install > DESTDIR=/builddir/build/BUILDROOT/dahdi-linux-2.9.1-1.fc20.x86_64 > HOTPLUG_FIRMWARE=yes > make[1]: Entering directory `/builddir/build/BUILD/dahdi- > linux-2.9.1/drivers/dahdi/firmware' > mkdir -p /builddir/build/BUILDROOT/dahdi- > linux-2.9.1-1.fc20.x86_64/usr/lib/hotplug/firmware > mkdir -p /builddir/build/BUILDROOT/dahdi- > linux-2.9.1-1.fc20.x86_64/lib/firmware > Installing dahdi-fw-oct6114-032.bin to hotplug firmware directories > install: cannot create regular file '/usr/lib/hotplug/firmware': No such > file or directory > make[1]: *** [hotplug-install] Error 1 > make[1]: Leaving directory `/builddir/build/BUILD/dahdi- > linux-2.9.1/drivers/dahdi/firmware' > make: *** [install-firmware] Error 2https://issues.asterisk.org/jira/browse/DAHLIN-337 -A -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140328/fc89f392/attachment.pgp>