Skip to content

system: add support for merged-bin (branch yem/merged-bin)

Yann E. MORIN via buildroot buildroot 2 versions – Applied

Status from this message: Applied to master, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 7 repliesApplied
  2. v217 patches 3 repliesSuperseded

Changes v1 -> v2 from the cover letter

- add Arnout's Acked-by tag where appropriate
- totally rewrite the test for merged status
- reject unexpectedly merged skeletons or overlays
- add runtime test to catch systemd tainted flags
- typos

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/18system: reword merged-usr promptsystem/Config.in+1 -10 replies
2/18system: drop superfluous negative condition for default PATHsystem/Config.in+1 -10 replies
3/18package/systemd: select merged-usr from package, not initpackage/systemd/Config.in system/Config.in+1 -50 replies
4/18support/scripts: comonalise checking merged statussupport/scripts/check-merged-usr.sh+26 -200 replies
5/18support/scripts: prepare for a more complex check for merged directoriessupport/scripts/check-merged-usr.sh+12 -40 replies
6/18support/scripts: also exit in error on improperly merged-usrsupport/scripts/check-merged-usr.sh+7 -00 replies
7/18support/scripts: move merged-usr errors message into check-merged-usr.shMakefile package/skeleton-custom/skeleton-custom.mk support/scripts/check-merged-usr.sh+64 -375 replies
8/18support/scripts: fix and restrict conditions to accept merged dirssupport/scripts/check-merged-usr.sh+51 -360 replies
9/18support/scripts: rename check-merged-usr.shMakefile package/skeleton-custom/skeleton-custom.mk support/scripts/check-merged+2 -20 replies
10/18support/scripts; teach check-merged what to checkMakefile package/skeleton-custom/skeleton-custom.mk support/scripts/check-merged+18 -180 replies
11/18system: add support for merged /usr/sbin (aka merged-bin)Makefile package/skeleton-custom/skeleton-custom.mk support/scripts/check-merged +3 more+45 -40 replies
12/18support/scripts: reject skeletons or overlays that are unexpectedly mergedsupport/scripts/check-merged+16 -60 replies
13/18package/coreutils: no need for chroot workaround with merged-binpackage/coreutils/coreutils.mk+2 -00 replies
14/18package/kmod: adjust paths for merged-binpackage/kmod/kmod.mk+10 -20 replies
15/18package/util-linux: adjust paths for merged-binpackage/util-linux/util-linux.mk+7 -10 replies
16/18package/net-tools: no need for ifconfig+route workarounds with merged-binpackage/net-tools/net-tools.mk+8 -20 replies
17/18toolchain/external: support merged-bintoolchain/helpers.mk+6 -20 replies
18/18package/systemd: require merged-binpackage/systemd/Config.in support/testing/tests/init/test_systemd.py+20 -00 replies

Reviews trailers per patch

6 of 18 patches have a Reviewed-by or Acked-by.

PatchArnout VandecappelleTIAN Yuanhao
1/18A-b
2/18A-b
3/18A-b
4/18A-b
5/18
6/18
7/18
8/18
9/18A-b
10/18
11/18A-b A-b
12/18
13/18
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Buildroot] [PATCH 00/18 v3] system: add support for merged-bin (branch yem/merged-bin)

Hello All!

This series introduces support for so-called merged-bin, where /usr/sbin is merged with /usr/bin, as an extra step after merged-usr, now just requested, but in the future required, by systemd.

The series is organised in a few steps:

1. patches 1-3 are cleanups in the Kconfig menu, related to the merged-usr prompt, to the defaults for PATH, and to the rationale for selecting merged-usr with systemd; those can be applied without considering the rest of the series;

2. then patches 4-9 prepare support/scripts/check-merged-usr.sh to check for more than merged-usr: a good cleanup, and better check the merged state; those patch can also be applied without considering the rest of the series;

3. with patches 9-12, support for merged-bin is added, and the merge level of skeleton and overlays properly enforced to match the configured merge setup; those require the two set of patches above to be applied first;

4. then, patches 13-17 introduce workarounds for a few packages to properly support merged-bin. For ease of review, those are separate patches, but that means the series _may_ break if the merged-bin support is applied but not these per-package workarounds; these require that all patches above be applied first, of course;

5. the last patch makes merged-bin mandatory for systemd and extend the systemd runtime test to catch future tainted flag; again, that requires that everything before is applied, too.

The series was tested with a large set of packages and a large set of toolchains, and although it is a critical change, it is still pretty well confined to just a few spots.

Changes v2 -> v3;
- add fix for merged-bin to net-tools

Changes v1 -> v2:
- add Arnout's Acked-by tag where appropriate
- totally rewrite the test for merged status
- reject unexpectedly merged skeletons or overlays
- add runtime test to catch systemd tainted flags
- typos

Regards,
Yann E. MORIN.

----------------------------------------------------------------
Yann E. MORIN (18):
system: reword merged-usr prompt
system: drop superfluous negative condition for default PATH package/systemd: select merged-usr from package, not init support/scripts: comonalise checking merged status support/scripts: prepare for a more complex check for merged directories support/scripts: also exit in error on improperly merged-usr support/scripts: move merged-usr errors message into check-merged-usr.sh support/scripts: fix and restrict conditions to accept merged dirs support/scripts: rename check-merged-usr.sh
support/scripts; teach check-merged what to check
system: add support for merged /usr/sbin (aka merged-bin) support/scripts: reject skeletons or overlays that are unexpectedly merged package/coreutils: no need for chroot workaround with merged-bin package/kmod: adjust paths for merged-bin
package/util-linux: adjust paths for merged-bin package/net-tools: no need for ifconfig+route workarounds with merged-bin toolchain/external: support merged-bin
package/systemd: require merged-bin

 Makefile                                   |  19 ++--
 package/coreutils/coreutils.mk             |   2 +
 package/kmod/kmod.mk                       |  12 ++-
 package/net-tools/net-tools.mk             |  10 +-
 package/skeleton-custom/skeleton-custom.mk |  25 ++---
 package/systemd/Config.in                  |   2 +
 package/util-linux/util-linux.mk           |   8 +-
 support/scripts/check-merged               | 146 +++++++++++++++++++++++++++++
 support/scripts/check-merged-usr.sh        |  39 --------
 support/testing/tests/init/test_systemd.py |  19 ++++
 system/Config.in                           |  20 ++--
 system/skeleton/usr/sbin/.empty            |   0
 system/system.mk                           |  14 ++-
 toolchain/helpers.mk                       |   8 +-
 14 files changed, 240 insertions(+), 84 deletions(-)
 create mode 100755 support/scripts/check-merged
 delete mode 100755 support/scripts/check-merged-usr.sh
 delete mode 100644 system/skeleton/usr/sbin/.empty

--
.-----------------.--------------------.------------------.--------------------.

|  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