* Bogdan Radulescu <bog...@nimblex.net> [2013-12-30 22:07:15 +0200]:
Hello, I am building OpenWRT on a system that uses SMACK as the default security system and when it patches some files the build fails because the patch tries to change some labels. ______________________________________________________ Applying ./patches/100-fix-gets-removal.patch using plaintext: patching file lib/stdio.in.h /usr/bin/patch: setting attribute security.SMACK64 for security.SMACK64: Operation not permitted Patch failed! Please fix ./patches/100-fix-gets-removal.patch! make[3]: *** [/mnt/live/memory/data/Work/HLK-RM04/build_dir/host/m4-1.4.17/.preparedfc0b02ea81ccae4f193297fc3b6a18ca] Error 1 make[3]: Leaving directory `/mnt/live/memory/data/Work/HLK-RM04/tools/m4' make[2]: *** [tools/m4/compile] Error 2 make[2]: Leaving directory `/mnt/live/memory/data/Work/HLK-RM04' make[1]: *** [/mnt/live/memory/data/Work/HLK-RM04/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.tools_install_nnnnn] Error 2 make[1]: Leaving directory `/mnt/live/memory/data/Work/HLK-RM04' make: *** [world] Error 2 _____________________________________________________ I relly don't understand why patch tries to do that but building as root fails even if I use FORCE=1 and the only solution I was able to
Hello Bogdan, you should not build as root. Have you tried to build as regular user? Regards Darki
find was to do a chmod +s on the patch command so it would run as root. How do we fix this? Thanks, Bogdan _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
-- Time is the quality of nature that keeps events from happening all at once. Lately it doesn’t seem to be working. —Anonymous _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel