package/lvm2: fix installation (branch yem/lvm2-fixes)
cover package/lvm2: fix installation (branch yem/lvm2-fixes)
Hello All!
This small series cleans up the installation of lvm2 after the recent version bump.
Regards,
Yann E. MORIN.
----------------------------------------------------------------
Yann E. MORIN (2):
package/lvm2: fix inverted logic that is confusing package/lvm2: fix installation of systemd units
package/lvm2/lvm2.mk | 13 ++++++------- 1 file changed, 6 insertions(+), 7 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. | '------------------------------^-------^------------------^--------------------'
PATCH 1/2 package/lvm2: fix inverted logic that is confusing
Commit ff0f55e38197 (lvm2: replace !BR2_PACKAGE_LVM2_DMSETUP_ONLY by BR2_PACKAGE_LVM2_STANDARD_INSTALL) changed a negative-logic option to a positive-logic option.
However, it kept the ordering of the conditional block, which became a negatice-logic condition.
This is confusing; let's fix that.
--- package/lvm2/lvm2.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
package/lvm2/lvm2.mk +4 -4
@@ -46,13 +46,13 @@ else LVM2_CONF_OPTS += --disable-selinux endif -ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),) +ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),y) +LVM2_INSTALL_STAGING_OPTS += install +LVM2_INSTALL_TARGET_OPTS += install +else LVM2_MAKE_OPTS = device-mapper LVM2_INSTALL_STAGING_OPTS += install_device-mapper LVM2_INSTALL_TARGET_OPTS += install_device-mapper -else -LVM2_INSTALL_STAGING_OPTS += install -LVM2_INSTALL_TARGET_OPTS += install endif ifeq ($(BR2_INIT_SYSTEMD),y)
Signature · 1 line
2.25.1
PATCH 2/2 package/lvm2: fix installation of systemd units
In reply to Yann E. MORINSince we bump the version in commit 80997acd3587 (package/lvm2: bump version to 2.03.12), the installation of systemd units is no longer functional without a full installation.
As Pascal puts it: the systemd service files don't make a whole lot of sense when there isn't a full lvm2 install.
Move the conditional block that install system units, so that it only occurs when we do a full installation.
Fixes;
http://autobuild.buildroot.org/results/f47/f470ffb55625e2639cecde713442550eb532d0d7/
http://autobuild.buildroot.org/results/954/9547929292e81671fbe3a5b4bbc87a6424edb1ca/
http://autobuild.buildroot.org/results/303/30359c351a6ce2f9139494a531e036f0b0406ccf--- package/lvm2/lvm2.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
package/lvm2/lvm2.mk +3 -4
@@ -49,16 +49,15 @@ endif ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),y) LVM2_INSTALL_STAGING_OPTS += install LVM2_INSTALL_TARGET_OPTS += install +ifeq ($(BR2_INIT_SYSTEMD),y) +LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators +endif else LVM2_MAKE_OPTS = device-mapper LVM2_INSTALL_STAGING_OPTS += install_device-mapper LVM2_INSTALL_TARGET_OPTS += install_device-mapper endif -ifeq ($(BR2_INIT_SYSTEMD),y) -LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators -endif - ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no endif
Signature · 1 line
2.25.1
PATCH 2/2 package/lvm2: fix installation of systemd units
Quoted 11 lines · Yann E. MORIN
Since we bump the version in commit
80997acd3587(package/lvm2: bump version to 2.03.12), the installation of systemd units is no longer functional without a full installation.As Pascal puts it: the systemd service files don't make a whole lot of sense when there isn't a full lvm2 install.
Move the conditional block that install system units, so that it only occurs when we do a full installation.
Fixes;
In the future, please use a colon so patchwork picks it up as a fix :-)
Quoted 8 lines
http://autobuild.buildroot.org/results/f47/f470ffb55625e2639cecde713442550eb532d0d7/ http://autobuild.buildroot.org/results/954/9547929292e81671fbe3a5b4bbc87a6424edb1ca/ http://autobuild.buildroot.org/results/303/30359c351a6ce2f9139494a531e036f0b0406ccfSigned-off-by Yann E. MORIN <[email protected]>Co-Developped-by Pascal de Bruijn <[email protected]>Cc Pascal de Bruijn <[email protected]>Cc Fabrice Fontaine <[email protected]>
Series applied to master, thanks.
Regards,
Arnout
Quoted 29 lines
--- package/lvm2/lvm2.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)package/lvm2/lvm2.mk +3
-4@@ -49,16 +49,15 @@ endif ifeq ($(BR2_PACKAGE_LVM2_STANDARD_INSTALL),y) LVM2_INSTALL_STAGING_OPTS += install LVM2_INSTALL_TARGET_OPTS += install +ifeq ($(BR2_INIT_SYSTEMD),y) +LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators +endif else LVM2_MAKE_OPTS = device-mapper LVM2_INSTALL_STAGING_OPTS += install_device-mapper LVM2_INSTALL_TARGET_OPTS += install_device-mapper endif -ifeq ($(BR2_INIT_SYSTEMD),y) -LVM2_INSTALL_TARGET_OPTS += install_systemd_units install_systemd_generators -endif - ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no endif
PATCH 2/2 package/lvm2: fix installation of systemd units
Arnout, all,
On 2021-06-02 23:12 +0200, Arnout Vandecappelle spake thusly:
Quoted 5 lines · Yann E. MORIN
Quoted 4 lines
Since we bump the version in commit
80997acd3587(package/lvm2: bump version to 2.03.12), the installation of systemd units is no longer functional without a full installation.
Quoted 8 lines
Quoted 7 lines
As Pascal puts it: the systemd service files don't make a whole lot of sense when there isn't a full lvm2 install.
Move the conditional block that install system units, so that it only occurs when we do a full installation.
Fixes;
In the future, please use a colon so patchwork picks it up as a fix :-)
Oh come on... It would mean I would have to hit the 'shift' key right before I hit the ';' key, not right after. This is too difficult for me to synchronise those two key hits right...
(If I had used an azerty keyboard, not an qwerty one, my excuse would have been that the ';' and ':' keys are too close to each other, and aiming for the correct key would too difficult for my fat fingers...)
Quoted 8 lines
Quoted 7 lines
http://autobuild.buildroot.org/results/f47/f470ffb55625e2639cecde713442550eb532d0d7/ http://autobuild.buildroot.org/results/954/9547929292e81671fbe3a5b4bbc87a6424edb1ca/ http://autobuild.buildroot.org/results/303/30359c351a6ce2f9139494a531e036f0b0406ccfSigned-off-by Yann E. MORIN <[email protected]>Co-Developped-by Pascal de Bruijn <[email protected]>Cc Pascal de Bruijn <[email protected]>Cc Fabrice Fontaine <[email protected]>Series applied to master, thanks.
As I understood, that's been applied ot both next and master. Thanks! :-)
Regards,
Yann E. MORIN.
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. | '------------------------------^-------^------------------^--------------------'
PATCH 2/2 package/lvm2: fix installation of systemd units
Quoted 32 lines · Yann E. MORIN
Arnout, all,
On 2021-06-02 23:12 +0200, Arnout Vandecappelle spake thusly:
Quoted 5 lines · Yann E. MORIN
Quoted 4 lines
Since we bump the version in commit
80997acd3587(package/lvm2: bump version to 2.03.12), the installation of systemd units is no longer functional without a full installation.Quoted 8 lines
Quoted 7 lines
As Pascal puts it: the systemd service files don't make a whole lot of sense when there isn't a full lvm2 install.
Move the conditional block that install system units, so that it only occurs when we do a full installation.
Fixes;
In the future, please use a colon so patchwork picks it up as a fix :-)
Oh come on... It would mean I would have to hit the 'shift' key right before I hit the ';' key, not right after. This is too difficult for me to synchronise those two key hits right...
(If I had used an azerty keyboard, not an qwerty one, my excuse would have been that the ';' and ':' keys are too close to each other, and aiming for the correct key would too difficult for my fat fingers...)
Quoted 7 lines
Quoted 7 lines
http://autobuild.buildroot.org/results/f47/f470ffb55625e2639cecde713442550eb532d0d7/ http://autobuild.buildroot.org/results/954/9547929292e81671fbe3a5b4bbc87a6424edb1ca/ http://autobuild.buildroot.org/results/303/30359c351a6ce2f9139494a531e036f0b0406ccfSigned-off-by Yann E. MORIN <[email protected]>Co-Developped-by Pascal de Bruijn <[email protected]>Cc Pascal de Bruijn <[email protected]>Cc Fabrice Fontaine <[email protected]>
Quoted 3 lines
Quoted 1 line
Series applied to master, thanks.
As I understood, that's been applied ot both next and master. Thanks!
No, only master. I didn't push next.
Regards,
Arnout