Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586960 - sci-biology/hmmer-2.3.2-r3 - do not add two and even different --prefix values and respect EPREFIX
Summary: sci-biology/hmmer-2.3.2-r3 - do not add two and even different --prefix value...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Biology related packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-06-24 14:58 UTC by Martin Mokrejš
Modified: 2016-10-09 15:17 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,38.51 KB, text/plain)
2016-06-24 14:58 UTC, Martin Mokrejš
Details
hmmer-2.3.2-r3.ebuild.patch (hmmer-2.3.2-r3.ebuild.patch,580 bytes, patch)
2016-06-24 15:03 UTC, Martin Mokrejš
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2016-06-24 14:58:09 UTC
Created attachment 438664 [details]
build.log

Hi,
  I tried to investigate this but I cannot find a proper way to fix either of these. I have a patch: the configure lines show wrong paths but it seems to do the right thing - install binaries and manual pages in proper location. On the other hand, I fear the -Rpath will be wrong ... and binaries will not work. So, I leave it up to somebody more skilled.


There are two issues IMHO. First, the ebuild is partially ignoring EPREFIX, probably because of the "emake DESTDIR=...." line in current ebuild:

 * QA Notice: the following files are outside of the prefix:
 * /usr
 * /usr/share
 * /usr/share/man
 * /usr/share/man/man1
 * /usr/share/man/man1/hmmer.1
 * /usr/share/man/man1/hmmpfam.1
 * /usr/share/man/man1/hmmalign.1
 * /usr/share/man/man1/hmmconvert.1
 * /usr/share/man/man1/hmmcalibrate.1
 * /usr/share/man/man1/hmmbuild.1
 * /usr/share/man/man1/hmmemit.1
 * /usr/share/man/man1/hmmindex.1
 * /usr/share/man/man1/hmmfetch.1
 * /usr/share/man/man1/hmmsearch.1
 * /usr/bin
 * /usr/bin/hmmconvert
 * /usr/bin/hmmindex
 * /usr/bin/hmmemit
 * /usr/bin/hmmalign
 * /usr/bin/hmmsearch
 * /usr/bin/hmmpfam
 * /usr/bin/hmmbuild
 * /usr/bin/hmmcalibrate
 * /usr/bin/hmmfetch
 * ERROR: sci-biology/hmmer-2.3.2-r3::gentoo_prefix failed:
 *   Aborting due to QA concerns: there are files installed outside the prefix
 * 
 * Call stack:
 *   misc-functions.sh, line 1236:  Called install_qa_check
 *   misc-functions.sh, line  223:  Called source 'install_symlink_html_docs'
 *            05prefix, line  115:  Called install_qa_check_prefix
 *            05prefix, line   27:  Called die
 * The specific snippet of code:
 *                      die "Aborting due to QA concerns: there are files installed outside the prefix"




Second, the configure scripts are served with duplicated --prefix (I show only the latter here).

configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating testsuite/Makefile
config.status: creating Makefile
config.status: creating src/config.h
configure: configuring in squid
configure: running /scratch/mmokrejs/gentoo/bin/bash './configure' --prefix=/scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/hmmer-2.3.2-r3/image//usr  '--prefix=/scratch/mmokrejs/gentoo/usr' '--build=x86_64-pc-linux-gnu' '--mandir=/scratch/mmokrejs/gentoo/usr/share/man' '--infodir=/scratch/mmokrejs/gentoo/usr/share/info' '--datadir=/scratch/mmokrejs/gentoo/usr/share' '--sysconfdir=/scratch/mmokrejs/gentoo/etc' '--localstatedir=/scratch/mmokrejs/gentoo/var/lib' '--libdir=/scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/hmmer-2.3.2-r3/image/usr/lib' '--host=x86_64-pc-linux-gnu' '--prefix=/scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/hmmer-2.3.2-r3/image//usr' '--exec_prefix=/scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/hmmer-2.3.2-r3/image//usr' '--mandir=/scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/hmmer-2.3.2-r3/image//usr/share/man' '--enable-lfs' '--disable-threads' 'CFLAGS=-O2 -pipe -O2 -pipe -march=native' 'LDFLAGS=-Wl,-O1' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
Comment 1 Martin Mokrejš 2016-06-24 15:03:39 UTC
Created attachment 438668 [details, diff]
hmmer-2.3.2-r3.ebuild.patch
Comment 2 Martin Mokrejš 2016-07-04 18:16:51 UTC
To reproduce from https://wiki.gentoo.org/wiki/Prefix/libc follow a link to http://dev.gentoo.org/~heroxbd/bootstrap-rap.sh and just run it as:

export GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/"
export EPREFIX="/scratch/mmokrejs/gentoo_rap"
bash bootstrap-rap.sh
/scratch/mmokrejs/gentoo_rap/startprefix

# inside prefixed Gentoo execute the following
# emerge app-portage/emerge-delta-webrsync emerge-webrsync
# emerge cpuinfo2cpuflags
emerge layman
layman -a science
emerge hmmer
Comment 3 Martin Mokrejš 2016-07-11 09:37:22 UTC
(In reply to Martin Mokrejš from comment #0)
> Created attachment 438664 [details]
> build.log
> 
> Hi,
>   I tried to investigate this but I cannot find a proper way to fix either
> of these. I have a patch: the configure lines show wrong paths but it seems
> to do the right thing - install binaries and manual pages in proper
> location. On the other hand, I fear the -Rpath will be wrong ... and
> binaries will not work. So, I leave it up to somebody more skilled.

I think the patch is fine.
Comment 4 David Seifert gentoo-dev 2016-10-09 15:17:56 UTC
I've tested it by exporting EPREFIX and it seemed to fully respect EPREFIX in src_install().

commit 895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7
Author: David Seifert <soap@gentoo.org>
Date:   Sun Oct 9 16:52:52 2016 +0200

    sci-biology/hmmer: Properly SLOT=2 hmmer-2.3.2
    
    Gentoo-bug: 328911, 586960
    * EAPI=6
    * Introduce SLOT=2 and rename binaries and
      static libraries