Modify

Opened 9 years ago

Closed 9 years ago

#3113 closed defect (fixed)

apr-util and subversion can't be configured

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc: nbd

Description

Due to the broken configure options (not existing files "staging_dir/host/bin/apr-1-config" and "staging_dir/host/bin/apu-1-config") the packages apr-util and subversion can't be configured and the build process of these packages will fail.

As a work-around, I modified the options:

$ svn diff packages/libs/apr-util/Makefile
Index: packages/libs/apr-util/Makefile
===================================================================
--- packages/libs/apr-util/Makefile     (revision 10400)
+++ packages/libs/apr-util/Makefile     (working copy)
@@ -31,7 +31,7 @@

 CONFIGURE_ARGS += \
        --with-pgsql=no \
-       --with-apr="$(STAGING_DIR)/host/bin/apr-1-config" \
+       --with-apr="$(BUILD_DIR)/apr-1.2.9" \
        --with-expat="$(STAGING_DIR)/usr" \
        --without-sqlite2 \
        --with-sqlite3="$(STAGING_DIR)/usr" \

and:

$ svn diff packages/net/subversion/Makefile
Index: packages/net/subversion/Makefile
===================================================================
--- packages/net/subversion/Makefile    (revision 10400)
+++ packages/net/subversion/Makefile    (working copy)
@@ -47,8 +47,8 @@
 endef

 CONFIGURE_ARGS += \
-       --with-apr="$(STAGING_DIR)/host/bin/apr-1-config" \
-       --with-apr-util="$(STAGING_DIR)/host/bin/apu-1-config" \
+       --with-apr="$(BUILD_DIR)/apr-1.2.9" \
+       --with-apr-util="$(BUILD_DIR)/apr-util-1.2.8" \
        --with-neon="$(STAGING_DIR)/usr/include/neon" \
        --disable-mod-activation \
        --without-ruby-sitedir \

Regards,
Mathias

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by nbd

Could you try to make a version that does not depend on the package's build path?
Such things need to be pulled from the staging dir.

comment:2 Changed 9 years ago by anonymous

Applying this patch it's possible to get a working libaprutil:

$ svn diff packages/libs/apr-util/Makefile
Index: packages/libs/apr-util/Makefile
===================================================================
--- packages/libs/apr-util/Makefile     (revision 10405)
+++ packages/libs/apr-util/Makefile     (working copy)
@@ -31,7 +31,7 @@

 CONFIGURE_ARGS += \
        --with-pgsql=no \
-       --with-apr="$(STAGING_DIR)/host/bin/apr-1-config" \
+       --with-apr="$(STAGING_DIR)/bin/apr-1-config" \
        --with-expat="$(STAGING_DIR)/usr" \
        --without-sqlite2 \
        --with-sqlite3="$(STAGING_DIR)/usr" \

The same procedure for subversion ...:

$ svn diff packages/net/subversion/Makefile
Index: packages/net/subversion/Makefile
===================================================================
--- packages/net/subversion/Makefile    (revision 10405)
+++ packages/net/subversion/Makefile    (working copy)
@@ -47,8 +47,8 @@
 endef

 CONFIGURE_ARGS += \
-       --with-apr="$(STAGING_DIR)/host/bin/apr-1-config" \
-       --with-apr-util="$(STAGING_DIR)/host/bin/apu-1-config" \
+       --with-apr="$(STAGING_DIR)/bin/apr-1-config" \
+       --with-apr-util="$(STAGING_DIR)/bin/apu-1-config" \
        --with-neon="$(STAGING_DIR)/usr/include/neon" \
        --disable-mod-activation \
        --without-ruby-sitedir \

... shows a broken libtool config:

