Bug 277218

Summary: devel/gnulib not PREFIX-safe with DEVELOPER-mode on
Product: Ports & Packages Reporter: Mikhail T. <freebsd-2024>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mikhail T. 2024-02-22 03:46:02 UTC
Trying to build the port with DEVELOPER=yes triggers the below error for me, because my LOCALBASE is /opt, rather than the more commonly-used /usr/local:

Error: '/usr/local/bin/clisp' is an invalid shebang you need USES=shebangfix for 'share/gnulib/lib/uniname/gen-uninames.lisp'

The fix is simple enough. No PORTREVISION-rise is necessary, because the common case is not affected.

--- a/devel/gnulib/Makefile
+++ b/devel/gnulib/Makefile
@@ -15,7 +15,8 @@ LICENSE_COMB= multi
 BUILD_DEPENDS= ${LOCALBASE}/bin/makeinfo:print/texinfo
 
 USES=          cpe gmake perl5 shebangfix
-SHEBANG_FILES= check-module
+SHEBANG_FILES= check-module lib/uniname/gen-uninames.lisp
+SHEBANG_LANG=  clisp perl
 CPE_VENDOR=    gnu
 
 NO_ARCH=       yes