svn commit: trunk/buildroot
Author: ulf
Date: 2008-07-04 15:29:50 -0700 (Fri, 04 Jul 2008) New Revision: 22640
Log:
Add 'build with log'
Modified:
trunk/buildroot/Makefile
Changeset:
Modified: trunk/buildroot/Makefile
===================================================================
buildroot/Makefile +3 -0
@@ -475,6 +475,9 @@ prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched +log: + $(MAKE) > $(PROJECT).log 2>&1 + cross: $(BASE_TARGETS) help:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ulf" == ulf <[email protected]> writes:
ulf> Author: ulf
ulf> Date: 2008-07-04 15:29:50 -0700 (Fri, 04 Jul 2008) ulf> New Revision: 22640
ulf> Log:
ulf> Add 'build with log'
ulf> Modified:
ulf> trunk/buildroot/Makefile
ulf> Changeset:
ulf> Modified: trunk/buildroot/Makefile
ulf> ===================================================================
ulf> --- trunk/buildroot/Makefile 2008-07-04 22:23:20 UTC (rev 22639)
ulf> +++ trunk/buildroot/Makefile 2008-07-04 22:29:50 UTC (rev 22640)
ulf> @@ -475,6 +475,9 @@
ulf> prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
ulf> +log:
ulf> + $(MAKE) > $(PROJECT).log 2>&1
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Signature · 1 line
Bye, Peter Korsgaard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Korsgaard skrev:
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ulf" == ulf <[email protected]> writes:
ulf> Author: ulf
ulf> Date: 2008-07-04 15:29:50 -0700 (Fri, 04 Jul 2008) ulf> New Revision: 22640ulf> Log:
ulf> Add 'build with log'ulf> Modified:
ulf> trunk/buildroot/Makefileulf> Changeset:
ulf> Modified: trunk/buildroot/Makefile
ulf> ===================================================================
ulf> --- trunk/buildroot/Makefile 2008-07-04 22:23:20 UTC (rev 22639)
ulf> +++ trunk/buildroot/Makefile 2008-07-04 22:29:50 UTC (rev 22640)
ulf> @@ -475,6 +475,9 @@
Quoted 8 lines
ulf> prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
ulf> +log:
ulf> + $(MAKE) > $(PROJECT).log 2>&1That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Index: Makefile
===================================================================
- --- Makefile (revision 22671)
+++ Makefile (arbetskopia)
@@ -346,10 +346,10 @@
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
_source-check:
- - $(MAKE) SPIDER=--spider source
+ $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider source
external-deps:
- - @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
+ @$(MAKE) FORCE_DOWNLOAD=y -Bs
BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
source
Index: package/Makefile.autotools.in
===================================================================
- --- package/Makefile.autotools.in (revision 22671)
+++ package/Makefile.autotools.in (arbetskopia)
@@ -131,7 +131,7 @@
# Retrieve and unpack the archive
$(BUILD_DIR)/%/.stamp_downloaded:
# support make source-check/external-deps - -ifeq ($(MAKELEVEL),1) +ifeq ($(FORCE_DOWNLOAD),y) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) else #############################################################
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIcgh4AyRRH5cXxqwRArN5AJ9AF/jF0N6l8rj/t3H8PBmIfCL1CgCdH64e 0AisEv4BygKL0S84UEA5p9k=
=T0+o
-----END PGP SIGNATURE-----
Quoted 10 lines · Ulf Samuelsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
What were you trying to fix initially?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Previously the special make targets to check availability of packages on internet would download each target even if the target existed in $(DL_DIR) creating <package>.tar.bz2.<n>, or it would not check
the package at all.
Peter introduced a fix where he will treat the download differently if the MAKELEVEL=0 (normal) or if the MAKELEVEL=1 which is the case for make source-check and make external-deps.
When I introduced easy logging by "make log", this breaks the autotools, since this also runs at MAKELEVEL=1.
I do not think that MAKELEVEL is a good variable to detect if someone wants to do source-check
or external-deps.
Quoted 6 lines
What were you trying to fix initially?
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIchLMAyRRH5cXxqwRAjqpAJ4rQHpErVoDL+yhXaPi87KyhQBe0wCfYO3L pvDe3hJenlQdwUBGBBKKPOk=
=T5WK
-----END PGP SIGNATURE-----
Quoted 26 lines · Ulf Samuelsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Previously the special make targets to check availability of packages on internet would download each target even if the target existed in $(DL_DIR) creating <package>.tar.bz2.<n>, or it would not check
the package at all.Peter introduced a fix where he will treat the download differently if the MAKELEVEL=0 (normal) or if the MAKELEVEL=1 which is the case for make source-check and make external-deps.
Quoted 7 lines
When I introduced easy logging by "make log", this breaks the autotools, since this also runs at MAKELEVEL=1.
I do not think that MAKELEVEL is a good variable to detect if someone wants to do source-check
or external-deps.
make source-check is _supposed_ to download all sources, regardless of whether or not the package exists locally. Keep in mind that it is ment to check if packages and patches are (still) downloadable or not and explicitely disregarding any local stuff to simulate what users will experience.
Perhaps the source-check target should consequently use a $(DL_DIR).check dir then. This would avoid breakage elsewhere.
Apart from that such a "log" target strikes me as unwarranted. Just
$ (make) 2>&1 >& MY.log or $ nohup make &
would a more sensible thing to do, IMHO.
HTH,
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ulf" == ulf <[email protected]> writes:
ulf> Author: ulf
ulf> Date: 2008-07-04 15:29:50 -0700 (Fri, 04 Jul 2008) ulf> New Revision: 22640
ulf> Log:
ulf> Add 'build with log'
Do we need this in buildroot? What's the advantage of doing this in buildroot instead of in an external wrapper?
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Signature · 1 line
Bye, Peter Korsgaard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Korsgaard skrev:
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ulf" == ulf <[email protected]> writes:
ulf> Author: ulf
ulf> Date: 2008-07-04 15:29:50 -0700 (Fri, 04 Jul 2008) ulf> New Revision: 22640ulf> Log:
ulf> Add 'build with log'Do we need this in buildroot? What's the advantage of doing this in buildroot instead of in an external wrapper?
Mainly that you get the project name automatically as the name of the log. Also typing is minimal.
There is a counter maintained, which gets incremented once per log, so you do not overwrite the old log, but that can be implemented in an external wrapper.
Quoted 4 lines
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
BR
Ulf Samuelsson.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIchlHAyRRH5cXxqwRAohoAJ9xmlF+jiphUs5wKGF57nytcf/9ZgCeMWL9 DMoEtSb6vthz4OP/s+gjs9A=
=0+V9
-----END PGP SIGNATURE-----
Quoted 31 lines · Bernhard Fischer
Quoted 30 lines · Ulf Samuelsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Previously the special make targets to check availability of packages on internet would download each target even if the target existed in $(DL_DIR) creating <package>.tar.bz2.<n>, or it would not check
the package at all.Peter introduced a fix where he will treat the download differently if the MAKELEVEL=0 (normal) or if the MAKELEVEL=1 which is the case for make source-check and make external-deps.
When I introduced easy logging by "make log", this breaks the autotools, since this also runs at MAKELEVEL=1.
Quoted 5 lines
Quoted 3 lines
I do not think that MAKELEVEL is a good variable to detect if someone wants to do source-check
or external-deps.make source-check is _supposed_ to download all sources, regardless of
Where download is not really appropriate since we do this (for speed and volume reasons) deliberately with wget's --spider option, just as a sidenote.
Quoted 7 lines
whether or not the package exists locally. Keep in mind that it is ment to check if packages and patches are (still) downloadable or not and explicitely disregarding any local stuff to simulate what users will experience.
Perhaps the source-check target should consequently use a $(DL_DIR).check dir then. This would avoid breakage elsewhere.
Due to spider, please disregard this comment about $(DL_DIR).check.
Quoted 10 lines
Apart from that such a "log" target strikes me as unwarranted. Just
$ (make) 2>&1 >& MY.log or $ nohup make &would a more sensible thing to do, IMHO.
HTH,
On Mon, Jul 07, 2008 at 03:25:27PM +0200, Ulf Samuelsson wrote:
[snip ugly log target]
Quoted 9 lines
Quoted 4 lines
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
I have to agree to Ulf in this respect, fwiw.
Peter, why did you have to take MAKELEVEL into account? Perhaps we can fix this in a better way.. (pointing me to a detailed commit-message or to the ML archives is sufficient)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernhard Fischer skrev:
Quoted 44 lines · Bernhard Fischer
Quoted 25 lines · Ulf Samuelsson
Quoted 24 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Bernhard Fischer skrev:
Quoted 9 lines · Ulf Samuelsson
Quoted 8 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Previously the special make targets to check availability of packages on internet would download each target even if the target existed in $(DL_DIR) creating <package>.tar.bz2.<n>, or it would not check
the package at all.Peter introduced a fix where he will treat the download differently if the MAKELEVEL=0 (normal) or if the MAKELEVEL=1 which is the case for make source-check and make external-deps.
Quoted 8 lines
Quoted 7 lines
When I introduced easy logging by "make log", this breaks the autotools, since this also runs at MAKELEVEL=1.
I do not think that MAKELEVEL is a good variable to detect if someone wants to do source-check
or external-deps.make source-check is _supposed_ to download all sources, regardless of
Where download is not really appropriate since we do this (for speed and volume reasons) deliberately with wget's --spider option, just as a sidenote.
Quoted 5 lines
whether or not the package exists locally. Keep in mind that it is ment to check if packages and patches are (still) downloadable or not and explicitely disregarding any local stuff to simulate what users will experience.
Quoted 4 lines
Quoted 2 lines
Perhaps the source-check target should consequently use a $(DL_DIR).check dir then. This would avoid breakage elsewhere.
Due to spider, please disregard this comment about $(DL_DIR).check.
I think the issue is that "source-check" and "external-deps" needs special treatment in autotools so that the
WGET commands is executed regardless if the target package is present in DL_DIR or not.
The WGET commands has been redefined to do WGET --spider or to run a script and neither of these will actually download the tarballs.
What I question is the use of the MAKELEVEL
variable to determine if this special treatment
should be activated or not.
Quoted 8 lines
Quoted 8 lines
Apart from that such a "log" target strikes me as unwarranted. Just
$ (make) 2>&1 >& MY.log or $ nohup make &would a more sensible thing to do, IMHO.
Not if you want your log file to have the
same name as your project.
Try typing
"make > atngw100-expanded-3.log 2>&1"
a couple of times, and you see what I mean.
"make log" is so much easier, and you can
use bash to just do "make log" by just pressing up-arrow <CR/LF>.
Quoted 5 lines
Quoted 1 line
HTH,
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIch2pAyRRH5cXxqwRArO1AKCyrz725gm471S/jZo+EABTwkZs9QCgmVMk IPBfdLBSIpA5EF57rOf1fBo=
=NDo1
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
[snip ugly log target]
Quoted 7 lines
Quoted 3 lines
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
Quoted 4 lines
I have to agree to Ulf in this respect, fwiw.
Peter, why did you have to take MAKELEVEL into account? Perhaps we can fix this in a better way.. (pointing me to a detailed commit-message or to the ML archives is sufficient)
This is my proposal (which started this thread),
but I would like you guys to comment.
Index: Makefile
===================================================================
- --- Makefile (revision 22671)
+++ Makefile (arbetskopia)
@@ -346,10 +346,10 @@
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
_source-check:
- - $(MAKE) SPIDER=--spider source
+ $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider source
external-deps:
- - @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
+ @$(MAKE) FORCE_DOWNLOAD=y -Bs
BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
source
Index: package/Makefile.autotools.in
===================================================================
- --- package/Makefile.autotools.in (revision 22671)
+++ package/Makefile.autotools.in (arbetskopia)
@@ -131,7 +131,7 @@
# Retrieve and unpack the archive
$(BUILD_DIR)/%/.stamp_downloaded:
# support make source-check/external-deps - -ifeq ($(MAKELEVEL),1) +ifeq ($(FORCE_DOWNLOAD),y) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) else
#############################################################
BR
Ulf
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIch5fAyRRH5cXxqwRAsNbAJ9vWvVqUecx+xwpmykwrOaRbAlWfgCeLBNj Djwd8wUNMHoWAcei4qdw2HI=
=K+Qq
-----END PGP SIGNATURE-----
Quoted 31 lines · Ulf Samuelsson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
[snip ugly log target]
Quoted 7 lines
Quoted 3 lines
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
Quoted 4 lines
I have to agree to Ulf in this respect, fwiw.
Peter, why did you have to take MAKELEVEL into account? Perhaps we can fix this in a better way.. (pointing me to a detailed commit-message or to the ML archives is sufficient)This is my proposal (which started this thread),
but I would like you guys to comment.Index:
Makefile
===================================================================
- ---Makefile(revision 22671)
+++Makefile(arbetskopia)(quoted diff) +0
-0@@ -346,10 +346,10 @@ source: $(TARGETS_SOURCE) $(HOST_SOURCE)_source-check:
- - $(MAKE) SPIDER=--spider source
Review
Quoted 1 line
(quoted diff) +1
-0+ $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider source
No, this is not acceptable.
Quoted 15 lines
external-deps:
- - @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \(quoted diff) +1
-0+ @$(MAKE) FORCE_DOWNLOAD=y -BsBR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
sourceIndex: package/Makefile.autotools.in
===================================================================
- --- package/Makefile.autotools.in (revision 22671)
+++ package/Makefile.autotools.in (arbetskopia)(quoted diff) +0
-0@@ -131,7 +131,7 @@ # Retrieve and unpack the archive$(BUILD_DIR)/%/.stamp_downloaded:
Quoted 6 lines
# support make source-check/external-deps - -ifeq ($(MAKELEVEL),1) +ifeq ($(FORCE_DOWNLOAD),y) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) else
What are you trying to do, Peter? source-check should work just fine, even for autotools.in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Quoted 3 lines
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Ulf> Is not something like the following to be preferred?
Ulf> Index: Makefile
Ulf> ===================================================================
Ulf> --- Makefile (revision 22671)
Ulf> +++ Makefile (arbetskopia)
Ulf> @@ -346,10 +346,10 @@
Ulf> source: $(TARGETS_SOURCE) $(HOST_SOURCE)
Ulf> _source-check:
Ulf> - $(MAKE) SPIDER=--spider source
Ulf> + $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider source
It would be simpler to just set the download directory to an empty dir
- But I still question the need the special purpose log and status targets you're adding.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Quoted 10 lines · Ulf Samuelsson
Quoted 10 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Bernhard> What were you trying to fix initially?
Me or Ulf? For me, see r22607. Makefile.autotools.in is kinda broken as the download target is executed even if the download exists (E.G. it uses a phony target instead of the exact file name), so source-check / external-deps doesn't work like it does for the other packages.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Ulf> Bernhard Fischer skrev:
Quoted 10 lines
Quoted 10 lines · Ulf Samuelsson
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Is not something like the following to be preferred?
Ulf> Previously the special make targets to check availability Ulf> of packages on internet would download each target Ulf> even if the target existed in $(DL_DIR) creating Ulf> <package>.tar.bz2.<n>, or it would not check Ulf> the package at all.
Only if you're using your new make log target.
Ulf> Peter introduced a fix where he will treat the download Ulf> differently if the MAKELEVEL=0 (normal) or if the Ulf> MAKELEVEL=1 which is the case for make source-check Ulf> and make external-deps.
Exactly. Makefile.autootols.in has always been broken for source-check / external-deps. My change was a very small and low impact fix. The proper fix would be to restructure Makefile.autootols.in to use make to decide if targets are out of date and not shell checks.
Ulf> I do not think that MAKELEVEL is a good variable Ulf> to detect if someone wants to do source-check Ulf> or external-deps.
Good or not - It worked where it didn't before.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Bernhard> make source-check is _supposed_ to download all sources, Bernhard> regardless of whether or not the package exists Bernhard> locally. Keep in mind that it is ment to check if packages Bernhard> and patches are (still) downloadable or not and explicitely Bernhard> disregarding any local stuff to simulate what users will Bernhard> experience.
It is and it does.
Bernhard> Perhaps the source-check target should consequently use a Bernhard> $(DL_DIR).check dir then. This would avoid breakage elsewhere.
I'm not following. We used to handle it by invoking make with the -B option so the download target would get executed even if the file was already downloaded. That broke with Makefile.autotools.in as it uses shell checks instead of the dependency handling in make.
Bernhard> Apart from that such a "log" target strikes me as unwarranted. Bernhard> Just
Bernhard> $ (make) 2>&1 >& MY.log
Bernhard> or
Bernhard> $ nohup make &
Bernhard> would a more sensible thing to do, IMHO.
Agreed.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Ulf> Not if you want your log file to have the
Ulf> same name as your project.
Ulf> Try typing
Ulf> "make > atngw100-expanded-3.log 2>&1"
Ulf> a couple of times, and you see what I mean.
Nothing stops you from defining an alias for make <whatever>_defconfig && make 2>&1 > <whatever>.log in your local .bashrc - What we question is the need for adding it to buildroot with the complications it adds elsewhere.
And given the typical runtime of a buildroot compilation I doubt that the command length of the make invocation is the limiting factor in developer effeciency ;)
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 4 lines
Quoted 4 lines
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
Bernhard> I have to agree to Ulf in this respect, fwiw.
Sure. The proper solution is to fix Makefile.autotools.in - But that's not a 5min job.
An alternative solution would be to set DL_DIR to something invalid in source-check/external-deps.
Bernhard> Peter, why did you have to take MAKELEVEL into account? Bernhard> Perhaps we can fix this in a better way.. (pointing me to a Bernhard> detailed commit-message or to the ML archives is Bernhard> sufficient)
See my earlier mail and r22607.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Ulf> Yes, but that is really not a good implementation. Ulf> The MAKELEVEL has really nothing to do with what you Ulf> want to use it for, it just happens to work, but Ulf> this implementation is easily broken.
I agree that it isn't particular nice, and I have no problem with it being replaced with a proper fix. I don't think your NO_DOWNLOAD solution is that though.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 12 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Quoted 9 lines · Ulf Samuelsson
Quoted 9 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Peter Korsgaard skrev:
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Is not something like the following to be preferred?
Bernhard> What were you trying to fix initially?
Me or Ulf? For me, see r22607. Makefile.autotools.in is kinda broken as the download target is executed even if the download exists (E.G. it
Ok that's broken.
$(BUILD_DIR)/%/.stamp_download_tarball:
$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) # or $(if $(BR2_PRIMARY_SITE),$(BR2_PRIMARY_SITE),$($(PKG)_SITE))/$($(PKG)_SOURCE) if you want to support that primary site stuff touch $@
$(BUILD_DIR)/%/.stamp_download_patches:
$(foreach p,$($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$p)
$(BUILD_DIR)/%/.stamp_downloaded: |\ $(BUILD_DIR)/%/.stamp_download_tarball \ $(BUILD_DIR)/%/.stamp_download_patches
Quoted 1 line
uses a phony target instead of the exact file name), so source-check /
The phony has to go, of course. There is absolutely no sane reason for it.
Quoted 1 line
external-deps doesn't work like it does for the other packages.
My lack of interrest to support external stuff is deep and profound.
Quoted 32 lines · Ulf Samuelsson
Quoted 29 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Bernhard Fischer skrev:
Quoted 10 lines · Ulf Samuelsson
[snip ugly log target]
Quoted 7 lines
Quoted 3 lines
As mentioned earlier, it doesn't work with Makefile.autotools.in using packages.
Yes, but that is really not a good implementation. The MAKELEVEL has really nothing to do with what you want to use it for, it just happens to work, but this implementation is easily broken.
Quoted 4 lines
I have to agree to Ulf in this respect, fwiw.
Peter, why did you have to take MAKELEVEL into account? Perhaps we can fix this in a better way.. (pointing me to a detailed commit-message or to the ML archives is sufficient)This is my proposal (which started this thread),
but I would like you guys to comment.Index:
Makefile
===================================================================
- ---Makefile(revision 22671)
+++Makefile(arbetskopia)(quoted diff) +0
-0@@ -346,10 +346,10 @@ source: $(TARGETS_SOURCE) $(HOST_SOURCE)
Quoted 5 lines
Quoted 3 lines
_source-check:
- - $(MAKE) SPIDER=--spider source
+ $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider sourceNo, this is not acceptable.
Why?
Quoted 8 lines
Quoted 8 lines
external-deps:
- - @$(MAKE) -Bs BR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
+ @$(MAKE) FORCE_DOWNLOAD=y -BsBR2_WGET=$(TOPDIR)toolchain/wget-show-external-deps.sh \
source
Quoted 17 lines
Quoted 7 lines
Index: package/Makefile.autotools.in
===================================================================
- --- package/Makefile.autotools.in (revision 22671) +++ package/Makefile.autotools.in (arbetskopia)(quoted diff) +0
-0@@ -131,7 +131,7 @@ # Retrieve and unpack the archive$(BUILD_DIR)/%/.stamp_downloaded:
Quoted 6 lines
# support make source-check/external-deps - -ifeq ($(MAKELEVEL),1) +ifeq ($(FORCE_DOWNLOAD),y) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH)) elseWhat are you trying to do, Peter? source-check should work just fine, even for autotools.in
autotools.in checks if the package exists, and if it does , then $(WGET) wont happen.
Therefore autotools now checks if $(WGET) needs to be executed.
Best Regards
Ulf Samuelsson
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Quoted 3 lines
Quoted 3 lines
That breaks the source-check/external-deps check in Makefile.autotools.in (r22607).
Ulf> Is not something like the following to be preferred?
Ulf> Index:
Makefile
Ulf> =================================================================== Ulf> ---Makefile(revision 22671)
Ulf> +++Makefile(arbetskopia)
Ulf> @@ -346,10 +346,10 @@
Ulf> source: $(TARGETS_SOURCE) $(HOST_SOURCE)
Quoted 8 lines
Ulf> _source-check:
Ulf> - $(MAKE) SPIDER=--spider source
Ulf> + $(MAKE) FORCE_DOWNLOAD=y SPIDER=--spider sourceIt would be simpler to just set the download directory to an empty dir
- But I still question the need the special purpose log and status targets you're adding.
I actually do not even need buildroot at all, because everything buildroot does, I can do manually.
It is just more convenient and less error prone to automate common tasks.
Best Regards
Ulf Samuelsson
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Ulf> Not if you want your log file to have the
Ulf> same name as your project.
Quoted 8 lines
Ulf> Try typing
Ulf> "make > atngw100-expanded-3.log 2>&1"
Ulf> a couple of times, and you see what I mean.Nothing stops you from defining an alias for make <whatever>_defconfig && make 2>&1 > <whatever>.log in your local .bashrc - What we question is the need for adding it to buildroot with the complications it adds elsewhere.
It does not add any complication, but it does highlight that the autotools has a less desirable implementation.
Quoted 8 lines
And given the typical runtime of a buildroot compilation I doubt that the command length of the make invocation is the limiting factor in developer effeciency ;)
Signature · 1 line
Bye, Peter Korsgaard
Best Regards
Ulf Samuelsson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
(will look into the makefile stuff later)
Quoted 1 line
Quoted 1 line
external-deps doesn't work like it does for the other packages.
Bernhard> My lack of interrest to support external stuff is deep and profound.
external-deps has nothing to do with external toolchains. It simply gives you the list of packages in $DL_DIR you'll need to archive together with your buildroot snapshot to be able to reproduce your build.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ulf" == Ulf Samuelsson <[email protected]> writes:
Hi,
Quoted 4 lines
Quoted 4 lines
It would be simpler to just set the download directory to an empty dir
- But I still question the need the special purpose log and status targets you're adding.
Ulf> I actually do not even need buildroot at all, because everything Ulf> buildroot does, I can do manually.
Ulf> It is just more convenient and less error prone to automate Ulf> common tasks.
But that's the point. Are they common tasks? I find the new stuff pretty special purpose.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 3 lines
Quoted 3 lines
Me or Ulf? For me, see r22607. Makefile.autotools.in is kinda broken as the download target is executed even if the download exists (E.G. it
Bernhard> Ok that's broken.
Bernhard> $(BUILD_DIR)/%/.stamp_download_tarball:
Bernhard> $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
Bernhard> # or $(if $(BR2_PRIMARY_SITE),$(BR2_PRIMARY_SITE),$($(PKG)_SITE))/$($(PKG)_SOURCE) if you want to support that primary site stuff
Bernhard> touch $@
That won't work if you do a clean and rebuild or reuse a download dir for another build. You have to really make $(DL_DIR)/$($(PKG)_SOURCE) the target.
I guess we could use wget -c, but that would be kinda lame (and dangerous).
Signature · 1 line
Bye, Peter Korsgaard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter Korsgaard skrev:
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Hi,
Quoted 3 lines
Quoted 3 lines
Me or Ulf? For me, see r22607. Makefile.autotools.in is kinda broken as the download target is executed even if the download exists (E.G. it
Bernhard> Ok that's broken.
Bernhard> $(BUILD_DIR)/%/.stamp_download_tarball:
Bernhard> $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
Bernhard> # or $(if $(BR2_PRIMARY_SITE),$(BR2_PRIMARY_SITE),$($(PKG)_SITE))/$($(PKG)_SOURCE) if you want to support that primary site stuff
Bernhard> touch $@
Quoted 7 lines
That won't work if you do a clean and rebuild or reuse a download dir for another build. You have to really make $(DL_DIR)/$($(PKG)_SOURCE) the target.
I guess we could use wget -c, but that would be kinda lame (and dangerous).
If a package is present in $(DL_DIR) you only need to perform the WGET in very special cases.
Why not tell the autotools this explicitly, like I proposed?
It is an easy fix, and it works as far as I see.
Alternatively, you can make the test for presence in $(DL_DIR) a configurable item which can be disabled when make source-check or make external-deps is executed.
BR
Ulf Samuelsso0n
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIdM8SAyRRH5cXxqwRAlB5AJ4/32+nRGhMZ6E/CNZNtxtbJjpepQCgiaG5 rIdprRbYHZ73onRlXG6eGMw=
=LCps
-----END PGP SIGNATURE-----