$ make package/subversion-compile V=99
[...]
make[3]: Entering directory `/tmp/mj-build/kamikaze_7.09-apr-test/build_mipsel/subversion-1.4.5'
cd subversion/libsvn_subr && /bin/sh /tmp/mj-build/kamikaze_7.09-apr-test/build_mipsel/subversion-1.4.5/libtool --tag=CC --silent --mode=link mipsel-linux-uclibc-gcc  -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/include -I/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/include    -lcrypt -lnsl -lm -lintl -L/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/libintl/lib/ -lz -L/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/ -lpthread -L/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/lib    -L/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib -L/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/libiconv/lib  -rpath /usr/lib -o libsvn_subr-1.la  auth.lo cmdline.lo compat.lo config.lo config_auth.lo config_file.lo config_win.lo constructors.lo ctype.lo date.lo dso.lo error.lo hash.lo io.lo kitchensink.lo lock.lo md5.lo nls.lo opt.lo path.lo pool.lo prompt.lo quoprint.lo simple_providers.lo sorts.lo ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo ssl_server_trust_providers.lo stream.lo subst.lo svn_base64.lo svn_string.lo target.lo time.lo user.lo username_providers.lo utf.lo utf_validate.lo validate.lo version.lo xml.lo /tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/libaprutil-1.la -lsqlite3 -lexpat -liconv /tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/libapr-1.la -luuid -lm -lcrypt  -lz
libtool: link: warning: library `/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/usr/lib/libaprutil-1.la' was moved.
grep: /usr/lib/libapr-1.la: No such file or directory
/tmp/mj-build/kamikaze_7.09-apr-test/staging_dir_mipsel/bin/sed: can't read /usr/lib/libapr-1.la: No such file or directory
libtool: link: `/usr/lib/libapr-1.la' is not a valid libtool archive
make[3]: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
make[3]: Leaving directory `/tmp/mj-build/kamikaze_7.09-apr-test/build_mipsel/subversion-1.4.5'
make[2]: *** [/tmp/mj-build/kamikaze_7.09-apr-test/build_mipsel/subversion-1.4.5/.built] Error 2
make[2]: Leaving directory `/tmp/mj-build/kamikaze_7.09-apr-test/packages/net/subversion'
make[1]: *** [subversion-compile] Error 2
make[1]: Leaving directory `/tmp/mj-build/kamikaze_7.09-apr-test/package'
make: *** [package/subversion-compile] Fehler 2

Regards,
Mathias

comment:3 Changed 9 years ago by battlehawk

Thanks for the fix with the STAGING_DIR/host - I spent a lot of time already to get this thing working. And of course, my system also produces the libtool error.

The following modification to the Makefile worked for me, even if the compiler still produces a lot of warnings, the appropriate libraries would have been moved. Finally compile succeeds and subversion is running now on my nslug.

Here the Makefile changes:

Index: package/subversion/Makefile
===================================================================
--- package/subversion/Makefile	(revision 10581)
+++ package/subversion/Makefile	(working copy)
@@ -47,8 +47,8 @@
 endef
 
 CONFIGURE_ARGS += \
-	--with-apr="$(STAGING_DIR)/host/bin/apr-1-config" \
-	--with-apr-util="$(STAGING_DIR)/host/bin/apu-1-config" \
+	--with-apr="$(STAGING_DIR)/bin/apr-1-config" \
+	--with-apr-util="$(STAGING_DIR)/bin/apu-1-config" \
 	--with-neon="$(STAGING_DIR)/usr/include/neon" \
 	--disable-mod-activation \
 	--without-ruby-sitedir \
@@ -69,7 +69,7 @@
 		-I$(STAGING_DIR)/include/" \
 
 define Build/Compile
-	$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all local-install
+	$(MAKE) -C $(PKG_BUILD_DIR) SUBVERSION_LIBS="_L$(STAGING_DIR)/usr/lib" DESTDIR="$(PKG_INSTALL_DIR)" all local-install
 endef
 
 define Package/subversion-libs/install 

comment:4 Changed 9 years ago by nico

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [10822], thanks for reporting!

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.