Skip to contentSkip to conversation

svn commit: trunk/buildroot/package: audio/libogg audio/libvorbis docker edit etc...

Buildroot jacmet at uclibc.org 2 participants 8 messages Oct 26, 2008 – Oct 27, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-10-25 23:19:43 -0700 (Sat, 25 Oct 2008) New Revision: 23794

Log:
package: cleanup PKG_CONFIG_SYSROOT

PKG_CONFIG_SYSROOT_DIR and friends get set in package/Makefile.in, so there's no need to set it in the makefiles of the individual packages as well.

Based on a patch by Markus Heidelberg.

Modified:
trunk/buildroot/package/audio/libogg/libogg.mk trunk/buildroot/package/audio/libvorbis/libvorbis.mk trunk/buildroot/package/docker/docker.mk trunk/buildroot/package/editors/vim/vim.mk

Changeset:
Modified: trunk/buildroot/package/audio/libogg/libogg.mk
===================================================================

buildroot/package/audio/libogg/libogg.mk +0 -3
@@ -24,9 +24,6 @@
 		$(TARGET_CONFIGURE_ARGS) \
 		$(TARGET_CONFIGURE_OPTS) \
 		CFLAGS="$(TARGET_CFLAGS)" \
-		PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" \
-		PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-		PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
 		./configure \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \

Modified: trunk/buildroot/package/audio/libvorbis/libvorbis.mk
===================================================================

buildroot/package/audio/libvorbis/libvorbis.mk +0 -3
@@ -23,9 +23,6 @@
 		$(TARGET_CONFIGURE_ARGS) \
 		$(TARGET_CONFIGURE_OPTS) \
 		CFLAGS="$(TARGET_CFLAGS)" \
-		PKG_CONFIG_PATH="$(STAGING_DIR)/lib/pkconfig:$(STAGING_DIR)/usr/lib/pkgconfig" \
-		PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-		PKG_CONFIG_SYSROOT=$(STAGING_DIR) \
 		./configure \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \

Modified: trunk/buildroot/package/docker/docker.mk
===================================================================

buildroot/package/docker/docker.mk +1 -4
@@ -14,10 +14,7 @@
 					CFLAGS="-I$(STAGING_DIR)/usr/include \
 						-I$(STAGING_DIR)/usr/include/glib-2.0 \
 						-I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
-					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
-					PKGCONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-					PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-					PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
 
 DOCKER_INSTALL_TARGET_OPT = PREFIX=$(TARGET_DIR)/usr install
 

Modified: trunk/buildroot/package/editors/vim/vim.mk
===================================================================

