Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464620 - net-libs/courier-authlib-0.65.0-r3 - cp: omitting directory '/etc/courier/authlib/userdb'
Summary: net-libs/courier-authlib-0.65.0-r3 - cp: omitting directory '/etc/courier/aut...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-04 17:11 UTC by MAL
Modified: 2013-04-08 11:33 UTC (History)
0 users

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


Attachments
Modified ebuild file. (courier-authlib-0.65.0-r3.ebuild,5.21 KB, text/plain)
2013-04-07 22:58 UTC, Paul Preney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MAL 2013-04-04 17:11:00 UTC
courier-authlib fails to install with:

make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.65.0-r3/work/courier-authlib-0.65.0'
 * Found userdb at: /etc/courier/authlib/userdb
cp: omitting directory '/etc/courier/authlib/userdb'
 * ERROR: net-libs/courier-authlib-0.65.0-r3 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3234:  Called finduserdb
 *   environment, line 1999:  Called die
 * The specific snippet of code:
 *               cp -f "${dir}/userdb" "${D}/etc/courier/authlib/" || die;


I believe the cause of this error is the ebuild erroneously assuming /etc/courier/authlib/userdb is a file when it can be a directory (man 8 userdb), and is on my system.

Line 107 of needs changing from:
cp -f "${dir}/userdb" "${D}/etc/courier/authlib/" || die

to:
cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die


I currently have courier-authlib-0.65.0-r2 installed and am unsure how I managed that, since my userdb database was a directory when I installed that too.

Can't paste emerge --info from this machine, sorry.
Comment 1 MAL 2013-04-04 17:12:23 UTC
Line 107 of the ebuild, that was meant to say.
Comment 2 Paul Preney 2013-04-07 22:58:50 UTC
Created attachment 344770 [details]
Modified ebuild file.
Comment 3 Paul Preney 2013-04-07 23:02:20 UTC
(In reply to comment #2)
> Created attachment 344770 [details]
> Modified ebuild file.

The attachment I sent is the ebuild file modified as per the bug reporter. I had the same issue with building the package --as I also have a userdb directory --not a file. The modification suggested by the bug reporter does allows the package to completely build and install.
Comment 4 Eray Aslan gentoo-dev 2013-04-08 11:33:05 UTC
Fixed in CVS.  Thanks for reporting.