Bug 274749 - print/tex-formats: Build fails (/usr/local/bin/mktexlsr not found)
Summary: print/tex-formats: Build fails (/usr/local/bin/mktexlsr not found)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tex Mailing List (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-27 08:37 UTC by Michael Glaus
Modified: 2023-10-27 23:35 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (tex)


Attachments
Patch to fix build (254 bytes, patch)
2023-10-27 16:16 UTC, Tomoaki AOKI
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Glaus 2023-10-27 08:37:34 UTC
The build fails during "Stage" with the following error

/usr/local/bin/mktexlsr /wrkdirs/usr/ports/print/tex-formats/work/stage/usr/local/share/texmf-var
make: exec(/usr/local/bin/mktexlsr) failed (No such file or directory)

I believe that this error is introduced with commit a9b0182964621feefe8292021ec645cdd6c19869 (print/texlive-texmf: Temporarily reduce DEPENDS)

If set "USE_TEX=	base basic:extract texhash tlmgr:run" in print/texlive-texmf, the build finishes without an error.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-10-27 11:40:20 UTC
Give me a moment. I am rebuilding another set. Will be back with a quick fix shortly.
Comment 2 Tomoaki AOKI 2023-10-27 11:55:12 UTC
Not actually tested (partially failed builds with poudriere still remains hundreds to finish builds), as the missing file is installed by print/texlive-base, adding back "base" is sufficient, isn't it? As extract doesn't fail, doesn't adding back "basic:extract" overkill?

% pkg which -o /usr/local/bin/mktexlsr                       

/usr/local/bin/mktexlsr was installed by package print/texlive-base
Comment 3 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-10-27 12:01:41 UTC
(In reply to Tomoaki AOKI from comment #2)
I am planning to add this to tex-formats instead of texlive-texmf and see the outcome. I am already rebuilding another set of ports which has USES=tex. Give me another 2/3 hours. The lower number of DEPS we have for texmf the lower the chance that a rebuild will be triggered.
Comment 4 Tomoaki AOKI 2023-10-27 12:49:25 UTC
(In reply to Muhammad Moinur Rahman from comment #3)

I have no objection about it, as texlive-texmf is already succeeded to be built without any fix. I hope the fix to tex-formats goes fine.
Sorry, I myself cannot yet try it as previous builds are not yet finished. :-(

Thanks in advance!
Comment 5 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-10-27 12:50:51 UTC
Nothing to be sorry. I knew what was coming and what is the remedy. 3:)
Comment 6 Tomoaki AOKI 2023-10-27 16:16:11 UTC
Created attachment 245923 [details]
Patch to fix build

Patch to fix build.
Built fine with this on poudriere jail.
Now building fallouts. I'll report back if anything failed.
Note that it's not a whole-rebuilds.
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-10-27 16:35:43 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c48d82d962d55720350c03caa67c87ce59a6d42

commit 2c48d82d962d55720350c03caa67c87ce59a6d42
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-27 16:19:23 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-27 16:35:04 +0000

    print/tex-formats: Fix build

    After the changes committed in a9b0182 this port failed to build. This
    commit fixes the build and overall also reduces the frequent builds of
    texlive-texmf.

    PR:             274749
    Reported by:    michael.glaus@hostpoint.ch
    Fixes: a9b0182 print/texlive-texmf: Temporarily reduce DEPENDS
    Sponsored by:   Nepustil

 print/tex-formats/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 8 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-10-27 16:38:18 UTC
Sorry I missed your patch.
Comment 9 Tomoaki AOKI 2023-10-27 23:35:28 UTC
(In reply to Muhammad Moinur Rahman from comment #8)

Never mind. ;-) It's actually the same fix.
Thanks for the fix!