Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676626 - =sys-devel/sparse-9999 installs to /tmp
Summary: =sys-devel/sparse-9999 installs to /tmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 676628
  Show dependency tree
 
Reported: 2019-01-28 12:42 UTC by Daniel M. Weeks
Modified: 2019-01-28 21:44 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 Daniel M. Weeks 2019-01-28 12:42:13 UTC
sparse-9999 is functionally useless right now because all binaries are installed into /tmp. It looks like it may be caused by failing to set PREFIX so the Makefile uses its default $HOME.

make -j4 V=1 AR=x86_64-pc-linux-gnu-ar CC=x86_64-pc-linux-gnu-gcc HAVE_GTK2=no HAVE_LLVM=yes HAVE_LIBXML=no DESTDIR=/tmp/portage/sys-devel/sparse-9999/image/ install
Makefile:124: Your system does not have libxml, disabling c2xml
install -d /tmp/portage/sys-devel/sparse-9999/image//tmp/portage/sys-devel/sparse-9999/homedir/bin
  INSTALL /tmp/portage/sys-devel/sparse-9999/image//tmp/portage/sys-devel/sparse-9999/homedir/bin/cgcc


equery files sys-devel/sparse
 * Searching for sparse in sys-devel ...
 * Contents of sys-devel/sparse-9999:
/tmp
/tmp/portage
/tmp/portage/sys-devel
/tmp/portage/sys-devel/sparse-9999
/tmp/portage/sys-devel/sparse-9999/homedir
/tmp/portage/sys-devel/sparse-9999/homedir/bin
/tmp/portage/sys-devel/sparse-9999/homedir/bin/cgcc
/tmp/portage/sys-devel/sparse-9999/homedir/bin/sparse
/tmp/portage/sys-devel/sparse-9999/homedir/bin/sparse-llvm
/tmp/portage/sys-devel/sparse-9999/homedir/bin/sparsec
/tmp/portage/sys-devel/sparse-9999/homedir/bin/test-inspect
/tmp/portage/sys-devel/sparse-9999/homedir/share
/tmp/portage/sys-devel/sparse-9999/homedir/share/man
/tmp/portage/sys-devel/sparse-9999/homedir/share/man/man1
/tmp/portage/sys-devel/sparse-9999/homedir/share/man/man1/cgcc.1
/tmp/portage/sys-devel/sparse-9999/homedir/share/man/man1/sparse.1

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2019-01-28 21:44:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589994af5895f33871c58b02ceceaef139907e53

commit 589994af5895f33871c58b02ceceaef139907e53
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-01-28 21:29:59 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-01-28 21:43:53 +0000

    sys-devel/sparse: install into /usr, not $HOME, bug #676626
    
    Daniel noticed sparse-9999 installs into /tmp due to
    upstream switch to 'PREFIX ?= $(HOME)'.
    
    Cleaned up live ebuild to stop mangling MAKEOPTS.
    
    Reported-by: Daniel M. Weeks
    Closes: https://bugs.gentoo.org/676626
    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/sparse/sparse-9999.ebuild | 44 +++++++++++++++++++++++++++----------
 1 file changed, 33 insertions(+), 11 deletions(-)