Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377653 - net-misc/strongswan-4.5.3 fails to install: sandbox violation
Summary: net-misc/strongswan-4.5.3 fails to install: sandbox violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 06:17 UTC by Rambaldi
Modified: 2011-08-05 08:19 UTC (History)
3 users (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 Rambaldi 2011-08-04 06:17:11 UTC
Upstream change the install locations somewhat. 
I guess the ebuild needs an update.

 


>>> Source compiled.
>>> Test phase [not enabled]: net-misc/strongswan-4.5.3

>>> Install strongswan-4.5.3 into /var/tmp/portage/net-misc/strongswan-4.5.3/image/ category net-misc
make  install-recursive
make[1]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3'
Making install in src
make[2]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
Making install in .
make[3]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
make[4]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
test -e "/var/tmp/portage/net-misc/strongswan-4.5.3/image/etc" || /usr/bin/install -c -d "/var/tmp/portage/net-misc/strongswan-4.5.3/image/etc"
test -e "/var/tmp/portage/net-misc/strongswan-4.5.3/image/etc/strongswan.conf" || /usr/bin/install -c -m 640 ./strongswan.conf /var/tmp/portage/net-misc/strongswan-4.5.3/image/etc/strongswan.conf || true
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
make[3]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
Making install in include
make[3]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/include'
make[4]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/include'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/include'
make[3]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/include'
Making install in libstrongswan
make[3]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make  install-recursive
make[4]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
Making install in .
make[5]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[6]: Entering directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[6]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib64/ipsec" || /bin/mkdir -p "/usr/lib64/ipsec"
ACCESS DENIED  mkdir:        /usr/lib64/ipsec
/bin/mkdir: cannot create directory `/usr/lib64/ipsec': Permission denied
make[6]: *** [install-ipseclibLTLIBRARIES] Error 1
make[6]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[5]: *** [install-am] Error 2
make[5]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src/libstrongswan'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3'
make: *** [install] Error 2
 * ERROR: net-misc/strongswan-4.5.3 failed (install phase):
 *   einstall failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 3224:  Called einstall
 *     ebuild.sh, line  605:  Called die
 * The specific snippet of code:
 *   		${MAKE:-make} prefix="${D}usr" \
 *   			datadir="${D}usr/share" \
 *   			infodir="${D}usr/share/info" \
 *   			localstatedir="${D}var/lib" \
 *   			mandir="${D}usr/share/man" \
 *   			sysconfdir="${D}etc" \
 *   			${LOCAL_EXTRA_EINSTALL} \
 *   			${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
 *   			"$@" install || die "einstall failed"
 * 
 * If you need support, post the output of 'emerge --info =net-misc/strongswan-4.5.3',
 * the complete build log and the output of 'emerge -pqv =net-misc/strongswan-4.5.3'.
 * The complete build log is located at '/var/tmp/portage/net-misc/strongswan-4.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/strongswan-4.5.3/temp/environment'.
 * S: '/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-30916.log"

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: mkdir
S: deny
P: ipsec
A: /usr/lib64/ipsec
R: /usr/lib64/ipsec
C: /bin/mkdir -p /usr/lib64/ipsec 
--------------------------------------------------------------------------------

 * Messages for package net-misc/strongswan-4.5.3:

 * Linux kernel version: 2.6.39-gentoo-r3
 * ERROR: net-misc/strongswan-4.5.3 failed (install phase):
 *   einstall failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_install
 *   environment, line 3224:  Called einstall
 *     ebuild.sh, line  605:  Called die
 * The specific snippet of code:
 *   		${MAKE:-make} prefix="${D}usr" \
 *   			datadir="${D}usr/share" \
 *   			infodir="${D}usr/share/info" \
 *   			localstatedir="${D}var/lib" \
 *   			mandir="${D}usr/share/man" \
 *   			sysconfdir="${D}etc" \
 *   			${LOCAL_EXTRA_EINSTALL} \
 *   			${MAKEOPTS} ${EXTRA_EMAKE} -j1 \
 *   			"$@" install || die "einstall failed"
 * 
 * If you need support, post the output of 'emerge --info =net-misc/strongswan-4.5.3',
 * the complete build log and the output of 'emerge -pqv =net-misc/strongswan-4.5.3'.
 * The complete build log is located at '/var/tmp/portage/net-misc/strongswan-4.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/strongswan-4.5.3/temp/environment'.
 * S: '/var/tmp/portage/net-misc/strongswan-4.5.3/work/strongswan-4.5.3'
 * 
 * The following package has failed to build or install:
 * 
 *  (net-misc/strongswan-4.5.3::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/net-misc/strongswan-4.5.3/temp/build.log'
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge -av strongswan
2.
3.
Comment 1 Dustin Polke 2011-08-04 09:00:53 UTC
Same here on my sparc box. I can provide more information if needed but I guess all necessary is already mentioned by Rambaldi.
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-08-04 09:30:21 UTC
This is weird, the problem is in src/libstrongswan/Makefile , for some reason this line is failing:

test -z "$(ipseclibdir)" || $(MKDIR_P) "$(DESTDIR)$(ipseclibdir)"

It looks like $(DESTDIR) is empty, and therefore it tries to create it outside the sandbox.

I must admit, I'm no expert in makefiles, so if somebody has any suggestions on how to fix this, please let me know :)
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2011-08-05 08:19:13 UTC
It has been fixed now, the problem was that the ebuild used einstall instead of emake DESTDIR="${D}" install :)

Should hit the tree within 1-2 hours :)