Bug 247955 - math/maxima: Packaging Fails Due to Missing Files
Summary: math/maxima: Packaging Fails Due to Missing Files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Lorenzo Salvadore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-13 22:26 UTC by dal36
Modified: 2022-04-24 10:38 UTC (History)
3 users (show)

See Also:


Attachments
My old patch in Subversion format for math/maxima/pkg-plist (656 bytes, patch)
2021-04-10 18:32 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dal36 2020-07-13 22:26:09 UTC
I'm getting the following messages in the packaging stage for math/maxima when building with ports-mgmt/synth:

===>  Building package for maxima-5.44.0_2
pkg-static: Unable to access file /construction/xports/math/maxima/work/stage/usr/local/man/de/man1/maxima_core.1.gz:No such file or directory
pkg-static: Unable to access file /construction/xports/math/maxima/work/stage/usr/local/man/ru/man1/maxima_core.1.gz:No such file or directory
*** Error code 1

The previous version (5.44.0_1) of this port built and packaged OK. I noticed that it looked like these two man pages were added to pkg-plist in r541427 - are these files produced unconditionally or based on local or port settings (e.g. system locale)?
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2020-07-20 18:53:38 UTC
I cannot reproduce this in poudriere, do you have any special options set to this port? BTW, the official package repository also has maxima-5.44.0_2 now.
Comment 2 dal36 2020-07-25 16:03:18 UTC
Apologies, should have included this originally. I'm using SBCL rather than ECL and hence have SAGE off.

Full options output from synth log:
===> The following configuration options are available for maxima-5.44.0_2:
     DOCS=on: Build and/or install documentation
     EXAMPLES=on: Build and/or install examples
     MANPAGES=on: Build and/or install manual pages
     NOUSERINIT=on: Do not load user init file for lisp (only for sbcl)
     SAGE=off: Build with patches from Sage (implies ECL)
     TEST=on: Build and/or run tests
     XMAXIMA=on: Install xmaxima (implies DOCS and TEST)
====> Options available for the single LISP: you have to select exactly one of them
     CCL=off: Build with Clozure Common Lisp
     CMUCL=off: Build with CMU Common Lisp
     ECL=off: Build with Embedabble Common Lisp
     SBCL=on: Build with Steel Bank Common Lisp

Thanks for your note that it's available in the package repository - in the end I just deleted those two man page lines in the local version of pkg-plist, which let it package correctly.
Comment 3 dal36 2021-01-02 18:08:01 UTC
I'm still seeing this on 5.44.0_8. Please let me know if there's other information that I can provide here.
Comment 4 Trond Endrestøl 2021-04-10 18:32:21 UTC
Created attachment 223995 [details]
My old patch in Subversion format for math/maxima/pkg-plist

It would be nice if the attached patch is applied, or the manpages in question be removed from pkg-plist. If necessary, I can create a new patch in Git format.
Comment 5 Trond Endrestøl 2021-04-10 18:36:31 UTC
(In reply to Trond.Endrestol from comment #4)
I'm on src/main, and I too had to select SBCL after having tried all of the other alternatives.

Here's my configuration:

===> The following configuration options are available for maxima-5.44.0_11:
     DOCS=on: Build and/or install documentation
     EXAMPLES=on: Build and/or install examples
     MANPAGES=on: Build and/or install manual pages
     NOUSERINIT=on: Do not load user init file for lisp (only for sbcl)
     SAGE=off: Build with patches from Sage (implies ECL)
     TEST=on: Build and/or run tests
     XMAXIMA=on: Install xmaxima (implies DOCS and TEST)
====> Options available for the single LISP: you have to select exactly one of them
     CCL=off: Build with Clozure Common Lisp
     CMUCL=off: Build with CMU Common Lisp
     ECL=off: Build with Embedabble Common Lisp
     SBCL=on: Build with Steel Bank Common Lisp
===> Use 'make config' to modify these settings
Comment 6 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-22 21:53:06 UTC
Hello.

In the past I have been maxima's maintainer and I am planning to adopt it again. I see many months have passed since the last comment on this bug report and the port has received some updates.

Could you please tell me if the bug is still present?

Thanks.
Comment 7 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-23 10:22:06 UTC
I have reproduced the issue and fixed it differently than what was proposed: I still install the manpages, but with the correct name.

Soon I will commit the fix.
Comment 8 commit-hook freebsd_committer freebsd_triage 2022-04-24 10:33:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b2281ed4a6211220244727787b87ad275f13d7a

commit 3b2281ed4a6211220244727787b87ad275f13d7a
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2022-04-23 15:48:00 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2022-04-24 10:29:49 +0000

    math/maxima: Bugfix, style, adopt again

    - Fix pkg-plist when SBCL is ON [1]
    - Improve style according to suggestions from portclippy and portfmt

    PR:             247955 [1]
    Reported by:    dal36@gmx.co.uk [1]
    Approved by:    gerald (mentor)

 math/maxima/Makefile  | 67 ++++++++++++++++++++++++++++-----------------------
 math/maxima/pkg-plist |  4 +--
 2 files changed, 39 insertions(+), 32 deletions(-)
Comment 9 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-04-24 10:38:54 UTC
Fixed, thanks for reporting.