Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 326185

Summary: sci-chemistry/psi: sandbox violation — attempts to install man pages directly
Product: Gentoo Linux Reporter: James Cloos <cloos>
Component: New packagesAssignee: Gentoo Chemistry-Related Packages <sci-chemistry>
Status: RESOLVED FIXED    
Severity: normal CC: c1pher
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/tracker/?func=detail&aid=2796858&group_id=127784&atid=709454
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info =sci-chemistry/psi-3.4.0
Compressed build log of sci-chem/psi 3.4.0
build.log

Description James Cloos 2010-06-29 16:52:18 UTC
I get this sandbox log file from an emerge attempt of sci-chemistry/psi-3.4.0: 

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /usr/share/man/man1/intder.1
A: /usr/share/man/man1/intder.1
R: /usr/share/man/man1/intder.1
C: /bin/cp intder.1 /usr/share/man/man1/intder.1 

F: open_wr
S: deny
P: /usr/share/man/man1/nonbonded.1
A: /usr/share/man/man1/nonbonded.1
R: /usr/share/man/man1/nonbonded.1
C: /bin/cp nonbonded.1 /usr/share/man/man1/nonbonded.1 


All of the Makefile.in files have $(DESTDIR) in the path when installing man pages, except for:

psi3/src/bin/intder/Makefile.in
psi3/src/bin/nonbonded/Makefile.in

and psi3/doc/doxygen/Makefile.in lacks DESTDIR in its install_html block.

The URL above is to an upstream bug on the issue.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2010-06-29 21:48:34 UTC
I cannot reproduce it here. Please pass the build.log and emerge --info =sci-chemistry/psi-3.4.0
Comment 2 James Cloos 2010-06-30 00:46:32 UTC
Created attachment 236983 [details]
emerge --info =sci-chemistry/psi-3.4.0

The emerge --info as requested.
Comment 3 James Cloos 2010-06-30 00:54:26 UTC
Created attachment 236985 [details]
Compressed build log of sci-chem/psi 3.4.0

The build log, as requested.

I had to compress it due to tiny upload bandwidth.

I only just noticed tha bangs rather than OK after running autoheader, and that configure has a hard time with (the profile default) LDFLAGS.

But the lack of DESTDIR in those Makefile.in file means that no matter what, if make install_man is run, a sandbox violation has to occur.  I don’t know why you couldn’t replicate.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 06:54:33 UTC
Created attachment 237005 [details]
build.log
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 06:56:44 UTC
Thanks for those thuings. I uncompressed the build.log.
It is quite strange. For me it doesn't install any man pages at all. Will take a look later.
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2010-07-06 11:35:14 UTC
+*psi-3.4.0-r1 (06 Jul 2010)
+
+  06 Jul 2010; Justin Lecher <jlec@gentoo.org> +files/3.4.0-ldflags.patch,
+  -psi-3.4.0.ebuild, +files/3.4.0-man_paths.patch,
+  +files/3.4.0-parallel_fix.patch, +psi-3.4.0-r1.ebuild:
+  Prll build fix, sanbox violation fix, #326185, LDFLAGS respected, thanks
+  to Xarthisius providing the patches
+