Hi Toan,
I tried enabling the chroot jail option in the config menu.
but I still get the same failure with the un-patched package config files.
Something is inconsistent with some of the packages.
I have over 70 packages specified in my target, and only a few (8) are
failing this way, perhaps there is something common about these packages.
I will list all that had install failures, and am attaching my target
definition files.
netkit-base
netkit-telnet
netkit-tftp
netkit-ftp
expect
gdb
lm_sensors (this one was different, it installed doubly deep, into
$root/$root/xxx)
tcl
Since the lm_sensors was not outside of base dir, but doubly deep into
basedir, here are my mods to it:
===================================================================
--- package/base/lm_sensors/lm_sensors.conf (revision 32671)
+++ package/base/lm_sensors/lm_sensors.conf (working copy)
@@ -13,10 +13,14 @@
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
-var_append makeopt " " "PREFIX=$root/$prefix user"
+#JLR mods
+check_usrlocal=0
+var_append makeopt " " "DESTDIR=$root/"
+var_append makeopt " " "PREFIX=$prefix user"
var_remove makeinstopt " " "install"
-var_append makeinstopt " " "PREFIX=$root/$prefix user_install"
-var_append makeinstopt " " "LIBDIR=$root/$libdir"
+var_append makeinstopt " " "PREFIX=$prefix user_install"
+var_append makeinstopt " " "LIBDIR=$libdir"
+var_append makeinstopt " " "DESTDIR=$root/"
if pkginstalled rrdtool ; then
var_append makeopt " " "PROG_EXTRA:=sensord"
----------------------------------------------------------
Attached is my target files for review, also.
on a related note, some of these packages that were getting the install
outside errors ,also were not showing up in the build untill I modified
the build stage to stage 1
/ netkit-base / { s,^. [^ ]*,X -1--------,; p; d; }
see pkgsel.sed for all of these.
Thanks,
Jan
Jan Rovins wrote:
Hi Toan,
I don't understand why I am getting the error.
Something is escaping from the jail :-)
I am using the Build-Target target, so everything should be jailed
automatically, yes?.
my config is bassed on the embedded-minimum, and I am ustng t2-trunk.
However, I noticed that in the configure menu selections, under the
build config, there is a chroot jailing selection.
This is not enabled in my config, should it be enabled?
The documentation does not mention anything about setting this option.
I thought it would be automatic, since most of the packages build,
and only a few fail.
Jan
Toan Pham wrote:
I do not see why you need apply those patches.
T2 build should be already jail rooted during the build process;
hence, normal installation
should not be outside of the base root environment. This explains why
you got the error.
On Thu, Mar 19, 2009 at 11:22 AM, Jan Rovins <[email protected]> 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
----------------------------------------------------------- If you
wish to
unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2
----------------------------------------------------------- If you
wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/embedded/config.in
# Copyright (C) 2008 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
# Just reuse the generic build steps.
. target/generic/build.sh
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/embedded/config.in
# Copyright (C) 2008 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
#Description: Embedded Adax GW
#SDECFGSET_INIT='busybox'
#SDECFGSET_INIT='sysvinit'
SDECFGSET_OPT='size'
SDECFGSET_DO_REBUILD_STAGE=0
SDECFGSET_CROSSBUILD=1
SDECFGSET_DISABLE_NLS=1
SDECFG_PKG_GLIBC_TLS=1
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/embedded/config.in
# Copyright (C) 2008 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
# start with an empty package selection
O *
#
# toolchain
#
X binutils
X gmp
X mpfr
X gcc
#
# payload
#
X 00-dirtree
X sysfiles
X linux26
X linux-header
#X uclibc
#x stlport
X glibc
X coreutils
X diffutils
X findutils
X gettext
X mktemp
X ncurses
X net-tools
X sed
X tar
X textinfo
X util-linux
X flex
X bison
#X busybox
#X dropbear
# JLR
X sysvinit
X pciutils
X bzip2
X gawk
X grep
X ash
X bash
X openssl
X openssh
X xinetd
X netkit-base
X netkit-ftp
X netkit-telnet
X netkit-tftp
#x elvis-tiny
X nvi
X zlib
X gzip
X cpio
X iproute2
X hdparm
X procps
#x psmisc
X libpcap
X iptables
X e2fsprogs
X sysklogd
##x ksymoops
X cracklib
# would not build
X bdb
X gdbm
X gnutls
X libgpg-error
# would not build
###x libgcrypt
# would not build
X pam
X setserial
X smartmontools
X strace
X tcp_wrappers
X tcpdump
X traceroute
X ethtool
X gdb
X tcl
#X tk
X expect
X e2fsprogs
X ethtool
X ntp
X lm_sensors
X modutils
X readline
X popt
X oprofile
# for su
X shadow
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/embedded/config.in
# Copyright (C) 2008 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- T2-COPYRIGHT-NOTE-END ---
# Only build the toolchain packages in the toolchain stage (0)
# (with stage 1, as canadian cross they would end up in the
# target system!).
# need binutils in lvl 1 for liberty.h, needed by oprofile
/ binutils / { s,^. [^ ]*,X 01--------,; p; d; }
/ gcc / { s,^. [^ ]*,X 01--------,; p; d; }
/ gmp / { s,^. [^ ]*,X 01--------,; p; d; }
/ mpfr / { s,^. [^ ]*,X 01--------,; p; d; }
/ netkit-base / { s,^. [^ ]*,X -1--------,; p; d; }
/ netkit-ftp / { s,^. [^ ]*,X -1--------,; p; d; }
/ netkit-telnet / { s,^. [^ ]*,X -1--------,; p; d; }
/ netkit-tftp / { s,^. [^ ]*,X -1--------,; p; d; }
/ tcl / { s,^. [^ ]*,X -1--------,; p; d; }
#/ tk / { s,^. [^ ]*,X -1--------,; p; d; }
/ expect / { s,^. [^ ]*,X -1--------,; p; d; }
/ tcpdump / { s,^. [^ ]*,X -1--------,; p; d; }
/ lm_sensors / { s,^. [^ ]*,X -1--------,; p; d; }
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2