Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612848 - sys-freebsd/virtio-kmod: accesses FILESDIR in pkg_postinst()
Summary: sys-freebsd/virtio-kmod: accesses FILESDIR in pkg_postinst()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2018-04-17
Keywords: PMASKED
Depends on:
Blocks: filesdir-bad-scope
  Show dependency tree
 
Reported: 2017-03-16 20:31 UTC by Michał Górny
Modified: 2018-04-21 14:39 UTC (History)
2 users (show)

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


Attachments
Fix, using readme.gentoo-r1.eclass (virtio-kmod.diff,1.31 KB, patch)
2017-03-26 16:02 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)