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.
Created attachment 550018 [details] emerge --info
Thanks for reporting. Will look at it soon.
I believe the user/group creation needs to moved to pkg_setup() since pkg_preinst() is called after src_install().
BT, you are right, thank you! I will open a pull request to fix this.
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
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(-)