[LEDE-DEV] [PATCH v2] package-ipkg: Do not fail build without base-files

Christian Schoenebeck christian.schoenebeck at gmail.com
Tue Dec 27 11:32:42 PST 2016


Do you really think this is a good idea ?
If base-files package is not selected, the postinst-pkg and prerm-pkg of none of the other selected packages will be called.
It's nice to suppress error messages but to switch off all postinst and prerm defined inside Makefile of any selected package in not really a good idea.



Am 26.12.2016 um 20:53 schrieb Florian Fainelli:
> Le 12/09/16 à 16:04, Florian Fainelli a écrit :
>> If the base-files package is not selected, we will fail executing the
>> very first postinst script:
>>
>> make[3]: Leaving directory `/local/users/fainelli/openwrt/trunk'
>> cp -fpR
>> /local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion
>> /local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root.orig-orion
>> ./usr/lib/opkg/info/busybox.postinst: line 3:
>> /local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion/lib/functions.sh:
>> No such file or directory
>> ./usr/lib/opkg/info/busybox.postinst: line 4: default_postinst: command
>> not found
>> postinst script ./usr/lib/opkg/info/busybox.postinst has failed with
>> exit code 127
>> make[2]: *** [package/install] Error 1
>>
>> Check for the existence of lib/functions.sh, and if it does not exist,
>> just bail out gracefully.
>>
>> Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
> 
> John, can you take this through your tree? Thanks!
> 



More information about the Lede-dev mailing list