Skip to contentSkip to conversation

paxtest: use RUNDIR

PATCH New Matt Weber 2 participants 2 messages Jul 23, 2017 – Jul 25, 2017

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH 1/1 paxtest: use RUNDIR

RUNDIR installs the test applications and shared libraries into a different folder then /usr/lib. This is desired as there are a lot of test apps which would get installed into /usr/lib without organization. Instead, set RUNDIR=/usr/lib/paxtest to install the test apps and libraries in a sub folder. The genpaxtest script accounts for this path and handles a LD_LIBRARY_PATH update as part of the paxtest script's exeuction.

---
 package/paxtest/paxtest.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
package/paxtest/paxtest.mk +7 -2
index 5eaee86..e632e22 100644
@@ -11,15 +11,20 @@ PAXTEST_LICENSE_FILES = README
 
 define PAXTEST_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
-		CC="$(TARGET_CC)" LD="$(TARGET_CC)" linux
+		RUNDIR="/usr/lib/paxtest" CC="$(TARGET_CC)" LD="$(TARGET_CC)" linux
 endef
 
+# The files installed to RUNDIR include test apps and shared libs.
+# Assuming /usr/bin/paxtest script solely uses these libs and apps, the
+# genpaxtest script updates LD_LIBRARY_PATH in the paxtest script
+# as part of the paxtest's creation to include the RUNDIR path for shared
+# library use.
 define PAXTEST_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
 		CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
 		DESTDIR=$(TARGET_DIR) \
 		BINDIR="usr/bin" \
-		RUNDIR="usr/lib" -f Makefile.psm install
+		RUNDIR="/usr/lib/paxtest" -f Makefile.psm install
 endef
 
 $(eval $(generic-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 paxtest: use RUNDIR

Hello,

Quoted 8 lines · Matt Weber

RUNDIR installs the test applications and shared libraries into a different folder then /usr/lib. This is desired as there are a lot of test apps which would get installed into /usr/lib without organization. Instead, set RUNDIR=/usr/lib/paxtest to install the test apps and libraries in a sub folder. The genpaxtest script accounts for this path and handles a LD_LIBRARY_PATH update as part of the paxtest script's exeuction.

Quoted 4 lines
---
 package/paxtest/paxtest.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

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