Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390619 - net-misc/batctl-2011.3.0 - ACCESS DENIED mkdir: /usr/local/share
Summary: net-misc/batctl-2011.3.0 - ACCESS DENIED mkdir: /usr/local/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 14:04 UTC by Franz Schrober
Modified: 2011-11-15 22:11 UTC (History)
0 users

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


Attachments
batctl-2011.3.0.ebuild (batctl-2011.3.0.ebuild,959 bytes, text/plain)
2011-11-15 14:08 UTC, Franz Schrober
Details
batctl-2011.4.0.ebuild (batctl-2011.4.0.ebuild,959 bytes, text/plain)
2011-11-15 14:09 UTC, Franz Schrober
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Schrober 2011-11-15 14:04:38 UTC
net-misc/batctl-2011.3.0 fails to build as already explained in #381665. The same happens when changing the version to 2011.4.0, but it doesn't happen with 2011.2.0 and bellow.

Reproducible: Always

Steps to Reproduce:
1. emerge =net-misc/batctl-2011.3.0:
Actual Results:  
>>> Install batctl-2011.3.0 into /var/tmp/portage/net-misc/batctl-2011.3.0/image/ category net-misc
make INSTALL_PREFIX=/var/tmp/portage/net-misc/batctl-2011.3.0/image/ install 
mkdir -p /usr/local/sbin
mkdir -p /usr/local/share/man/man8
ACCESS DENIED  mkdir:        /usr/local/share
mkdir: cannot create directory `/usr/local/share': Permission denied
make: *** [install] Error 1
 * ERROR: net-misc/batctl-2011.3.0 failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =net-misc/batctl-2011.3.0',
 * the complete build log and the output of 'emerge -pqv =net-misc/batctl-2011.3.0'.
 * The complete build log is located at '/var/tmp/portage/net-misc/batctl-2011.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/batctl-2011.3.0/temp/environment'.
 * S: '/var/tmp/portage/net-misc/batctl-2011.3.0/work/batctl-2011.3.0'

Expected Results:  
That is just installs

I fixed it by changing following things in batctl-2011.3.0.ebuild

-	emake CC="$(tc-getCC)" V=1
+	emake CC="$(tc-getCC)" V=1 REVISION=gentoo-"${PVR}"

-	emake INSTALL_PREFIX="${D}" install
+	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" MANDIR="${EPREFIX}/usr/share/man" install

-	doman man/*
Comment 1 Franz Schrober 2011-11-15 14:08:44 UTC
Created attachment 292635 [details]
batctl-2011.3.0.ebuild
Comment 2 Franz Schrober 2011-11-15 14:09:14 UTC
Created attachment 292637 [details]
batctl-2011.4.0.ebuild
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-15 17:18:24 UTC
Comment on attachment 292637 [details]
batctl-2011.4.0.ebuild

What are these ebuilds for?
Comment 4 Franz Schrober 2011-11-15 18:50:55 UTC
They show how the fix should look like after applying the proposed changes and help the person which wants to fix the problem.
Comment 5 Michael Weber (RETIRED) gentoo-dev 2011-11-15 20:42:17 UTC
no luck with these packages, i look into it right now
Comment 6 Michael Weber (RETIRED) gentoo-dev 2011-11-15 22:11:50 UTC
+  15 Nov 2011; Michael Weber <xmw@gentoo.org> batctl-2011.3.0.ebuild:
+  Fix installation (Makefile changes), EAPI-4 (thanks Franz Schrober, bug
+  390619)
+