Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
@ 2012-07-24 22:10 Thomas Petazzoni
  2012-07-24 22:10 ` [Buildroot] [PATCH 2/3] gpsd: add patch to disable rpath Thomas Petazzoni
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-24 22:10 UTC (permalink / raw)
  To: buildroot

prefix should always be /usr, and destdir must be passed as DESTDIR,
and in the environment, not as a scons argument. Finally, we pass the
sysroot= argument to scons so that it doesn't add -L/usr/lib
parameters when compiling.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/gpsd/gpsd.mk |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/gpsd/gpsd.mk b/package/gpsd/gpsd.mk
index 7d1dbcd..759cd9c 100644
--- a/package/gpsd/gpsd.mk
+++ b/package/gpsd/gpsd.mk
@@ -17,8 +17,9 @@ GPSD_SCONS_ENV = $(TARGET_CONFIGURE_OPTS)
 
 GPSD_SCONS_OPTS = \
 	arch=$(ARCH)\
-	prefix=$(TARGET_DIR)/usr\
+	prefix=/usr\
 	chrpath=no\
+	sysroot=$(STAGING_DIR)\
 	strip=no
 
 ifeq ($(BR2_PACKAGE_NCURSES),y)
@@ -210,9 +211,9 @@ endef
 define GPSD_INSTALL_TARGET_CMDS
 	(cd $(@D); \
 		$(GPSD_SCONS_ENV) \
+		DESTDIR=$(TARGET_DIR) \
 		$(SCONS) \
 		$(GPSD_SCONS_OPTS) \
-		destdir=$(TARGET_DIR) \
 		install)
 	if [ ! -f $(TARGET_DIR)/etc/init.d/S50gpsd ]; then \
 		$(INSTALL) -m 0755 -D package/gpsd/S50gpsd $(TARGET_DIR)/etc/init.d/S50gpsd; \
@@ -223,10 +224,9 @@ endef
 define GPSD_INSTALL_STAGING_CMDS
 	(cd $(@D); \
 		$(GPSD_SCONS_ENV) \
+		DESTDIR=$(TARGET_DIR) \
 		$(SCONS) \
 		$(GPSD_SCONS_OPTS) \
-		destdir=$(STAGING_DIR) \
-		includedir="$(STAGING_DIR)/usr/include" \
 		install)
 endef
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-07-25 16:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 22:10 [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Thomas Petazzoni
2012-07-24 22:10 ` [Buildroot] [PATCH 2/3] gpsd: add patch to disable rpath Thomas Petazzoni
2012-07-25  8:50   ` Simon Dawson
2012-07-24 22:10 ` [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory Thomas Petazzoni
2012-07-25  7:26   ` Simon Dawson
2012-07-25  7:43     ` Thomas Petazzoni
2012-07-25  7:57       ` Simon Dawson
2012-07-25  7:53 ` [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Simon Dawson
2012-07-25  8:22   ` Thomas Petazzoni
2012-07-25  8:49     ` Simon Dawson
2012-07-25  8:50       ` Simon Dawson
2012-07-25  8:55       ` Thomas Petazzoni
2012-07-25 10:35         ` Simon Dawson
2012-07-25 14:11           ` Thomas Petazzoni
2012-07-25 14:27             ` Simon Dawson
2012-07-25 16:28 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox