Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98 - app-misc/moldy violates sandbox
Summary: app-misc/moldy violates sandbox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tod M. Neidt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-09 11:55 UTC by Grant Goodyear (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Goodyear (RETIRED) gentoo-dev 2002-01-09 11:55:55 UTC
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------LOG FILE = "/tmp/sandbox-moldy-2.16e-513.log"

mkdir:     /usr/share/texmf/fonts/tfm/jknappen/tc
--------------------------------------------------------------------------------
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-01-09 11:59:14 UTC
Hmmm, actually I think we need to open another window in sandbox.  Bevin?
Comment 2 Tod M. Neidt 2002-01-09 12:38:17 UTC
Hi!

I couldn't reproduce this sandbox violation.  I'm running the sandbox included
in portage-1.8.2, and verified that sandbox is functioning by attempting to
merge PyXML which I know causes violations.

I'll try and look into it more later.

tod 
Comment 3 Grant Goodyear (RETIRED) gentoo-dev 2002-01-09 13:05:03 UTC
You wouldn't see it if you originally installed moldy before installing sandbox,
since then the tex font directories wouldn't need to be created during your
remerge.  Presumably if you were to kill the
/usr/share/texmf/fonts/tfm/jknappen/tc directory, do a maketexlsr(?), and then
do the emerge you'll see the violation.  I'm also using the recent
portage-with-sandbox.
Comment 4 Tod M. Neidt 2002-01-09 23:09:59 UTC
Ahh.

Ok, probably the best(?) fix is to hack the moldy.sty (hopefully) or moldy.tex
to use fonts that are already installed with tetex.

Alternatives are:

1) make a tetex-fonts-extra.ebuild for a font package that includes the
necessary fonts and make moldy depend on that.

2) hack the building of the fonts during the compile to install the new fonts in
${D} instead of the live filesystem.
Comment 5 Tod M. Neidt 2002-01-10 09:29:06 UTC
Hi!

I love it when I wake up in the morning and my problems are solved magically.

azarah's tetex update (tetex-1.0.7-r6.ebuild) fixes the sandbox violation.
(Thanks azarah!)


The moldy sandbox violation is fixed by add >=app-text/tetex-1.0.7-r6 to the
moldy DEPEND.

I tried to up load a patch, but bugzilla won't let me.  I'mm apending below. 
The patch also, changes ${P} to ${PF} so the doc are all stored together and
adds messages to the die's. Could some one make these chages for me (g2boojum?)

Thanks

tod

********moldy-2.16e-moldy-2.16e-r1.diff********
--- moldy-2.16e.ebuild	Thu Jan 10 08:45:42 2002
+++ moldy-2.16e-r1.ebuild	Thu Jan 10 08:51:19 2002
@@ -10,14 +10,16 @@
 HOMEPAGE="http://sal.kachinatech.com/Z/2/MOLDY.html"
 
 DEPEND="virtual/glibc
-                X? ( x11-base/xfree )"
+
X? ( x11-base/xfree )
+
>=app-text/tetex-1.0.7-r6"
+
#tetex is required to build documentation
 
 src_compile() {
 
         local myconf
         if [ -z "`use X`" ]
         then
-                myconf="--without-x"
+        	myconf="--without-x"
         fi
 
 #Individuals may want to edit the OPT* variables below.
@@ -33,22 +35,22 @@
     
         OPT=${CFLAGS} OPT2=${CFLAGS} \
         ./configure --prefix=/usr \
-                                --host=${CHOST} \
-                                ${myconf} || die
+
	--host=${CHOST} \
+        	${myconf} || die "Configuration Failed"
         
-        emake || die
-
make moldy.pdf || die
+        emake || die "Parallel Make Failed"
+
make moldy.pdf || die "Documentation Build Failed"
 }
 
 src_install () {
         
 	dodir /usr/bin
-        make prefix=${D}/usr install || die
+        make prefix=${D}/usr install || die "Installation Failed"
         rm Makefile.in configure.in config.h.in
         insinto /usr/share/${PN}/examples/
         doins *.in *.out control.*
         dodoc BENCHMARK COPYING READ.ME RELNOTES
-
insinto /usr/share/doc/${P}/pdf
+
insinto /usr/share/doc/${PF}/pdf
 	newins moldy.pdf moldy-manual.pdf
         
 }