Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668040 - net-p2p/monero-0.13.0.2::chaoslab: postinst phase fails when building with USE=daemon
Summary: net-p2p/monero-0.13.0.2::chaoslab: postinst phase fails when building with US...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ian Moone
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-08 11:49 UTC by ernsteiswuerfel
Modified: 2019-01-09 08:29 UTC (History)
2 users (show)

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


Attachments
emerge --info (file_668040.txt,6.81 KB, text/plain)
2018-10-08 11:49 UTC, ernsteiswuerfel
Details
build.log (monero-0.12.3.0:20181008-081727.log,64.89 KB, text/plain)
2018-10-08 11:51 UTC, ernsteiswuerfel
Details
build.log (0.13.0.2) (monero-0.13.0.2:20181022-181445.log,67.56 KB, text/plain)
2018-10-22 18:43 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-10-08 11:49:42 UTC
Created attachment 549886 [details]
emerge --info

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/bin/monerod
   usr/bin/monero-wallet-rpc
   usr/bin/monero-wallet-cli

>>> Installing (1 of 1) net-p2p/monero-0.12.3.0::chaoslab
stat: cannot stat '/var/lib/monero': No such file or directory
 * Fixing /var/lib/monero permissions
chown: cannot access '/var/lib/monero': No such file or directory
 * ERROR: net-p2p/monero-0.12.3.0::chaoslab failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_postinst
 *   environment, line 3019:  Called die
 * The specific snippet of code:
 *               chown -R monero:monero "${EROOT%/}/var/lib/monero" || die;
Comment 1 ernsteiswuerfel archtester 2018-10-08 11:51:03 UTC
Created attachment 549888 [details]
build.log
Comment 2 Ian Moone 2018-10-20 07:51:07 UTC
Hi, sorry for my belated response.

Unfortunately I cannot reproduce your issue. As you have enabled the *daemon* USE flag, the dedicated user/group and its home directory was supposed to be created in pkg_setup(). But somehow your portage skipped that phase, hence the "No such file or directory" produced by pkg_postinst(), which expected for the user/group/homedir to exist.
Comment 3 ernsteiswuerfel archtester 2018-10-22 10:18:07 UTC
I can confirm that building monero-0.12.3.0 without USE=daemon works.

However, I got another problem with current monero-0.13.0.2 (see bug #669292).
Comment 4 ernsteiswuerfel archtester 2018-10-22 18:43:46 UTC
Created attachment 552430 [details]
build.log (0.13.0.2)
Comment 5 ernsteiswuerfel archtester 2018-10-22 18:48:53 UTC
Reopening 'cause unfortunately this still happens with current 0.13.0.2 when building with USE=daemon:

stat: cannot stat '/var/lib/monero': No such file or directory
 * Fixing /var/lib/monero permissions

BTW what should be installed in '/var/lib/monero'? All relevant binaries including monerod are installed in /usr/bin.
Comment 6 ernsteiswuerfel archtester 2018-11-19 18:01:10 UTC
No longer reproducible on my machine.
Comment 7 Michael 'veremitz' Everitt 2019-01-09 08:29:05 UTC
*** Bug 674946 has been marked as a duplicate of this bug. ***