Skip to contentSkip to conversation

package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary

PATCH New unixmania at gmail.com 3 participants 3 messages Sep 14, 2019 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary

From: Carlos Santos <[email protected]>

Useful for test purposes when we want to install util-linux with a custom TARGET_DIR, e.g.

    $ make util-linux-reinstall TARGET_DIR=/tmp/util-linux
---
 package/util-linux/util-linux.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/util-linux/util-linux.mk +1 -1
index 99ec39467f..cd69838046 100644
@@ -236,7 +236,7 @@ endif
 # Install PAM configuration files
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_SU)$(BR2_PACKAGE_LINUX_PAM),yy)
 define UTIL_LINUX_INSTALL_PAMFILES
-	$(INSTALL) -m 0644 package/util-linux/su.pam \
+	$(INSTALL) -D -m 0644 package/util-linux/su.pam \
 		$(TARGET_DIR)/etc/pam.d/su
 	$(INSTALL) -m 0644 package/util-linux/su.pam \
 		$(TARGET_DIR)/etc/pam.d/su-l
Signature · 1 line
2.18.1
#1 lore raw

PATCH 1/1 package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary

Quoted 11 lines · On Sat, 14 Sep 2019 13:41:43 -0300 unixmania at gmail.com wrote:

From: Carlos Santos <[email protected]>

Useful for test purposes when we want to install util-linux with a custom TARGET_DIR, e.g.

    $ make util-linux-reinstall TARGET_DIR=/tmp/util-linux
---
 package/util-linux/util-linux.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Even if not strictly needed, I have changed the second $(INSTALL) invocation to also pass -D, and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary

In reply to unixmania at gmail.com
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"unixmania" == unixmania <[email protected]> writes:

From: Carlos Santos <[email protected]>
Useful for test purposes when we want to install util-linux with a custom TARGET_DIR, e.g.

    $ make util-linux-reinstall TARGET_DIR=/tmp/util-linux

Committed to 2019.02.x, 2019.05.x and 2019.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard