Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612838 - app-emulation/libvirt: FILESDIR access in pkg_postinst()
Summary: app-emulation/libvirt: FILESDIR access 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: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: filesdir-bad-scope
  Show dependency tree
 
Reported: 2017-03-16 20:12 UTC by Michał Górny
Modified: 2017-03-17 20:26 UTC (History)
1 user (show)

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


Attachments

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:12:25 UTC
DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo-r2")

This will not work since FILESDIR is not available in pkg_* when installing from binary package. Portage will also start to enforce that for source builds at some point.

Plus, I think the value from src_install() persists, so there should be no reason to redefine it here.
Comment 1 Matthias Maier gentoo-dev 2017-03-17 20:26:27 UTC
commit ebfcee749d9e3ee01bb3d5b669d4ed49ce01b753
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Fri Mar 17 15:18:00 2017 -0500

    app-emulation/libvirt: Do not use FILESDIR outside of SRC_*, bug #612838
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.2