-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> This is the problematic part of the Makefile :
> -----------------
> install-tcc:            tcc check-install-dir scripts/localize.sh
>                         ln -sf scripts/localize.sh .
>                         tar cfh - $(TCC_BINDIST) | \
>                           (cd $(INSTALL_DIR) && tar xf -)
>                         cd $(INSTALL_DIR) && ./localize.sh
>                         rm -f localize.sh $(INSTALL_DIR)/localize.sh
> -----------------
>

What you need to do is a sed on the Makefile and change the INSTALLDIR to ${D} 
(maps to /var/tmp/portage/{packagename}/install

some command like in the compile section:
sed -ie "s#^INSTALL_DIR=.*#INSTALL_DIR=${D}#" Makefile

This is assumeing in the Makefile there is a line INSTALL_DIR=

> Is there a way to correct this... i.e. what u do when some program tries to
> write oustside of the sandbox

an addwrite command can do this although since its just creating a file do the 
above method. Use and addwrite command only if absoulutly necessary for 
modifing file on the root install. My personal preference is to not do this 
at all or put the sections that require a write in the pkg_postinst. Do a 
grep for details. My fav command for ebuild searches - find /usr/portage 
- -name "*ebuild" | xargs fgrep pkg_postinst

> I had some other minor problems such as .ebuild not enetering the correct
> directory.. so that I have to add cd ./work/tcng and so...

Did you assign S="${WORKDIR}/tcng" in the ebuild?

Daniel Black
- -- 

Daniel Black
- --
Proudly a Gentoo Linux User.
GnuPG/PGP signed and encrypted email preferred
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/pvLzTDSbtjKmTcgRAjCiAJ9yGP41TFns5cCu+HEX4LrIOfmxhwCfZsAb
TB69PRkkqF4IKkofj+txQKU=
=XMut
-----END PGP SIGNATURE-----


--
[EMAIL PROTECTED] mailing list

Reply via email to