Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829385 - sci-mathematics/giac-1.7.0.13-r1 fails install phase
Summary: sci-mathematics/giac-1.7.0.13-r1 fails install phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-17 05:38 UTC by Steven Trogdon
Modified: 2021-12-18 17:32 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 Steven Trogdon 2021-12-17 05:38:40 UTC
This appears to be a double prefix of sorts. The failure

rm: cannot remove '/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/giac-1.7.0.13-r1/image/storage/strogdon/gentoo-rap/usr/share/doc/giac-1.7.0.13-r1/doc/Exemples': No such file or directory
 * ERROR: sci-mathematics/giac-1.7.0.13-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 127:  Called src_install
 *   environment, line 2108:  Called die
 * The specific snippet of code:
 *       rm -r "${ED}/usr/share/doc/${PF}/doc/Exemples" || die;

The Exemples folder is located under

/storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/giac-1.7.0.13-r1/image/usr/share/giac/doc/

And under my prefix's image folder there is

ls -al /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/giac-1.7.0.13-r1/image
total 16
drwxr-xr-x  4 terry terry 4096 Dec 16 21:55 .
drwx------ 10 terry terry 4096 Dec 16 21:55 ..
drwxr-xr-x  3 terry terry 4096 Dec 16 21:55 storage
drwxr-xr-x  3 terry terry 4096 Dec 16 21:55 usr
Comment 1 Steven Trogdon 2021-12-18 03:00:27 UTC
I believe the fix for this is that in src_configure we should have

@@ -88,7 +88,7 @@
                --enable-gmpxx \
                --disable-samplerate \
                --disable-micropy \
-               --docdir=/usr/share/giac/doc \
+               --docdir="${EPREFIX}"/usr/share/giac/doc \
                $(use_enable static-libs static) \
                $(use_enable gui)  \
                $(use_enable gui png)  \
Comment 2 Fabian Groffen gentoo-dev 2021-12-18 09:56:34 UTC
if that works for you, I can commit that change (looks sensical)
Comment 3 Steven Trogdon 2021-12-18 16:55:52 UTC
(In reply to Fabian Groffen from comment #2)
> if that works for you, I can commit that change (looks sensical)

Yes, it works here. With the change:

>>> Completed installing sci-mathematics/giac-1.7.0.13-r1 into /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/giac-1.7.0.13-r1/image
Comment 4 Larry the Git Cow gentoo-dev 2021-12-18 17:32:10 UTC
The bug has been closed via the following commit(s):

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

commit ecc4a10ede9f57abd1770d5c6ac20184ec317fa6
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-12-18 17:31:41 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-12-18 17:32:07 +0000

    sci-mathematics/giac-1.7.0.13-r1: fix build for Prefix
    
    Closes: https://bugs.gentoo.org/829385
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 sci-mathematics/giac/giac-1.7.0.13-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)