Bug 270081 - archivers/lha: Build fails with DISABLE_LICENSES=yes
Summary: archivers/lha: Build fails with DISABLE_LICENSES=yes
Status: Closed DUPLICATE of bug 270082
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 08:06 UTC by Michael Glaus
Modified: 2023-03-13 09:26 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Glaus 2023-03-10 08:06:09 UTC
The latest commit made some changes to the license (See here bug #269732 and https://cgit.freebsd.org/ports/commit?id=9009f2cfb80d5dbc624956449a937c6697015fe8). This includes that the variable ${_LICENSE_DIR} is used in the do-install section.

But this variable is not defined if DISABLE_LICENSES is set to yes, and therefore the build fails. This is because the license file is expected under usr/local/share/licenses/lha-1.14i_9/LICENSE.en but neither the creation of this folder nor the install of this file works correctly.

I'm not sure what's the best way to solve this problem. Also not sure what legal implication some changes may have. Therefore i can't provide a commit to fix this issue.

Build Log:

===========================================================================
=======================<phase: run-depends    >============================
===========================================================================
=======================<phase: stage          >============================
===>  Staging for lha-1.14i_9
===>   Generating temporary packing list
/bin/mkdir -p /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/man/ja/man1 /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/share/lha /wrkdirs/usr/ports/archivers/lha/work/stage
install   -m 555 /wrkdirs/usr/ports/archivers/lha/work/lha-114i/src/lha /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/bin/
install  -m 444 /wrkdirs/usr/ports/archivers/lha/work/lha-114i/man/lha.n /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/man/ja/man1/lha.1
install  -m 0644 /portdistfiles/lha-114i.tar.gz /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/share/lha/
install  -m 0644 /usr/ports/archivers/lha/files/LICENSE.en /wrkdirs/usr/ports/archivers/lha/work/stage/
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for lha-1.14i_9
pkg-static: Unable to access file /wrkdirs/usr/ports/archivers/lha/work/stage/usr/local/share/licenses/lha-1.14i_9/LICENSE.en:No such file or directory
*** Error code 1
Comment 1 Dirk Meyer freebsd_committer freebsd_triage 2023-03-13 09:26:40 UTC

*** This bug has been marked as a duplicate of bug 270082 ***