Hi all,

fixed.

Committed revision 32684.

Yours,

René Rebe wrote:

Hi Jan,

how did you configure T2? Did you modify the package's .desc file by
adding a CROSS tag?

I ask because they are not yet marked CROSS in t2/trunk.HEAD and
thus not be build in a non-native cross stage.

For proper cross building a little more is required as from a quick glance
I think the packages run a compiled executable to generate the config-
uration.

I'll try to donate some time and look into this today -- and we might
be able to have 4 more packages cross compiling in t2.

Yours,

Jan Rovins wrote:

Hi,

This is the first in a series of postings of things that would not build for me, I am seperating them into individual emails, so that they can be tracked better.

The first failure was with the net-kit family of packages:
I came across similar failures when building: netkit-base, netkit-telnet, netkit-tftp, netkit-ftp

They all get the install outside of basedir error. here is the error text from netkit-base:

install -s -m755 inetd /usr/sbin
fl_wrapper.so: write outside basedir (/opt/T2/t2-trunk): /usr/sbin/inetd
make[1]: *** [install] Error 255
make[1]: Leaving directory `/opt/T2/t2-trunk/src.netkit-base.GW_5.20090319.104614.8551.loadgen1/netkit-base-0.17/inetd'
make: *** [inetd.install] Error 2
Due to previous errors, no 1-netkit-base.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---

The other netkit packages had similar install errors

As a quick fix I was able to get it to build by perpending $root to the confopt's --prefix, but that is probably not the right place to fix it. Let me know if these errors are reproducable in your stansard T2 regression tests.

My environment is a modified embedded-minimal x86 but using glibc.

These were my "unofficial" workarounds to get it to build:
===================================================================
--- package/network/netkit-base/netkit-base.conf    (revision 32671)
+++ package/network/netkit-base/netkit-base.conf    (working copy)
@@ -19,4 +19,4 @@
}

hook_add postmake 5 "nkb_inst"
-confopt="--prefix=/usr --root-prefix=/"
+confopt="--prefix=$root/usr --root-prefix=$root"
Index: package/network/netkit-telnet/netkit-telnet.conf
===================================================================
--- package/network/netkit-telnet/netkit-telnet.conf    (revision 32671)
+++ package/network/netkit-telnet/netkit-telnet.conf    (working copy)
@@ -14,4 +14,5 @@
# --- T2-COPYRIGHT-NOTE-END ---

hook_add prepatch 5 "rm -rf */*,v */RCS"
-confopt="--prefix=/usr"
+#confopt="--prefix=$root/usr --installroot=$root "
+confopt="--prefix=$root/usr"
Index: package/network/netkit-tftp/netkit-tftp.conf
===================================================================
--- package/network/netkit-tftp/netkit-tftp.conf    (revision 32671)
+++ package/network/netkit-tftp/netkit-tftp.conf    (working copy)
@@ -12,4 +12,4 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

-confopt="--prefix=/usr"
+confopt="--prefix=$root/usr"
Index: package/network/netkit-ftp/netkit-ftp.conf
===================================================================
--- package/network/netkit-ftp/netkit-ftp.conf    (revision 32671)
+++ package/network/netkit-ftp/netkit-ftp.conf    (working copy)
@@ -13,4 +13,4 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---

-confopt="--prefix=/usr"
+confopt="--prefix=$root/usr"


Jan
--

 René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
 http://exactcode.de | http://t2-project.org | http://rene.rebe.name



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

Reply via email to