Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668080 - =media-sound/snapcast-9999 : dodir failed
Summary: =media-sound/snapcast-9999 : dodir failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Buchinger
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-10-08 19:25 UTC by Neil
Modified: 2018-10-10 13:57 UTC (History)
2 users (show)

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


Attachments
alternative ebuild for =media-sound/snapcast-9999.ebuild (snapcast-9999.ebuild,1.31 KB, text/plain)
2018-10-08 19:25 UTC, Neil
Details
emerge --info (emerge.info,17.68 KB, application/x-info)
2018-10-08 19:27 UTC, Neil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil 2018-10-08 19:25:47 UTC
Created attachment 550016 [details]
alternative ebuild for =media-sound/snapcast-9999.ebuild

The =media-sound/snapcast-9999 ebuild builds but fails to install and exits with the error message...

>>> Working in BUILD_DIR: "/var/tmp/portage/media-sound/snapcast-9999/work/snapcast-9999_build"
[  8%] Built target common
[ 40%] Built target snapclient
[100%] Built target snapserver
Install the project...
-- Install configuration: "Gentoo"
-- Installing: /var/tmp/portage/media-sound/snapcast-9999/image/usr/bin/snapserver
-- Installing: /var/tmp/portage/media-sound/snapcast-9999/image/usr/bin/snapclient
/usr/bin/install: invalid user ‘snapclient’
 * ERROR: media-sound/snapcast-9999::gentoo failed (install phase):
 *   dodir failed
 * 
 * If you need support, post the output of `emerge --info '=media-sound/snapcast-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/snapcast-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-sound/snapcast-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/snapcast-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/snapcast-9999/work/snapcast-9999'
 * S: '/var/tmp/portage/media-sound/snapcast-9999/work/snapcast-9999'
/usr/lib/portage/python3.6/ebuild-helpers/keepdir: line 15: /var/tmp/portage/media-sound/snapcast-9999/image/var/lib/snapclient/.keep_media-sound_snapcast-0: No such file or directory
!!! keepdir: cannot write .keep in /var/tmp/portage/media-sound/snapcast-9999/image/var/lib/snapclient


Previously I've built and installed =media-sound/snapcast-9999.ebuild with the attached.
Comment 1 Neil 2018-10-08 19:27:48 UTC
Created attachment 550018 [details]
emerge --info
Comment 2 Christian Buchinger 2018-10-08 20:27:28 UTC
Thanks for reporting. Will look at it soon.
Comment 3 BT 2018-10-09 02:50:24 UTC
I believe the user/group creation needs to moved to pkg_setup() since pkg_preinst() is called after src_install().
Comment 4 Christian Buchinger 2018-10-09 05:18:23 UTC
BT,

you are right, thank you!

I will open a pull request to fix this.
Comment 5 Neil 2018-10-09 10:11:59 UTC
Sounds like the possible source of the error has been identified but I thought it worth mentioning that the ebuild I posted wasn't mine, it was from this overlay https://github.com/armills/overlay
Comment 6 Larry the Git Cow gentoo-dev 2018-10-10 13:57:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f

commit 56e34b20c0d2f0a6998cf13ccd4c780b5ce8553f
Author:     Christian Buchinger <cb-gentoo@guya.de>
AuthorDate: 2018-10-10 13:56:51 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-10-10 13:57:17 +0000

    media-sound/snapcast: fix dodir failed
    
    * Ebuild was using pkg_preinst instead of pkg_setup
    * Fixed directory ownership for /var/lib/snap{client,server}
    
    Closes: https://bugs.gentoo.org/668080
    Signed-off-by: Christian Buchinger <cb-gentoo@guya.de>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11
    Closes: https://github.com/gentoo/gentoo/pull/10111
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 media-sound/snapcast/snapcast-0.15.0.ebuild | 8 +++++---
 media-sound/snapcast/snapcast-9999.ebuild   | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)