cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
79 stars 26 forks source link

maxima-5.45.1-r4 failure #711

Closed strogdon closed 1 year ago

strogdon commented 1 year ago

emerge --sync pulls in maxima-5.46.0. Now emerge -C @sagemath && emerge -1 @sagemath pulls in maxima-5.45.1-r4 from s-o-g which fails:

 * Failed running 'automake'!
 * 
 * Include in your bug report the contents of:
 * 
 *   /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/temp/automake.out

From automake.out I have

***** automake *****
***** PWD: /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/work/maxima-5.45.1
***** automake --add-missing --copy --force-missing

configure.ac:13: error: version mismatch.  This is Automake 1.16.5,
configure.ac:13: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:13: comes from Automake 1.13.4.  You should recreate
configure.ac:13: aclocal.m4 with aclocal and run automake again.
kiwifb commented 1 year ago

Hum, wonder why I haven't seen that before. It should be a case of running eaclocal before eautoreconf.

kiwifb commented 1 year ago
fbissey@tarazed ~/Work/Overlays/sage-on-gentoo/sci-mathematics/maxima $ ebuild maxima-5.45.1-r4.ebuild prepare
Appending /home/fbissey/Work/Overlays/sage-on-gentoo to PORTDIR_OVERLAY...
 * maxima-5.45.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                        [ ok ]
 * Checking whether python3_10 is suitable ...
 *   >=dev-lang/python-3.10.4:3.10 ...                                                                                                                     [ ok ]
 * Using python3.10 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking maxima-5.45.1.tar.gz to /home/portage/sci-mathematics/maxima-5.45.1-r4/work
>>> Source unpacked in /home/portage/sci-mathematics/maxima-5.45.1-r4/work
>>> Preparing source in /home/portage/sci-mathematics/maxima-5.45.1-r4/work/maxima-5.45.1 ...
 * Applying dont_detect_python.patch ...                                                                                                                   [ ok ]
 * Applying imaxima-0.patch ...                                                                                                                            [ ok ]
 * Applying xdg-utils-1.patch ...
patching file interfaces/emacs/misc/bookmode.el
patching file interfaces/xmaxima/Tkmaxima/Constants.tcl
Hunk #1 succeeded at 136 with fuzz 1 (offset -18 lines).                                                                                                   [ ok ]
 * Applying wish-2.patch ...
patching file configure.ac
Hunk #1 succeeded at 1149 (offset 158 lines).
patching file interfaces/Makefile.am
Hunk #1 succeeded at 1 with fuzz 1.                                                                                                                        [ ok ]
 * Applying rmaxima-0.patch ...
patching file src/Makefile.am
Hunk #1 succeeded at 14 with fuzz 1 (offset 10 lines).                                                                                                     [ ok ]
 * Applying emacs-0.patch ...
patching file configure.ac
Hunk #1 succeeded at 603 (offset 90 lines).
patching file interfaces/Makefile.am
Hunk #1 succeeded at 1 with fuzz 1.                                                                                                                        [ ok ]
 * Applying clisp-1.patch ...                                                                                                                              [ ok ]
 * Applying clozurecl-3.patch ...                                                                                                                          [ ok ]
 * Applying ecls-4.patch ...                                                                                                                               [ ok ]
 * Applying cmucl-1.patch ...                                                                                                                              [ ok ]
 * Applying sbcl-2.patch ...                                                                                                                               [ ok ]
 * Applying maxima-5.39.0-matrixexp.patch ...                                                                                                              [ ok ]
 * Running eautoreconf in '/home/portage/sci-mathematics/maxima-5.45.1-r4/work/maxima-5.45.1' ...
 * Running 'aclocal --system-acdir=/home/portage/sci-mathematics/maxima-5.45.1-r4/temp/aclocal' ...                                                        [ ok ]
 * Running 'autoconf --force' ...                                                                                                                          [ ok ]
 * Running 'automake --add-missing --copy --force-missing' ...                                                                                             [ ok ]
 * Running elibtoolize in: maxima-5.45.1/
>>> Source prepared.

So eaclocal is properly run here. Can you show more of what's happening to you like I posted above?

strogdon commented 1 year ago
>>> Unpacking source...
>>> Unpacking maxima-5.45.1.tar.gz to /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/work
>>> Source unpacked in /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/work
>>> Preparing source in /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/work/maxima-5.45.1 ...
 * Applying dont_detect_python.patch ...
 [ ok ]
 * Applying imaxima-0.patch ...
 [ ok ]
 * Applying xdg-utils-1.patch ...
patching file interfaces/emacs/misc/bookmode.el
patching file interfaces/xmaxima/Tkmaxima/Constants.tcl
Hunk #1 succeeded at 136 with fuzz 1 (offset -18 lines).
 [ ok ]
 * Applying wish-2.patch ...
patching file configure.ac
Hunk #1 succeeded at 1149 (offset 158 lines).
patching file interfaces/Makefile.am
Hunk #1 succeeded at 1 with fuzz 1.
 [ ok ]
 * Applying rmaxima-0.patch ...
patching file src/Makefile.am
Hunk #1 succeeded at 14 with fuzz 1 (offset 10 lines).
 [ ok ]
 * Applying emacs-0.patch ...
patching file configure.ac
Hunk #1 succeeded at 603 (offset 90 lines).
patching file interfaces/Makefile.am
Hunk #1 succeeded at 1 with fuzz 1.
 [ ok ]
 * Applying clisp-1.patch ...
 [ ok ]
 * Applying clozurecl-3.patch ...
 [ ok ]
 * Applying ecls-4.patch ...
 [ ok ]
 * Applying cmucl-1.patch ...
 [ ok ]
 * Applying sbcl-2.patch ...
 [ ok ]
 * Applying maxima-5.39.0-matrixexp.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/work/maxima-5.45.1' ...
 * Running 'aclocal --system-acdir=/var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/temp/aclocal' ...
 [ ok ]
 * Running 'autoconf --force' ...
 [ ok ]
 * Running 'automake --add-missing --copy --force-missing' ...
 [ !! ]

 * Failed running 'automake'!
 * 
 * Include in your bug report the contents of:
 * 
 *   /var/tmp/portage/sci-mathematics/maxima-5.45.1-r4/temp/automake.out

 * ERROR: sci-mathematics/maxima-5.45.1-r4::sage-on-gentoo failed (prepare phase):
 *   Failed running 'automake'!
strogdon commented 1 year ago

From configure.ac there is

AM_INIT_AUTOMAKE([-Wno-portability tar-ustar])

Is this OK for automake-1.16.5?

strogdon commented 1 year ago

At the time of the failure I had both automake-1.13.4-r2 and automake-1.16.5 installed. Now the 1.13 slot is hard masked. Why it was not removed I don't know. I removed it and maxima now builds fine.

kiwifb commented 1 year ago

That explains a lot. There was probably a mix up between the version use by eaclocal and eautoreconf. I think we can mark this as closed.