package/aufs: don't set invalid AUFS_SITE if version is unset
PATCH 1/1 package/aufs: don't set invalid AUFS_SITE if version is unset
Fixes:package/aufs/aufs.mk:24: *** AUFS_SITE (https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84: _all] Error 2
--- package/aufs/aufs.mk | 2 ++ 1 file changed, 2 insertions(+)
package/aufs/aufs.mk +2 -0
@@ -8,6 +8,7 @@ AUFS_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_VERSION)) AUFS_LICENSE = GPL-2.0 AUFS_LICENSE_FILES = COPYING +ifneq ($(AUFS_VERSION),) ifeq ($(BR2_PACKAGE_AUFS_SERIES),3) AUFS_SITE = http://git.code.sf.net/p/aufs/aufs3-standalone AUFS_SITE_METHOD = git
@@ -16,6 +17,7 @@ AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) else ifeq ($(BR2_PACKAGE_AUFS_SERIES),5) AUFS_SITE = $(call github,sfjro,aufs5-standalone,$(AUFS_VERSION)) endif +endif ifeq ($(BR_BUILDING):$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),y:y:) $(error No aufs version specified)
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 3 lines · James Hilliard
Fixes:
package/aufs/aufs.mk:24: ***AUFS_SITE(https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84:_all] Error 2
How do you get this? I've tried a number of configurations, but I always get
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:84: _all] Error 2
I could only reproduce with make source, but that's a bit a special case.
Regards,
Arnout
Quoted 19 lines
Signed-off-by James Hilliard <[email protected]>--- package/aufs/aufs.mk | 2 ++ 1 file changed, 2 insertions(+)package/aufs/aufs.mk +1
-0@@ -8,6 +8,7 @@ AUFS_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_VERSION)) AUFS_LICENSE = GPL-2.0 AUFS_LICENSE_FILES = COPYING +ifneq ($(AUFS_VERSION),) ifeq ($(BR2_PACKAGE_AUFS_SERIES),3) AUFS_SITE = http://git.code.sf.net/p/aufs/aufs3-standalone AUFS_SITE_METHOD = git
package/aufs/aufs.mk AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) · line 23
Quoted 7 lines
package/aufs/aufs.mk +1
-0@@ -16,6 +17,7 @@ AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) else ifeq ($(BR2_PACKAGE_AUFS_SERIES),5) AUFS_SITE = $(call github,sfjro,aufs5-standalone,$(AUFS_VERSION)) endif +endif ifeq ($(BR_BUILDING):$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),y:y:) $(error No aufs version specified)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Arnout Vandecappelle
Quoted 3 lines · James Hilliard
Fixes:
package/aufs/aufs.mk:24: ***AUFS_SITE(https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84:_all] Error 2
Quoted 6 lines
How do you get this? I've tried a number of configurations, but I always get
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:84:_all] Error 2I could only reproduce with
make source, but that's a bit a special case.
Something like this seems to hit it:
BR2_LINUX_KERNEL_EXT_AUFS=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
# BR2_PACKAGE_AUFS_UTIL is not set
Quoted 28 lines
Regards,
ArnoutQuoted 24 lines
Signed-off-by James Hilliard <[email protected]>--- package/aufs/aufs.mk | 2 ++ 1 file changed, 2 insertions(+)package/aufs/aufs.mk +2
-0@@ -8,6 +8,7 @@ AUFS_VERSION = $(call qstrip,$(BR2_PACKAGE_AUFS_VERSION)) AUFS_LICENSE = GPL-2.0 AUFS_LICENSE_FILES = COPYING +ifneq ($(AUFS_VERSION),) ifeq ($(BR2_PACKAGE_AUFS_SERIES),3) AUFS_SITE = http://git.code.sf.net/p/aufs/aufs3-standalone AUFS_SITE_METHOD = git@@ -16,6 +17,7 @@ AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) else ifeq ($(BR2_PACKAGE_AUFS_SERIES),5) AUFS_SITE = $(call github,sfjro,aufs5-standalone,$(AUFS_VERSION)) endif +endif
Quoted 2 lines
package/aufs/aufs.mk AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) · line 23
Quoted 2 lines
package/aufs/aufs.mk +0
-0ifeq ($(BR_BUILDING):$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),y:y:) $(error No aufs version specified)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
James, All,
On 2022-04-05 14:09 -0600, James Hilliard spake thusly:
Quoted 10 lines · Arnout Vandecappelle
Quoted 8 lines · James Hilliard
Quoted 3 lines
Fixes:
package/aufs/aufs.mk:24: ***AUFS_SITE(https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84:_all] Error 2How do you get this? I've tried a number of configurations, but I always get
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:84:_all] Error 2
I could only reproduce withmake source, but that's a bit a special case.
Quoted 11 lines
Something like this seems to hit it:
BR2_LINUX_KERNEL_EXT_AUFS=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
#BR2_PACKAGE_AUFS_UTILis not set
This still produces the expected error that Arnout reported:
$ make qemu_m68k_q800_defconfig # just for a config with a kernel
$ cat <<_EOF_ >>.config
BR2_LINUX_KERNEL_EXT_AUFS=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
# BR2_PACKAGE_AUFS_UTIL is not set
_EOF_$ make olddefconfig
$ grep AUFS .config
BR2_LINUX_KERNEL_EXT_AUFS=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
# BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5 is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
# BR2_PACKAGE_AUFS_UTIL is not set $ make
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:23: _all] Error 2Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 57 lines · Yann E. MORIN
James, All,
On 2022-04-05 14:09 -0600, James Hilliard spake thusly:
Quoted 10 lines · Arnout Vandecappelle
Quoted 8 lines · James Hilliard
Quoted 3 lines
Fixes:
package/aufs/aufs.mk:24: ***AUFS_SITE(https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84:_all] Error 2How do you get this? I've tried a number of configurations, but I always get
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:84:_all] Error 2
I could only reproduce withmake source, but that's a bit a special case.Quoted 11 lines
Something like this seems to hit it:
BR2_LINUX_KERNEL_EXT_AUFS=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
#BR2_PACKAGE_AUFS_UTILis not setThis still produces the expected error that Arnout reported:
$ make qemu_m68k_q800_defconfig # just for a config with a kernel$ cat <<_EOF_ >>.config BR2_LINUX_KERNEL_EXT_AUFS=y # BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3 is not set BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y # BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5 is not set BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4 BR2_LINUX_KERNEL_EXT_AUFS_VERSION="" BR2_PACKAGE_AUFS=y BR2_PACKAGE_AUFS_SERIES=4 BR2_PACKAGE_AUFS_VERSION="" # BR2_PACKAGE_AUFS_UTIL is not set _EOF_$ make olddefconfig$ grep AUFS .config BR2_LINUX_KERNEL_EXT_AUFS=y # BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3 is not set BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y # BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5 is not set BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4 BR2_LINUX_KERNEL_EXT_AUFS_VERSION="" BR2_PACKAGE_AUFS=y BR2_PACKAGE_AUFS_SERIES=4 BR2_PACKAGE_AUFS_VERSION="" # BR2_PACKAGE_AUFS_UTIL is not set
Quoted 1 line
$ make
You need to do make savedefconfig here for it to reproduce:
$ make savedefconfig package/aufs/aufs.mk:24: *** AUFS_SITE (https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop. make: *** [Makefile:84: _all] Error 2
Quoted 6 lines
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:23:_all] Error 2Regards,
Yann E. MORIN.
Quoted 7 lines
--
.-----------------.--------------------.------------------.--------------------.| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
James, All,
On 2022-04-08 17:56 -0600, James Hilliard spake thusly:
Quoted 22 lines · Yann E. MORIN
Quoted 21 lines
On 2022-04-05 14:09 -0600, James Hilliard spake thusly:
Quoted 20 lines · Arnout Vandecappelle
Quoted 8 lines · James Hilliard
Quoted 3 lines
Fixes:
package/aufs/aufs.mk:24: ***AUFS_SITE(https://github.com/sfjro/aufs4-standalone/archive/) cannot have a trailing slash. Stop.
make: *** [Makefile:84:_all] Error 2How do you get this? I've tried a number of configurations, but I always get
package/aufs/aufs.mk:21: *** No aufs version specified. Stop.
make: *** [Makefile:84:_all] Error 2
I could only reproduce withmake source, but that's a bit a special case.Something like this seems to hit it:
BR2_LINUX_KERNEL_EXT_AUFS=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_3is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES_4=y
#BR2_LINUX_KERNEL_EXT_AUFS_SERIES_5is not set
BR2_LINUX_KERNEL_EXT_AUFS_SERIES=4
BR2_LINUX_KERNEL_EXT_AUFS_VERSION=""
BR2_PACKAGE_AUFS=y
BR2_PACKAGE_AUFS_SERIES=4
BR2_PACKAGE_AUFS_VERSION=""
#BR2_PACKAGE_AUFS_UTILis not set
Quoted 1 line
Quoted 1 line
This still produces the expected error that Arnout reported:
[--SNIP--]
Quoted 1 line
You need to do make savedefconfig here for it to reproduce:
[--SNIP--]
Indeed, I could reproduce.
However, I think the fix is still incorrect.
Indeed, if we were to do what you suggest, them it would be possible to call savedefconfig on a broken configuration; this does not make sense.
Instead, I believe that savedefconfig and update-defconfig (an alias for the former) should not be declared as nobuild_targets:
diff --git a/Makefile b/Makefile
index 05b790d770..69994a58da 100644
--- a/Makefile
+++ b/Makefile
@@ -141,7 +141,7 @@ nobuild_targets := source %-source \
clean distclean help show-targets graph-depends \
%-graph-depends %-show-depends %-show-version \
graph-build graph-size list-defconfigs \
- savedefconfig update-defconfig printvars show-vars
+ printvars show-vars
ifeq ($(MAKECMDGOALS),)
BR_BUILDING = y
else ifneq ($(filter-out $(nobuild_targets),$(MAKECMDGOALS)),)There are a bout ~35 places where we use $(BR_BUILDING). I've look at all the instances in boot/ and linux/,i in toolchain/ and package/aufs/ of course, and a few others, and they all seem to be fine if we remove savedefconfig and update-defconfig from nobuild_targets.
Care to have a further look, please, and send a patch?
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot