Skip to contentSkip to conversation

kbd: fix install to target

PATCH New Niels Skou Olsen 3 participants 3 messages Mar 13, 2016 – Mar 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbd: fix install to target

The package makefile attempted to append to KBD_INSTALL_TARGET_OPTS, but this fails when done before evaluating $(autotools-package). This is because autotools-package uses ?= to set default values. Instead of appending we now override KBD_INSTALL_TARGET_OPTS.

---
 package/kbd/kbd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/kbd/kbd.mk +1 -1
index 9dabce1..0243c53 100644
@@ -17,6 +17,6 @@ KBD_LICENSE = GPLv2+
 KBD_LICENSE_FILES = COPYING
 KBD_AUTORECONF = YES
 
-KBD_INSTALL_TARGET_OPTS += MKINSTALLDIRS=$(@D)/config/mkinstalldirs
+KBD_INSTALL_TARGET_OPTS = MKINSTALLDIRS=$(@D)/config/mkinstalldirs DESTDIR=$(TARGET_DIR) install
 
 $(eval $(autotools-package))
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 kbd: fix install to target

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Niels" == Niels Skou Olsen <[email protected]> writes:

The package makefile attempted to append to KBD_INSTALL_TARGET_OPTS, but this fails when done before evaluating $(autotools-package). This is because autotools-package uses ?= to set default values. Instead of appending we now override KBD_INSTALL_TARGET_OPTS.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 kbd: fix install to target

In reply to Niels Skou Olsen

Niels,

Quoted 15 lines · Niels Skou Olsen

The package makefile attempted to append to KBD_INSTALL_TARGET_OPTS, but this fails when done before evaluating $(autotools-package). This is because autotools-package uses ?= to set default values. Instead of appending we now override KBD_INSTALL_TARGET_OPTS.

---
 package/kbd/kbd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/kbd/kbd.mk +0 -0
index 9dabce1..0243c53 100644

package/kbd/kbd.mk KBD_LICENSE = GPLv2+ · line 22

Quoted 7 lines
package/kbd/kbd.mk +1 -1
@@ -17,6 +17,6 @@ KBD_LICENSE = GPLv2+
 KBD_LICENSE_FILES = COPYING
 KBD_AUTORECONF = YES
 
-KBD_INSTALL_TARGET_OPTS += MKINSTALLDIRS=$(@D)/config/mkinstalldirs
+KBD_INSTALL_TARGET_OPTS = MKINSTALLDIRS=$(@D)/config/mkinstalldirs DESTDIR=$(TARGET_DIR) install
 
 $(eval $(autotools-package))

Could you submit a patch doing the same change in package/util-linux/util-linux.mk ? I'm not really happy with how MKINSTALLDIRS is passed in util-linux.

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com