Skip to contentSkip to conversation

legacy: drop options older than 5 years, make that the new rule (branch yem/drop-old-legacy)

PATCH In review Yann E. MORIN 2 participants 5 messages Mar 28, 2021 – Jan 17, 2022

lore
Share & tools
lore
#0 lore raw

cover legacy: drop options older than 5 years, make that the new rule (branch yem/drop-old-legacy)

Hello All!

We advertise that legacy symbols will be removed after two years. However, so far, we've be more lax than that, and we only dropped symbols after about 5 year have elapsed.

This series changes the rule to match the customs, and drops the entries older than 5 years.

Additionally, a little shell snippet is added in the comments, to help eventually drop those legacy symbols when they are still used elsewhere (e.g. as legacy defaults).

---
Changes v1 -> v2:
- drop patches removing more recent entries up to 2-year old)
- make the 5-year customs the rule

Regards,
Yann E. MORIN.

----------------------------------------------------------------
Yann E. MORIN (3):
legacy: increase the duration during whih we keep legacy symbols
legacy: add note about removing options
legacy: drop options more than 5 years old

 Config.in                    |   1 -
 Config.in.legacy             | 658 +------------------------------------------
 configs/sheevaplug_defconfig |   1 -
 3 files changed, 4 insertions(+), 656 deletions(-)
Signature · 6 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.  |
'------------------------------^-------^------------------^--------------------'
#1 lore raw

PATCH 1/3 legacy: increase the duration during whih we keep legacy symbols

Our LTS is only one-year long (actually, more like 13 mopnths), which is still seen as too short by some, who do not have the bandwidth, willingness, and/or capability to update once a year.

As such, the 2-year retention guarantee for the legacy symbols, is often not enough, and people miss on them when eventually migrating.

Furthermore, the cuystoms so far has been to drop the symbols only after a 5-year period has elapsed:

    f289b1b36f5c  legacy: drop options removed more than 5 years ago now
    a52e106bbd08  legacy: remove options made legacy 5 years ago
    a7f49a9693d7  Config.in.legacy: drop 2013.02 entries

So, make the customs the new rule: increase the retenetion period to 5 years.

---
 Config.in.legacy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Config.in.legacy +1 -1
index 8ebbc4c295..967b67e03e 100644
@@ -6,7 +6,7 @@
 # This will make the transition for the user more convenient.
 #
 # When adding legacy symbols to this file, add them to the front. The oldest
-# symbols will be removed again after about two years.
+# symbols will be removed again after at least five years.
 #
 # The symbol should be copied as-is from the place where it was previously
 # defined, but the help text should be removed or replaced with something that
Signature · 1 line
2.25.1
#2 lore raw

Re: [Buildroot] [PATCH 1/3] legacy: increase the duration during whih we keep legacy symbols

Hello Yann, All,

Le 28/03/2021 à 22:30, Yann E. MORIN a écrit :

Quoted 7 lines

Our LTS is only one-year long (actually, more like 13 mopnths), which is still seen as too short by some, who do not have the bandwidth, willingness, and/or capability to update once a year.

As such, the 2-year retention guarantee for the legacy symbols, is often not enough, and people miss on them when eventually migrating.

Quoted 8 lines

Furthermore, the cuystoms so far has been to drop the symbols only after a 5-year period has elapsed:

    f289b1b36f5c  legacy: drop options removed more than 5 years ago now
    a52e106bbd08  legacy: remove options made legacy 5 years ago
    a7f49a9693d7  Config.in.legacy: drop 2013.02 entries

So, make the customs the new rule: increase the retenetion period to 5 years.

I'm aware of some projects using an out of date Buildroot version from 2012 and 2016. But switching between Buildroot 2012 to Buildroot 2022 requires a complete rework, not just updating the Buildroot defconfig to remove legacy option.

Is really a benefit to remove theses legacy config ?

Best regards,
Romain

Quoted 13 lines
---
 Config.in.legacy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Config.in.legacy +0 -0
index 8ebbc4c295..967b67e03e 100644

Config.in.legacy line 12

Quoted 8 lines
Config.in.legacy +1 -1
@@ -6,7 +6,7 @@
 # This will make the transition for the user more convenient.
 #
 # When adding legacy symbols to this file, add them to the front. The oldest
-# symbols will be removed again after about two years.
+# symbols will be removed again after at least five years.
 #
 # The symbol should be copied as-is from the place where it was previously
 # defined, but the help text should be removed or replaced with something that

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH 2/3 legacy: add note about removing options

In reply to Yann E. MORIN

Legacy options might still be in use, for example as a legacy default (e.g. as a string default, or as a choice default).

So, when we eventually remove legacy options, we must ensure they are no longer used.

Add a small shell snippet to make that easy.

---
 Config.in.legacy | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Config.in.legacy +4 -1
index 967b67e03e..dbf53e3586 100644
@@ -6,7 +6,10 @@
 # This will make the transition for the user more convenient.
 #
 # When adding legacy symbols to this file, add them to the front. The oldest
-# symbols will be removed again after at least five years.
+# symbols will be removed again after at least five years. When removing symbols,
+# ensure there is nothing that still uses them (like legacy defaults):
+#   syms="$(git diff |sed -r -e '/^-config ([^[:space:]]+)$/!d; s//\1/')"
+#   for sym in ${syms}; do git --no-pager grep ${sym}; done
 #
 # The symbol should be copied as-is from the place where it was previously
 # defined, but the help text should be removed or replaced with something that
Signature · 1 line
2.25.1
#4 lore raw

PATCH 3/3 legacy: drop options more than 5 years old

In reply to Yann E. MORIN

People who historically had BR2_ENABLE_SSP=y will hopefully have had enough time by now to adapt their defconfig files to the new choice settings; people would had it unset did not expect to use SSP at all. So we can drop the legacy default.

Removal of the U-Boot network option in commit 16b8e813c810 (boot/uboot:
remove deprecated network settings option) forgot to drop the setting from the sheevaplug defconfig. Remove it now.

---
 Config.in                    |   1 -
 Config.in.legacy             | 653 -----------------------------------
 configs/sheevaplug_defconfig |   1 -
 3 files changed, 655 deletions(-)
Config.in +0 -1
index e35a78fb71..d8e41543c6 100644
@@ -727,7 +727,6 @@ comment "PIC/PIE needs a toolchain w/ PIE"
 
 choice
 	bool "Stack Smashing Protection"
-	default BR2_SSP_ALL if BR2_ENABLE_SSP # legacy
 	depends on BR2_TOOLCHAIN_HAS_SSP
 	help
 	  Enable stack smashing protection support using GCC's
Config.in.legacy +0 -653

659 lines not on this page · raw message

configs/sheevaplug_defconfig +0 -1
index 052e39398a..7822e314a1 100644
@@ -21,7 +21,6 @@ BR2_TARGET_UBOOT_BOARD_DEFCONFIG="sheevaplug"
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.07"
 BR2_TARGET_UBOOT_FORMAT_KWB=y
-# BR2_TARGET_UBOOT_NETWORK is not set
 
 # Kernel
 BR2_LINUX_KERNEL=y
Signature · 1 line
2.25.1