On Dec 30, 2013 9:07 PM, "Bogdan Radulescu" <bog...@nimblex.net> wrote:
>
> 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.

Can you try to regenerate the patch manually? Does the patch file contain
anything else but file permission bits in its header?

>
> ______________________________________________________
> 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
> 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
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to