Problems building AttitudeAdjustement OpenWrt
18 Apr 2015I recently encountered a problem building the old version of OpenWrt called “AttitudeAdjustement” on my ArchLinux machine. As ArchLinux is using the most recent sources, a upstream patch landed, which changes the default behaviour of the tool called “grep”.
The same propblem seems to occur on the “oldpackages” repository of BreakingBarrier as well, so that small fix below should work there, too.
Now, it throws a message on Binary files instead of parsing it somehow, which results in the following problem:
$ ./scripts/feeds update packages
Updating feed 'packages' from 'http://git.openwrt.org/12.09/packages.git' ...
Already up-to-date.
Create index file './feeds/packages.index'
grep: feeds/packages/Binary: No such file or directory
grep: file: No such file or directory
grep: matches/Makefile: No such file or directory
make: *** No rule to make target 'feeds/packages/Binary', needed by '/home/matze/tmp/LibraryBox-2.1-beta-build-env/openwrt/feeds/packages.tmp/info/.packageinfo-Binary'. Stop.
That breaks the OpenWrt Buildchain. I found the solution on the GNU mailing list: In the console you are running, change the LC_ALL setting and export it. That makes the grep tool work like before the change:
export LC_ALL=C
After that, you can work like normal:
$ ./scripts/feeds update packages
Updating feed 'packages' from 'http://git.openwrt.org/12.09/packages.git' ...
Already up-to-date.
Create index file './feeds/packages.index'
Collecting package info: done
Remember to rerun the export when you continue working after closing the terminal window…