Skip to contentSkip to conversation

New: Local uClibc config file gets overwritten using make uclibc-update-config

Buildroot bugzilla at busybox.net 1 participant 6 messages Jun 3, 2014 – Jul 30, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=7154

Summary: Local uClibc config file gets overwritten using make
uclibc-update-config
Product: buildroot
Version: 2014.05
Platform: PC
OS/Version: Windows
Status: NEW
Severity: major
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: oliver.kasten at trsystems.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

I've defined an external place for the uClibc config file using BR_UCLIBC_CONFIG. After editing the configuration with make uclibc-menuconfig I want to copy the edited config file with make uclibc-update-config to the external place.

It seems that before copying the config file to the external place, it gets re-configured using the UCLIBC_CONFIGURE_CMDS, which overwrites the local config file with the external file.

For me deleting the .stamp_configured file in the uclibc-menuconfig entry of the makefile seems not to be a good idea.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 7154] Local uClibc config file gets overwritten using make uclibc-update-config

https://bugs.busybox.net/show_bug.cgi?id=7154

--- Comment #1 from Thomas De Schampheleire <[email protected]> 2014-06-10 13:22:07 UTC --- Bug confirmed.
Procedure is:

make uclibc-menuconfig (make a change)
(change is reflected in output/build/uclibc-.../.config)
make uclibc-update-config
(cp custom.config output/build/uclibc-.../.config, overwriting last change) (do configuration actions)
(cp output/build/uclibc-.../.config custom.config)

Problem may be present for busybox and linux too...

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 7154] Local uClibc config file gets overwritten using make uclibc-update-config

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7154

--- Comment #2 from Thomas De Schampheleire <[email protected]> 2014-06-10 13:56:04 UTC --- (In reply to comment #0)
[..]

Quoted 3 lines

For me deleting the .stamp_configured file in the uclibc-menuconfig entry of the makefile seems not to be a good idea.

This is done so that the uclibc build is correctly restarted, taking into account some of the configuration changes we make on the fly.

The following patch solves the problem, but I'm not sure this is acceptable. It moves the initial copy of the config file outside of the UCLIBC_SETUP_DOT_CONFIG variable, so that this variable can be re-used from the uclibc-update-config target. Because this variable relies on $(@D) we need it to be run for a target inside the UCLIBC_DIR, so the patch introduces a new .stamp_config_file_fixed step.

tdescham at argentina ~/repo/contrib/buildroot-patchwork $ hg diff

package/uclibc/uclibc.mk Tue Jun 10 15:52:36 2014 +0200 renamed from package/uclibc/uclibc.mk Mon Jun 09 10:43:55 2014 +0200 +5 -2
diff -r a3b89cb15e8f package/uclibc/uclibc.mk
@@ -414,7 +414,6 @@
        HOSTCC="$(HOSTCC)"
 
 define UCLIBC_SETUP_DOT_CONFIG
-       $(INSTALL) -m 0644 $(UCLIBC_CONFIG_FILE) $(@D)/.config
        $(call UCLIBC_OPT_SET,CROSS_COMPILER_PREFIX,"$(TARGET_CROSS)",$(@D))
        $(call UCLIBC_OPT_SET,TARGET_$(UCLIBC_TARGET_ARCH),y,$(@D))
        $(call UCLIBC_OPT_SET,TARGET_ARCH,"$(UCLIBC_TARGET_ARCH)",$(@D))
@@ -454,6 +453,7 @@
 endef
 
 define UCLIBC_CONFIGURE_CMDS
+       $(INSTALL) -m 0644 $(UCLIBC_CONFIG_FILE) $(@D)/.config
        $(UCLIBC_SETUP_DOT_CONFIG)
        $(MAKE1) -C $(UCLIBC_DIR) \
                $(UCLIBC_MAKE_FLAGS) \
@@ -553,7 +553,10 @@
 
 $(eval $(generic-package))
 
-uclibc-update-config: $(UCLIBC_DIR)/.stamp_configured
+$(UCLIBC_DIR)/.stamp_config_file_fixed:
+       $(UCLIBC_SETUP_DOT_CONFIG)
+
+uclibc-update-config: $(UCLIBC_DIR)/.stamp_config_file_fixed
        cp -f $(UCLIBC_DIR)/.config $(UCLIBC_CONFIG_FILE)
 
 # Before uClibc is built, we must have the second stage cross-compiler
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 7154] Local uClibc config file gets overwritten using make uclibc-update-config

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7154

Thomas De Schampheleire <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |patrickdepinguin at gmail.com
|.org |

--- Comment #3 from Thomas De Schampheleire <[email protected]> 2014-06-22 13:52:07 UTC --- RFC patch series submitted at:
http://patchwork.ozlabs.org/patch/362557/
http://patchwork.ozlabs.org/patch/362560/
http://patchwork.ozlabs.org/patch/362558/
http://patchwork.ozlabs.org/patch/362561/
http://patchwork.ozlabs.org/patch/362559/

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 7154] Local uClibc config file gets overwritten using make uclibc-update-config

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7154

Thomas De Schampheleire <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2014.08

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 7154] Local uClibc config file gets overwritten using make uclibc-update-config

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=7154

Thomas De Schampheleire <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Thomas De Schampheleire <[email protected]> 2014-07-30 20:03:21 UTC --- Fixed with commit
http://git.buildroot.org/buildroot/commit/?id=8b8a60cd52c6350e346f9783863d362eeccf82b6

Thanks for reporting!

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.