When building the generic x86-64 build on Ubuntu, zlib stage 0 fails with this error:

fl_wrapper.so: write outside basedir (/opt/T2/t2-trunk): /usr/man/man3/zlib.3

I fixed it by not installing the man pages if stage 0.

== 13:14:27 =[0]=> Building archiver/zlib [1.2.8 9.0-svn].
-> Parallel build using 8 jobs enabled.
-> Reading package config: package/archiver/zlib/zlib.conf
-> Reading build/.../tools.cross/lib/pkg_zlib_post.conf
-> Preparing build in src.zlib.default.20161227.131427.3098.Ubu-Dev-1
-> Building. Writing output to $root/var/adm/logs/0-zlib.out
!> chmod 644 /opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib/libz.a !> cp libz.so.1.2.8 /opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib !> chmod 755 /opt/T2/t2-trunk/build/default-9.0-svn-generic-x86-64-linux/TOOLCHAIN/tools.cross/lib/libz.so.1.2.8
!> cp zlib.3 /usr/man/man3
!> fl_wrapper.so: write outside basedir (/opt/T2/t2-trunk): /usr/man/man3/zlib.3
!> Makefile:188: recipe for target 'install-libs' failed
!> Due to previous errors, no 0-zlib.log file!
!> (Try enabling xtrace in the config to track an error inside the build system.)



===================================================================
--- package/archiver/zlib/zlib.conf     (revision 45213)
+++ package/archiver/zlib/zlib.conf     (working copy)
@@ -20,4 +20,6 @@
        var_insert confopt " " "--shared"
 fi

-var_append makeinstopt ' ' 'mandir=$mandir'
+if ! atstage toolchain; then
+       var_append makeinstopt ' ' 'mandir=$mandir'
+fi


Jan



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to