svn commit: trunk/buildroot/package: audio/libogg audio/libvorbis docker edit etc...
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) \
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
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: 23794Log:
package: cleanupPKG_CONFIG_SYSROOT
PKG_CONFIG_SYSROOT_DIRand 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.mktrunk/buildroot/package/audio/libvorbis/libvorbis.mktrunk/buildroot/package/docker/docker.mktrunk/buildroot/package/editors/vim/vim.mkChangeset:
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
-3CFLAGS="$(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
@@ -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
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: 23794Log:
package: cleanupPKG_CONFIG_SYSROOT
PKG_CONFIG_SYSROOT_DIRand 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.mktrunk/buildroot/package/audio/libvorbis/libvorbis.mktrunk/buildroot/package/docker/docker.mktrunk/buildroot/package/editors/vim/vim.mkModified:
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
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_OPTis affected, notCONF_OPT. And I just noticed that docker doesn't use autotools at all.
Ah, already fixed in a later commit.
Markus
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
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_OPTis affected, Markus> notCONF_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
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