[Bug 270081] archivers/lha: Build fails with DISABLE_LICENSES=yes

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Mar 2023 08:06:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270081

            Bug ID: 270081
           Summary: archivers/lha: Build fails with DISABLE_LICENSES=yes
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dinoex@FreeBSD.org
          Reporter: michael.glaus@hostpoint.ch
             Flags: maintainer-feedback?(dinoex@FreeBSD.org)
          Assignee: dinoex@FreeBSD.org

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

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