Make defconfig looks broken on openwrt-19.07 branch

I used to run a build script to compile a package (openwisp-config), everything worked on OpenWRT 18.

If I try to run this script to compile a package on openwrt-19.07 I get these errors when make defconfig is called:

tmp/.config-package.in:18826: syntax error
tmp/.config-package.in:18825: invalid option
tmp/.config-package.in:18841: syntax error
tmp/.config-package.in:18840: invalid option
tmp/.config-package.in:18910: syntax error
tmp/.config-package.in:18909: invalid option
tmp/.config-package.in:18926: syntax error
tmp/.config-package.in:18925: invalid option
tmp/.config-package.in:18946: syntax error

There are many more lines like these.

It looks like a bug to me, because the error disappears if I move to the openwrt-18.06 branch.

Can anyone suggest if it's indeed a bug or if it's because something specific that I'm ignoring that has changed and is causing this?

Thanks in advance.

See if the following helps:

$ make -C scripts/config clean

Just check which package is defined on lines 18826 and 18825 of tmp/.config-package.in
Possible some new change to packages has some illegal characters in Makefile, or something similar, and the parsed package data looks illegal to the config interpteter.

1 Like

See if the following helps:

$ make -C scripts/config clean

This worked, thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.