rsync forces configure step
Hello,
I have recently upgraded from Buildroot 2014.02 to 2014.05, and I have noticed that some developments related to top-level parallel build have resulted in a small change of behaviour, which I would consider as a regression.
When a package is used in rsync mode, make <pkg>-rebuild also forces the configure step.
This has been introduced by this commit:
http://git.buildroot.net/buildroot/commit/package/pkg-generic.mk?id=6c5c08b854e4490697076ae3c5a9c587d8672c63
... and this line in particular:
$$($(2)_TARGET_CONFIGURE): $$($(2)_TARGET_RSYNC)
I believe the right way to support parallel build without forcing the configure step in case of rsync, is to use an order-only prerequisite (with a pipe):
$$($(2)_TARGET_CONFIGURE): | $$($(2)_TARGET_RSYNC)
I have checked this correction successfully.
I suppose that there are other dependencies that should be updated with a pipe, but I can't say which ones for sure...
Thank you.
Signature · 1 line
C?dric
Dear C?dric Marie,
Quoted 13 lines · C?dric Marie
I have recently upgraded from Buildroot 2014.02 to 2014.05, and I have noticed that some developments related to top-level parallel build have resulted in a small change of behaviour, which I would consider as a regression.
When a package is used in rsync mode, make <pkg>-rebuild also forces the configure step.
This has been introduced by this commit:
http://git.buildroot.net/buildroot/commit/package/pkg-generic.mk?id=6c5c08b854e4490697076ae3c5a9c587d8672c63
... and this line in particular:
$$($(2)_TARGET_CONFIGURE): $$($(2)_TARGET_RSYNC)
Quoted 6 lines
I believe the right way to support parallel build without forcing the configure step in case of rsync, is to use an order-only prerequisite (with a pipe):
$$($(2)_TARGET_CONFIGURE): | $$($(2)_TARGET_RSYNC)I have checked this correction successfully.
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Thanks a lot for the report!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Quoted 22 lines · Thomas Petazzoni
Dear C?dric Marie,
Quoted 18 lines · C?dric Marie
I have recently upgraded from Buildroot 2014.02 to 2014.05, and I have noticed that some developments related to top-level parallel build have resulted in a small change of behaviour, which I would consider as a regression.
When a package is used in rsync mode, make <pkg>-rebuild also forces the configure step.
This has been introduced by this commit:
http://git.buildroot.net/buildroot/commit/package/pkg-generic.mk?id=6c5c08b854e4490697076ae3c5a9c587d8672c63
... and this line in particular:
$$($(2)_TARGET_CONFIGURE): $$($(2)_TARGET_RSYNC)I believe the right way to support parallel build without forcing the configure step in case of rsync, is to use an order-only prerequisite (with a pipe):
$$($(2)_TARGET_CONFIGURE): | $$($(2)_TARGET_RSYNC)
Quoted 7 lines
Quoted 1 line
I have checked this correction successfully.
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Thanks a lot for the report!
Hi all,
thanks for reporting the issue, I will check it and send a patch to fix it.
Best regards
Signature · 1 line
Fabio Porcedda
Le 2014-06-13 14:15, Fabio Porcedda a ?crit?:
Quoted 11 lines
Quoted 5 lines · Thomas Petazzoni
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Thanks a lot for the report!
Hi all,
thanks for reporting the issue, I will check it and send a patch to fix it.
Hi Fabio,
Have you had the time to have a look at this?
I'm currently using the patch I have proposed (with the pipe), but I would be more confident if it was confirmed by an official fix.
Signature · 1 line
C?dric
Quoted 18 lines · C?dric Marie
Le 2014-06-13 14:15, Fabio Porcedda a ?crit :
Quoted 8 lines
Quoted 5 lines · Thomas Petazzoni
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Quoted 6 lines
Quoted 1 line
Thanks a lot for the report!
Hi all,
thanks for reporting the issue, I will check it and send a patch to fix it.
Quoted 5 lines
Hi Fabio,
Have you had the time to have a look at this?
I'm currently using the patch I have proposed (with the pipe), but I would be more confident if it was confirmed by an official fix.
Hi C?dric,
I'm going to check it now.
BR
Signature · 1 line
Fabio Porcedda
Quoted 26 lines · Fabio Porcedda
Quoted 18 lines · C?dric Marie
Le 2014-06-13 14:15, Fabio Porcedda a ?crit :
Quoted 8 lines
Quoted 5 lines · Thomas Petazzoni
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Quoted 6 lines
Quoted 1 line
Thanks a lot for the report!
Hi all,
thanks for reporting the issue, I will check it and send a patch to fix it.Quoted 5 lines
Hi Fabio,
Have you had the time to have a look at this?
I'm currently using the patch I have proposed (with the pipe), but I would be more confident if it was confirmed by an official fix.
Quoted 6 lines
Hi C?dric,
I'm going to check it now.BR
--
Fabio Porcedda
The problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0 -3
@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)
The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200
package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
BR
Signature · 1 line
Fabio Porcedda
Quoted 57 lines · Fabio Porcedda
Quoted 26 lines · Fabio Porcedda
Quoted 18 lines · C?dric Marie
Le 2014-06-13 14:15, Fabio Porcedda a ?crit :
Quoted 8 lines
Quoted 5 lines · Thomas Petazzoni
This indeed seems correct. I've Cc'ed Fabio who is working on the top-level parallel build feature, I guess he'll have a look and give you more feedback and/or send a patch fixing this issue.
Quoted 6 lines
Quoted 1 line
Thanks a lot for the report!
Hi all,
thanks for reporting the issue, I will check it and send a patch to fix it.Quoted 5 lines
Hi Fabio,
Have you had the time to have a look at this?
I'm currently using the patch I have proposed (with the pipe), but I would be more confident if it was confirmed by an official fix.Quoted 6 lines
Hi C?dric,
I'm going to check it now.BR
--
Fabio PorceddaThe problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0
-3@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
Quoted 6 lines
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
Maybe this is a wanted feature?
BR
Signature · 1 line
Fabio Porcedda
Le 2014-06-30 10:55, Fabio Porcedda a ?crit?:
Quoted 22 lines
The problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0
-3@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
Quoted 8 lines
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
BR
Sorry, but I believe that removing the rsync stamp file is necessary when rebuilding.
When you modify your local source files, you want them to be synchronized when rebuilding.
The regression is forcing the configure step, which was not present in 2014.02.
Regards,
Signature · 1 line
C?dric
Quoted 32 lines · C?dric Marie
Le 2014-06-30 10:55, Fabio Porcedda a ?crit :
Quoted 30 lines
The problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0
-3@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
Quoted 10 lines
Quoted 1 line
BR
Sorry, but I believe that removing the rsync stamp file is necessary when rebuilding.
When you modify your local source files, you want them to be synchronized when rebuilding.
The regression is forcing the configure step, which was not present in 2014.02.
I'm sorry, I've misunderstood the problem, now i think your fix is right, I will send a patch with that fix.
Best regards and tanks for reporting it
Signature · 1 line
Fabio Porcedda
Dear Fabio Porcedda,
Quoted 22 lines · Fabio Porcedda
The problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0
-3@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
Quoted 6 lines
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
As others have replied, removing this stamp file is actually really important and the core feature of <pkg>-rebuild. The idea is that when you use OVERRIDE_SRCDIR on a package when you're doing some development, doing <pkg>-rebuild will retrigger the rsync from the override source directory to the build directory, before the build is started again. This allows to make a change in the source code of some component (in its override source directory) and just run "make <pkg>-rebuild" to get this package rebuilt with the updated version of the code.
So clearly, the removal of this stamp file must remain in place. Also, notice that we have the same for <pkg>-reconfigure.
Best regards,
Thomas Petazzoni
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Quoted 43 lines · Thomas Petazzoni
Dear Fabio Porcedda,
Quoted 22 lines · Fabio Porcedda
The problem is that the stamp file for rsync is being removed with the "<pkg>-rebuild" command, so i think that the right fix is:
package/pkg-generic.mk +0
-3@@ -569,9 +569,6 @@ $(1)-graph-depends: graph-depends-requirements $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN) $(1)-clean-for-rebuild: -ifneq ($$($(2)_OVERRIDE_SRCDIR),) - rm -f $$($(2)_TARGET_RSYNC) -endif rm -f $$($(2)_TARGET_BUILD) rm -f $$($(2)_TARGET_INSTALL_STAGING) rm -f $$($(2)_TARGET_INSTALL_TARGET)The problem is not related to top-level parallel build, the problem was present even the previous release (2014.02), the problem was always existed sine the introduction of the "<pk>-rebuild" feature:
Quoted 6 lines
http://git.buildroot.net/buildroot/commit/?id=4ed4e5016b741341059ed826416dad3291df0b2c
Author: Thomas Petazzoni <[email protected]> Date: Thu Sep 29 21:57:39 2011 +0200package: add <pkg>-rebuild and <pkg>-reconfigure
Thomas do you know why you removed the sync stamp file?
As others have replied, removing this stamp file is actually really important and the core feature of <pkg>-rebuild. The idea is that when you use
OVERRIDE_SRCDIRon a package when you're doing some development, doing <pkg>-rebuild will retrigger the rsync from the override source directory to the build directory, before the build is started again. This allows to make a change in the source code of some component (in its override source directory) and just run "make <pkg>-rebuild" to get this package rebuilt with the updated version of the code.
Quoted 2 lines
So clearly, the removal of this stamp file must remain in place. Also, notice that we have the same for <pkg>-reconfigure.
I've understood now, sorry for the misunderstanding.
BR
Signature · 1 line
Fabio Porcedda