All of 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

* [Buildroot] [PATCH 2/3] gpsd: add patch to disable rpath
  2012-07-24 22:10 [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Thomas Petazzoni
@ 2012-07-24 22:10 ` 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
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-24 22:10 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 .../gpsd/gpsd-03-sconstruct-disable-rpath.patch    |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/gpsd/gpsd-03-sconstruct-disable-rpath.patch

diff --git a/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch b/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch
new file mode 100644
index 0000000..5476450
--- /dev/null
+++ b/package/gpsd/gpsd-03-sconstruct-disable-rpath.patch
@@ -0,0 +1,17 @@
+Disable addition of RPATH to the generated libraries
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/SConstruct
+===================================================================
+--- a/SConstruct
++++ b/SConstruct
+@@ -273,8 +273,6 @@
+     env.Prepend(LIBPATH=[installdir('libdir')])
+ else:
+     env.Prepend(LIBPATH=[env["sysroot"] + installdir('libdir')])
+-if env["shared"]:
+-    env.Prepend(RPATH=[installdir('libdir')])
+ 
+ # Give deheader a way to set compiler flags
+ if 'MORECFLAGS' in os.environ:
-- 
1.7.9.5

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

* [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory
  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-24 22:10 ` Thomas Petazzoni
  2012-07-25  7:26   ` Simon Dawson
  2012-07-25  7:53 ` [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Simon Dawson
  2012-07-25 16:28 ` Thomas Petazzoni
  3 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-24 22:10 UTC (permalink / raw)
  To: buildroot

The Qt configuration and installation process is a bit strange, and it
leads the .pc files to contain absolute paths to the staging
directory, while it should only contains paths relative to the staging
directory, because pkg-config already adds the path of the sysroot
automatically to the headers and libraries locations.

This allows the 'pkg-config --cflags' results for Qt libraries to be
correct.

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

diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index feb0d6f..3b40ea4 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -577,13 +577,20 @@ endef
 # everything in the STAGING_DIR), we move host programs such as qmake,
 # rcc or uic to the HOST_DIR so that they are available at the usual
 # location. A qt.conf file is generated to make sure that all host
-# programs still find all files they need.
+# programs still find all files they need. The .pc files are tuned to
+# remove the sysroot path from them, since pkg-config already adds it
+# automatically.
 define QT_INSTALL_STAGING_CMDS
 	$(MAKE) -C $(@D) install
 	mkdir -p $(HOST_DIR)/usr/bin
 	mv $(addprefix $(STAGING_DIR)/usr/bin/,$(QT_HOST_PROGRAMS)) $(HOST_DIR)/usr/bin
 	ln -sf $(STAGING_DIR)/usr/mkspecs $(HOST_DIR)/usr/mkspecs
 	$(QT_INSTALL_QT_CONF)
+	for i in moc uic rcc lupdate lrelease ; do \
+		$(SED) "s,^$${i}_location=.*,$${i}_location=$(HOST_DIR)/usr/bin/$${i}," \
+			$(STAGING_DIR)/usr/lib/pkgconfig/Qt*.pc ; \
+	done
+	$(SED) "s,$(STAGING_DIR)/,,g" $(STAGING_DIR)/usr/lib/pkgconfig/Qt*.pc
 endef
 
 # Library installation
-- 
1.7.9.5

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

* [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory
  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
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  7:26 UTC (permalink / raw)
  To: buildroot

On 24 July 2012 23:10, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> This allows the 'pkg-config --cflags' results for Qt libraries to be
> correct.

Acked-by: Simon Dawson <spdawson@gmail.com>

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

* [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory
  2012-07-25  7:26   ` Simon Dawson
@ 2012-07-25  7:43     ` Thomas Petazzoni
  2012-07-25  7:57       ` Simon Dawson
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-25  7:43 UTC (permalink / raw)
  To: buildroot

Le Wed, 25 Jul 2012 08:26:43 +0100,
Simon Dawson <spdawson@gmail.com> a ?crit :

> On 24 July 2012 23:10, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
> > This allows the 'pkg-config --cflags' results for Qt libraries to be
> > correct.
> 
> Acked-by: Simon Dawson <spdawson@gmail.com>

Is this an Acked-by solely for PATCH 3/3, or for all patches?

Thanks for looking at them!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  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-24 22:10 ` [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory Thomas Petazzoni
@ 2012-07-25  7:53 ` Simon Dawson
  2012-07-25  8:22   ` Thomas Petazzoni
  2012-07-25 16:28 ` Thomas Petazzoni
  3 siblings, 1 reply; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  7:53 UTC (permalink / raw)
  To: buildroot

On 24 July 2012 23:10, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> 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.

Hi Thomas. The build is now falling over for me:

/opt/tfx/arch/arm/usr/bin/ccache /usr/lib/ccache/gcc -pthread -o
strl-py_2_7_2_final_0.so -c -fno-strict-aliasing -O2 -fPIC -DNDEBUG -g
-O3 -Wall -Wstrict-prototypes
-I/opt/tfx/arch/arm/usr/include/python2.7 strl.c
/opt/tfx/arch/arm/usr/bin/ccache /usr/lib/ccache/gcc -pthread -shared
-L/opt/tfx/arch/arm/lib -L/opt/tfx/arch/arm/usr/lib
-Wl,-rpath,/opt/tfx/arch/arm/usr/lib -o gps/clienthelpers.so
gpsclient-py_2_7_2_final_0.so geoid-py_2_7_2_final_0.so
gpsdclient-py_2_7_2_final_0.so strl-py_2_7_2_final_0.so -L.
-L/opt/tfx/arch/arm/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib
-lrt
/usr/bin/ld: skipping incompatible
/opt/tfx/arch/arm/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/librt.so
when searching for -lrt
/usr/bin/ld: skipping incompatible
/opt/tfx/arch/arm/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/librt.a
when searching for -lrt
/usr/bin/ld: cannot find /lib/libpthread.so.0 inside
/usr/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside
collect2: ld returned 1 exit status
scons: *** [gps/clienthelpers.so] Error 1
scons: building terminated because of errors.

> @@ -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

Should DESTDIR be set to $(STAGING_DIR), rather than $(TARGET_DIR), here?

Simon.

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

* [Buildroot] [PATCH 3/3] qt: tune .pc files after installation in staging directory
  2012-07-25  7:43     ` Thomas Petazzoni
@ 2012-07-25  7:57       ` Simon Dawson
  0 siblings, 0 replies; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  7:57 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On 25 July 2012 08:43, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Is this an Acked-by solely for PATCH 3/3, or for all patches?

Just for PATCH 3/3. I'm still testing PATCH 1/3 and PATCH 2/3.

Simon.

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  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
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-25  8:22 UTC (permalink / raw)
  To: buildroot

Le Wed, 25 Jul 2012 08:53:54 +0100,
Simon Dawson <spdawson@gmail.com> a ?crit :

> Hi Thomas. The build is now falling over for me:

This is the Python support of gpsd, correct? Was it building before my
patches?

Because if you look closely:

> /opt/tfx/arch/arm/usr/bin/ccache /usr/lib/ccache/gcc -pthread -o

It is building with the native compiler gcc and not the cross-compiler,
so obviously it cannot work. 

> > @@ -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
> 
> Should DESTDIR be set to $(STAGING_DIR), rather than $(TARGET_DIR), here?

Good point, will fix.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  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
  0 siblings, 2 replies; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  8:49 UTC (permalink / raw)
  To: buildroot

On 25 July 2012 09:22, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> This is the Python support of gpsd, correct? Was it building before my
> patches?
>
> Because if you look closely:
>
>> /opt/tfx/arch/arm/usr/bin/ccache /usr/lib/ccache/gcc -pthread -o
>
> It is building with the native compiler gcc and not the cross-compiler,
> so obviously it cannot work.

Yes, you're right. It was using the native compiler before your
patches, but somehow managed to get through the build without falling
over. Another problem then.

Simon.

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  2012-07-25  8:49     ` Simon Dawson
@ 2012-07-25  8:50       ` Simon Dawson
  2012-07-25  8:55       ` Thomas Petazzoni
  1 sibling, 0 replies; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  8:50 UTC (permalink / raw)
  To: buildroot

Acked-by: Simon Dawson <spdawson@gmail.com>

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

* [Buildroot] [PATCH 2/3] gpsd: add patch to disable rpath
  2012-07-24 22:10 ` [Buildroot] [PATCH 2/3] gpsd: add patch to disable rpath Thomas Petazzoni
@ 2012-07-25  8:50   ` Simon Dawson
  0 siblings, 0 replies; 16+ messages in thread
From: Simon Dawson @ 2012-07-25  8:50 UTC (permalink / raw)
  To: buildroot

On 24 July 2012 23:10, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  .../gpsd/gpsd-03-sconstruct-disable-rpath.patch    |   17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 package/gpsd/gpsd-03-sconstruct-disable-rpath.patch

Acked-by: Simon Dawson <spdawson@gmail.com>

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  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
  1 sibling, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-25  8:55 UTC (permalink / raw)
  To: buildroot

Le Wed, 25 Jul 2012 09:49:35 +0100,
Simon Dawson <spdawson@gmail.com> a ?crit :

> Yes, you're right. It was using the native compiler before your
> patches, but somehow managed to get through the build without falling
> over. Another problem then.

Can you share a defconfig that shows the problem? I've tested the build
with BR2_PACKAGE_PYTHON + BR2_PACKAGE_GPSD, and it just builds (even
though the output is completely incorrect: the gpsd Python modules are
installed in the wrong location and are built for the host rather than
the target).

Do you actually need the Python support in gpsd? :-)

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  2012-07-25  8:55       ` Thomas Petazzoni
@ 2012-07-25 10:35         ` Simon Dawson
  2012-07-25 14:11           ` Thomas Petazzoni
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Dawson @ 2012-07-25 10:35 UTC (permalink / raw)
  To: buildroot

Hi Thomas

On 25 July 2012 09:55, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Can you share a defconfig that shows the problem? I've tested the build
> with BR2_PACKAGE_PYTHON + BR2_PACKAGE_GPSD, and it just builds (even
> though the output is completely incorrect: the gpsd Python modules are
> installed in the wrong location and are built for the host rather than
> the target).

BR2_arm=y
BR2_arm926t=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_MPFR=y
BR2_PACKAGE_GPSD=y
BR2_PACKAGE_GPSD_NTP_SHM=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_PYC=y
BR2_PACKAGE_PYTHON_NFC=y

> Do you actually need the Python support in gpsd? :-)

I think the Python support is needed for gpsfake, gpscat, and a few
other things. For my particular use case, it's not required.

Simon.

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  2012-07-25 10:35         ` Simon Dawson
@ 2012-07-25 14:11           ` Thomas Petazzoni
  2012-07-25 14:27             ` Simon Dawson
  0 siblings, 1 reply; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-25 14:11 UTC (permalink / raw)
  To: buildroot

Le Wed, 25 Jul 2012 11:35:44 +0100,
Simon Dawson <spdawson@gmail.com> a ?crit :

> On 25 July 2012 09:55, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
> > Can you share a defconfig that shows the problem? I've tested the
> > build with BR2_PACKAGE_PYTHON + BR2_PACKAGE_GPSD, and it just
> > builds (even though the output is completely incorrect: the gpsd
> > Python modules are installed in the wrong location and are built
> > for the host rather than the target).
> 
> BR2_arm=y
> BR2_arm926t=y
> BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
> BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_PACKAGE_MPFR=y
> BR2_PACKAGE_GPSD=y
> BR2_PACKAGE_GPSD_NTP_SHM=y
> BR2_PACKAGE_PYTHON=y
> BR2_PACKAGE_PYTHON_PY_PYC=y
> BR2_PACKAGE_PYTHON_NFC=y

This configuration builds fine here. So I guess the difference is that
I build inside a chroot in which I have almost no development package
installed in the host, and you build in your normal development
machine, on which you have many development packages installed, and
those are influencing the build somehow.

For now, I would suggest that we leave the Python support in gpsd on
the side, until someone who actually needs it steps up to fix the
issues. So I'll force python=no unconditionally. Do you agree with this?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  2012-07-25 14:11           ` Thomas Petazzoni
@ 2012-07-25 14:27             ` Simon Dawson
  0 siblings, 0 replies; 16+ messages in thread
From: Simon Dawson @ 2012-07-25 14:27 UTC (permalink / raw)
  To: buildroot

On 25 July 2012 15:11, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> For now, I would suggest that we leave the Python support in gpsd on
> the side, until someone who actually needs it steps up to fix the
> issues. So I'll force python=no unconditionally. Do you agree with this?

Yes, absolutely.

Simon.

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

* [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR
  2012-07-24 22:10 [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Thomas Petazzoni
                   ` (2 preceding siblings ...)
  2012-07-25  7:53 ` [Buildroot] [PATCH 1/3] gpsd: proper usage of prefix and DESTDIR Simon Dawson
@ 2012-07-25 16:28 ` Thomas Petazzoni
  3 siblings, 0 replies; 16+ messages in thread
From: Thomas Petazzoni @ 2012-07-25 16:28 UTC (permalink / raw)
  To: buildroot

Le Wed, 25 Jul 2012 00:10:29 +0200,
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> a ?crit :

> 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>

Applied all 3 patches, with the TARGET_DIR -> STAGING_DIR fix
mentioned by Simon.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.