Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300132 - sci-mathematics/fricas-1.0.8 fails to build
Summary: sci-mathematics/fricas-1.0.8 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 08:27 UTC by Helmut Jarausch
Modified: 2010-01-10 11:50 UTC (History)
1 user (show)

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


Attachments
build.log (compressed with lzma) (Fricas.lzma,471.80 KB, application/octet-stream)
2010-01-09 15:14 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2010-01-08 08:27:53 UTC
emerging sci-mathematics/fricas with USE=sbcl fails to install:

make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/fricas-1.0.8/work/fricas-1.0.8/contrib/emacs'
79 FriCAS installation finished.
rm: cannot remove `/var/tmp/portage/sci-mathematics/fricas-1.0.8/image//usr/lib/fricas/emacs': No such file or directory
 * ERROR: sci-mathematics/fricas-1.0.8 failed:
 *   rm -r emacs failed


Furthermore, when using MAKEOPTS=-j4 it looks like one process is
waiting for manual input:
; compiling (MAKEPROP (QUOTE |ExtensionField&|) ...)

; /var/tmp/portage/sci-mathematics/fricas-1.0.8/work/fricas-1.0.8/src/algebra/XF-.fasl written
; compilation finished in 0:00:00.024
Value = #P"/var/tmp/portage/sci-mathematics/fricas-1.0.8/work/fricas-1.0.8/src/algebra/XF-.fasl"
(1) -> 
   (1)  quit
                                                         Type: Variable(quit)
(2) -> 


Reproducible: Always
Comment 1 Andrey Grozin gentoo-dev 2010-01-08 09:56:20 UTC
I have a single-core processor, and cannot check parallel make. Please try -j1. If this solves your problems, I'll add -j1 to the ebuild.
Comment 2 Helmut Jarausch 2010-01-08 10:01:49 UTC
(In reply to comment #1)
> I have a single-core processor, and cannot check parallel make. Please try -j1.
> If this solves your problems, I'll add -j1 to the ebuild.
> 

No, I've tried -j1 already. It still doesn't install with the very same
problem (cannot rm -r emacs)
Would it be safe to replace this with  'rm -rf emacs', or does this failure
come from another more critical issue?
Comment 3 Andrey Grozin gentoo-dev 2010-01-08 10:40:51 UTC
It is absolutely safe to say rm -rf, or even to omit this line completely. But this is really strange. make install installs /usr/lib/fricas/emacs/ with 2 files, at least on 2 computers on which I tested. Why doesn't it do so on your computer? Please post the complete log (with -j1, otherwise it will be difficult to understand) as an attachment.
Comment 4 Andrey Grozin gentoo-dev 2010-01-08 17:53:04 UTC
I have a hypothesis: maybe, you don't have emacs installed? And ./configure detects this fact, and emacs support files are not installed. Then it's better to use
rm -rf "${D}"/usr/lib/${PN}/emacs
and
rm -f "${D}"/usr/bin/efricas
- if these files are not installed, there's no need to remove them. So, please, post your log file.
Comment 5 Helmut Jarausch 2010-01-09 15:09:43 UTC
(In reply to comment #4)
> I have a hypothesis: maybe, you don't have emacs installed? And ./configure
> detects this fact, and emacs support files are not installed. Then it's better
> to use
> rm -rf "${D}"/usr/lib/${PN}/emacs
> and
> rm -f "${D}"/usr/bin/efricas
> - if these files are not installed, there's no need to remove them. So, please,
> post your log file.
> 

eix -I emacs shows that
app-admin/eselect-emacs-1.13
app-editors/emacs-22.3-r2 and 23.1-r2
app-editors/xemacs-21.5.29-r2
app-emacs/emacs-common-gentoo-1.2
app-xemacs/xemacs-base-2.19
virtual/emacs-23
are installed!
I've put the buildlog into an attachment.
Thanks for looking into it!
Comment 6 Helmut Jarausch 2010-01-09 15:14:04 UTC
Created attachment 215822 [details]
build.log (compressed with lzma)
Comment 7 Andrey Grozin gentoo-dev 2010-01-09 16:38:52 UTC
Aha! I see.

On your system, emake install installed the emacs stuff to ${D}/usr/lib64/fricas/emacs/ but rm -r tries to remove ${D}/usr/lib/fricas/emacs. I need to do something to select /usr/lib or /usr/lib64 automatically. The same goes for the line
elisp-install ${PN} "${D}"/usr/lib/${PN}/emacs/*.el
which is invoked when USE=emacs. I'll try to write something appropriate tomorrow. But I have no amd64 hardware, so, you'll have to be the guinea pig for the improved ebuild. But if it will work, I'll be able to add ~amd64.

Thanks in advance
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2010-01-09 17:18:15 UTC
(In reply to comment #7)

> ${D}/usr/lib/fricas/emacs. I need to do something to select /usr/lib or
> /usr/lib64 automatically. 

In all ebuilds, always use /usr/$(get_libdir) to be multilib strict, from the eutils eclass.

(In reply to comment #1)
> I have a single-core processor, and cannot check parallel make. Please try -j1.
> If this solves your problems, I'll add -j1 to the ebuild.

You can still test -j2 on a single core processor, and probably -j3. Also if parallel building does not work, QA considers -j1 to be the last resource only when everything else failed.


Comment 9 Andrey Grozin gentoo-dev 2010-01-10 07:05:17 UTC
(In reply to comment #8)
> In all ebuilds, always use /usr/$(get_libdir) to be multilib strict, from the
> eutils eclass.
I know. This is exactly what I've done now (at the moment I'm testing the ebuild on my computer; if nothing breaks down, I'll commit).
Comment 10 Andrey Grozin gentoo-dev 2010-01-10 08:24:08 UTC
I've just committed a corrected ebuild. Could you please sync and check if it works on amd64? (better if you do it both with and without USE=emacs). If it works, I'll add ~amd64 to KEYWORDS.
Comment 11 Helmut Jarausch 2010-01-10 11:38:16 UTC
(In reply to comment #10)
> I've just committed a corrected ebuild. Could you please sync and check if it
> works on amd64? (better if you do it both with and without USE=emacs). If it
> works, I'll add ~amd64 to KEYWORDS.
> 

Thanks, I works flawlessly on amd64 now  - even using 4 processors.
Helmut.
Comment 12 Andrey Grozin gentoo-dev 2010-01-10 11:50:29 UTC
Keyworded ~amd64. Thanks.