buildroot/package/editors/vim/vim.mk +0 -6
@@ -36,14 +36,8 @@
 
 $(VIM_DIR)/.configured: $(VIM_DIR)/.patched
 	(cd $(VIM_DIR)/src; \
-		PATH=$(TARGET_PATH) \
-		CC="$(TARGET_CC)" \
-		CPP="$(TARGET_CPP)" \
 		CFLAGS="$(TARGET_CFLAGS)" \
 		STRIP="$(TARGET_STRIP)" \
-		PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-		PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-		PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
 		PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
 		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
         $(TARGET_CONFIGURE_ARGS) \
#1 lore raw

jacmet at uclibc.org, 26.10.2008:

Quoted 26 lines

Author: jacmet
Date: 2008-10-25 23:19:43 -0700 (Sat, 25 Oct 2008) New Revision: 23794

Log:
package: cleanup PKG_CONFIG_SYSROOT

PKG_CONFIG_SYSROOT_DIR and friends get set in package/Makefile.in, so there's no need to set it in the makefiles of the individual packages as well.

Based on a patch by Markus Heidelberg.

Modified:
trunk/buildroot/package/audio/libogg/libogg.mk trunk/buildroot/package/audio/libvorbis/libvorbis.mk trunk/buildroot/package/docker/docker.mk trunk/buildroot/package/editors/vim/vim.mk

Changeset:
Modified: trunk/buildroot/package/editors/vim/vim.mk
===================================================================

buildroot/package/editors/vim/vim.mk line 41

Quoted 6 lines
buildroot/package/editors/vim/vim.mk +0 -3
@@ -36,14 +36,8 @@
 
 $(VIM_DIR)/.configured: $(VIM_DIR)/.patched
 	(cd $(VIM_DIR)/src; \
-		PATH=$(TARGET_PATH) \
-		CC="$(TARGET_CC)" \
-		CPP="$(TARGET_CPP)" \

This lets configure abort at the compiler check, patch below.

buildroot/package/editors/vim/vim.mk line 43

Quoted 8 lines
buildroot/package/editors/vim/vim.mk +0 -3
 		CFLAGS="$(TARGET_CFLAGS)" \
 		STRIP="$(TARGET_STRIP)" \
-		PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-		PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-		PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
 		PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
 		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
         $(TARGET_CONFIGURE_ARGS) \
---
 package/editors/vim/vim.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
package/editors/vim/vim.mk +2 -1
index a9d79ed..826e3c7 100644
@@ -36,11 +36,12 @@ $(VIM_DIR)/.patched: $(VIM_DIR)/.unpacked
 
 $(VIM_DIR)/.configured: $(VIM_DIR)/.patched
 	(cd $(VIM_DIR)/src; \
+		$(TARGET_CONFIGURE_OPTS) \
+		$(TARGET_CONFIGURE_ARGS) \
 		CFLAGS="$(TARGET_CFLAGS)" \
 		STRIP="$(TARGET_STRIP)" \
 		PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
 		PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
-        $(TARGET_CONFIGURE_ARGS) \
 		./configure --prefix=/usr \
 		--target=$(GNU_TARGET_NAME) \
 		--host=$(GNU_TARGET_NAME) \
Signature · 1 line
1.5.6.4
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markus" == Markus Heidelberg <[email protected]> writes:

Markus> This lets configure abort at the compiler check, patch below.

Sorry about that, committed as r23800.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw
In reply to jacmet at uclibc.org

jacmet at uclibc.org, 26.10.2008:

Quoted 25 lines

Author: jacmet
Date: 2008-10-25 23:19:43 -0700 (Sat, 25 Oct 2008) New Revision: 23794

Log:
package: cleanup PKG_CONFIG_SYSROOT

PKG_CONFIG_SYSROOT_DIR and friends get set in package/Makefile.in, so there's no need to set it in the makefiles of the individual packages as well.

Based on a patch by Markus Heidelberg.

Modified:
trunk/buildroot/package/audio/libogg/libogg.mk trunk/buildroot/package/audio/libvorbis/libvorbis.mk trunk/buildroot/package/docker/docker.mk trunk/buildroot/package/editors/vim/vim.mk

Modified: trunk/buildroot/package/docker/docker.mk
===================================================================

buildroot/package/docker/docker.mk line 17

Quoted 8 lines
buildroot/package/docker/docker.mk +1 -4
@@ -14,10 +14,7 @@
 					CFLAGS="-I$(STAGING_DIR)/usr/include \
 						-I$(STAGING_DIR)/usr/include/glib-2.0 \
 						-I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
-					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
-					PKGCONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-					PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-					PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"

I think this will break docker, because MAKE_OPT is affected, not CONF_OPT. And I just noticed that docker doesn't use autotools at all.

Markus

#4 lore raw

Markus Heidelberg, 26.10.2008:

Quoted 8 lines
Quoted 8 lines

Modified: trunk/buildroot/package/docker/docker.mk
===================================================================

buildroot/package/docker/docker.mk +0 -0
@@ -14,10 +14,7 @@
 					CFLAGS="-I$(STAGING_DIR)/usr/include \
 						-I$(STAGING_DIR)/usr/include/glib-2.0 \
 						-I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
Quoted 8 lines

buildroot/package/docker/docker.mk line 17

Quoted 5 lines
buildroot/package/docker/docker.mk +1 -4
-					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
-					PKGCONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-					PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-					PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"

I think this will break docker, because MAKE_OPT is affected, not CONF_OPT. And I just noticed that docker doesn't use autotools at all.

Ah, already fixed in a later commit.

Markus

#5 lore raw
In reply to Markus Heidelberg
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markus" == Markus Heidelberg <[email protected]> writes:

Hi,

Quoted 4 lines

buildroot/package/docker/docker.mk line 17

Quoted 4 lines
buildroot/package/docker/docker.mk +1 -3
-					PKGCONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-					PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-					PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"

Markus> I think this will break docker, because MAKE_OPT is affected, Markus> not CONF_OPT. And I just noticed that docker doesn't use Markus> autotools at all.

Yes, I re-added PKG_CONFIG=.. in r23796 - With that, it works for me.

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

Peter Korsgaard, 26.10.2008:

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markus" == Markus Heidelberg <[email protected]> writes:

Hi,

Quoted 4 lines

buildroot/package/docker/docker.mk line 17

Quoted 4 lines
buildroot/package/docker/docker.mk +1 -3
-					PKGCONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
-					PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
-					PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
+					LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"

Markus> I think this will break docker, because MAKE_OPT is affected, Markus> not CONF_OPT. And I just noticed that docker doesn't use Markus> autotools at all.

Quoted 1 line

Yes, I re-added PKG_CONFIG=.. in r23796 - With that, it works for me.

After looking into it again, the package seems a bit broken. $(PKG_CONFIG) --cflags glib-2.0 evaluates to "-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include", not the ones in staging_dir, so it uses the system include files. PKG_CONFIG_PATH has to be defined and PKG_CONFIG_SYSROOT_DIR, too. But it also uses the staging files hardcoded in the Makefile. Then have a look at XLIBPATH in the Makefile, which points to the system files. And LDFLAGS is never used.

Markus

#7 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Markus" == Markus Heidelberg <[email protected]> writes:

Hi,

Markus> After looking into it again, the package seems a bit Markus> broken. $(PKG_CONFIG) --cflags glib-2.0 evaluates to Markus> "-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include", not Markus> the ones in staging_dir, so it uses the system include Markus> files. PKG_CONFIG_PATH has to be defined and Markus> PKG_CONFIG_SYSROOT_DIR, too. But it also uses the staging Markus> files hardcoded in the Makefile. Then have a look at XLIBPATH Markus> in the Makefile, which points to the system files. And Markus> LDFLAGS is never used.

Yeah, the docker build system seems pretty broken :/

Signature · 1 line
Bye, Peter Korsgaard