[Bug 255683] math/maxima fails to install due to strange staging error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 7 14:28:38 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255683

            Bug ID: 255683
           Summary: math/maxima fails to install due to strange staging
                    error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: russo at bogodyn.org

In trying to update maxima from 5.44.0_11 to 5.44.0_12.  The port builds fine,
but I find a failure at the install stage:

===>   Registering installation for maxima-5.44.0_12
pkg-static: Unable to access file
/usr/ports/math/maxima/work/stage/usr/local/lib/maxima/5.44.0/binary-ecl/maxima:No
such file or directory
pkg-static: Unable to access file
/usr/ports/math/maxima/work/stage/usr/local/libexec/maxima/5.44.0/mgnuplot:No
such file or directory
*** Error code 1


As it turns out, the staged files are NOT in a "5.44.0" directory in the
staging directory where they're expected, they're instead in a directory that
looks unrelated to the actual PORTVERSION in the Makefile:

# ls work/stage/usr/local/lib/maxima
10_eol_85992_gb8aceeb60194

# ls work/stage/usr/local/libexec/maxima/
10_eol_85992_gb8aceeb60194

> grep PORTVERSION Makefile 
PORTVERSION=    5.44.0
MASTER_SITES=   SF/maxima/Maxima-source/${PORTVERSION}-source
PLIST_SUB+=     PORTVERSION=${PORTVERSION}

These oddly named directories in the staging area do contain exactly the files
that should be getting installed, but the name of the directory they're in is
not "5.44.0" so the install fails.

This is off of an up-to-date git clone of ports (from
https://git.freebsd.org/ports.git).

The most recent git commit in my maxima directory is:

commit 442edd8bc1e4d7c336d7573bb977bae7419832b3
Author: Kirill Ponomarev <krion at FreeBSD.org>
Date:   Thu Apr 29 19:51:54 2021 +0200

    Bump PORTREVISION on *-sbcl ports after lang/sbcl upgrade.

(I should note that my maxima is built with ECL not SBCL, so I didn't really
need this update)

The most recent commit in my ports tree is:
commit b8aceeb60194bcd8f8caf6789193c46271d3480e (HEAD -> main, origin/main,
origin/HEAD)
Author: Dimitry Andric <dim at FreeBSD.org>
Date:   Thu May 6 23:29:24 2021 +0200


I note that there is already a bug 247955 open about maxima packaging problems,
but that one seems unrelated to this.  It appears that for whatever reason, the
incorrect portversion is being used to create the staging directories, but I
don't even know where to look for how that could be going wrong or where it's
getting this "10_eol_85992_gb8aceeb60194" --- the only place that string
appears is in the work directory, and it's all over the place.  

I've cleaned out the port directory and done a "make patch" and grepped the
work directory to see if somehow this strange string gets created early in the
process, but it's not there this early.  The string is all over the place at
the end of a "make", though:

# grep -r '10_eol' * | head
work/maxima-5.44.0/interfaces/xmaxima/Tkmaxima/Header.tcl:# version
10_eol_85992_gb8aceeb60194 was used.
work/maxima-5.44.0/interfaces/xmaxima/msgs/Makefile:VERSION =
10_eol_85992_gb8aceeb60194
work/maxima-5.44.0/interfaces/xmaxima/msgs/Makefile:verpkglibdir =
$(pkglibdir)/10_eol_85992_gb8aceeb60194
work/maxima-5.44.0/interfaces/xmaxima/msgs/Makefile:verpkglibexecdir =
$(libexecdir)/maxima/10_eol_85992_gb8aceeb60194
work/maxima-5.44.0/interfaces/xmaxima/msgs/Makefile:verpkgdatadir =
$(pkgdatadir)/10_eol_85992_gb8aceeb60194
... 
(it appears over 2700 times)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list