[Bug 276591] devel/electron25, devel/electron26, devel/electron27 fail to check LIB_DEPENDS if HEIMDAL option is selected.

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 24 Jan 2024 15:44:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276591

            Bug ID: 276591
           Summary: devel/electron25, devel/electron26, devel/electron27
                    fail to check LIB_DEPENDS if HEIMDAL option is
                    selected.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tagattie@FreeBSD.org
          Reporter: freebsd-bug-report-yf@yf.bsdclub.org
          Assignee: tagattie@FreeBSD.org
             Flags: maintainer-feedback?(tagattie@FreeBSD.org)

With ports options:

OPTIONS_FILE_SET+=KERBEROS
OPTIONS_FILE_SET+=HEIMDAL
OPTIONS_FILE_UNSET+=HEIMDAL_BASE
OPTIONS_FILE_UNSET+=MIT

poudriere bulk fails to build electron25 such as:
[[[
...
[14amd64-local-desktop-job-01] Extracting cups-2.4.7_1: .......... done
===>   electron25-25.9.8_2 depends on shared library: libcups.so - found
(/usr/local/lib/libcups.so)
===>   Returning to build of electron25-25.9.8_2
===>   electron25-25.9.8_2 depends on shared library: libkrb.so.26 - not found
===>   Installing existing package /packages/All/heimdal-7.8.0_6.pkg
[14amd64-local-desktop-job-01] Installing heimdal-7.8.0_6...
the most recent version of heimdal-7.8.0_6 is already installed
===>   electron25-25.9.8_2 depends on shared library: libkrb.so.26 - not found
*** Error code 1

Stop.
]]]

It seems this is caused by the typo in Makefile
[[[
diff --git a/devel/electron25/Makefile b/devel/electron25/Makefile
index d4947e548c28..4ccef77a42f1 100644
--- a/devel/electron25/Makefile
+++ b/devel/electron25/Makefile
@@ -188,7 +188,7 @@ DEBUG_VARS_OFF=             BUILDTYPE=Release \
 DIST_IMPLIES=          DRIVER
 DRIVER_MAKE_ARGS=      chromedriver

-HEIMDAL_LIB_DEPENDS=   libkrb.so.26:security/heimdal
+HEIMDAL_LIB_DEPENDS=   libkrb5.so.26:security/heimdal
 KERBEROS_VARS=         GN_ARGS+=use_kerberos=true
 KERBEROS_VARS_OFF=     GN_ARGS+=use_kerberos=false

]]]
... and also it might be applied in electron26, electron27.

I'm not sure we can build it even with the change above, I'm just trying (it
takes 1 day).

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