Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612848

Summary: sys-freebsd/virtio-kmod: accesses FILESDIR in pkg_postinst()
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner, ulm
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending removal: 2018-04-17
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 586416    
Attachments: Fix, using readme.gentoo-r1.eclass

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-16 20:31:55 UTC
elog "$(cat "${FILESDIR}/pkg-message")"

FILESDIR can't be used in pkg_*(). It breaks on binary packages, and Portage will start rejecting it for source builds soonish too. Please take a look at how readme-gentoo* eclass is handling it.
Comment 1 Ulrich Müller gentoo-dev 2017-03-26 16:02:42 UTC
Created attachment 468350 [details, diff]
Fix, using readme.gentoo-r1.eclass

I suggest using readme.gentoo-r1.eclass, see attached patch.
Comment 2 Larry the Git Cow gentoo-dev 2018-04-21 14:39:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=169215c01481634acc6d4d8757ca46b5386851ee

commit 169215c01481634acc6d4d8757ca46b5386851ee
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2018-04-21 14:35:58 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2018-04-21 14:39:02 +0000

    sys-freebsd/virtio-kmod: remove last rited package
    
    Closes: https://bugs.gentoo.org/586344
    Closes: https://bugs.gentoo.org/612848
    Closes: https://bugs.gentoo.org/494002

 sys-freebsd/virtio-kmod/Manifest                   |  1 -
 sys-freebsd/virtio-kmod/files/pkg-message          | 22 -------
 sys-freebsd/virtio-kmod/metadata.xml               |  4 --
 .../virtio-kmod/virtio-kmod-0.228301-r1.ebuild     | 70 ----------------------
 4 files changed, 97 deletions(-)