pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56152: Add disable-asm option to security/libgcrypt



>Number:         56152
>Category:       pkg
>Synopsis:       Add disable-asm option to security/libgcrypt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 07 10:55:00 +0000 2021
>Originator:     Claes Nästén
>Release:        trunk 2021-05-07
>Organization:
>Environment:
SunOS u40 5.10 Generic_147148-26 i86pc i386 i86pc
>Description:
Building libgcrypt with assembly enabled cause link issues on Solaris 10 x86_64 as shown below:

section [4].eh_frame: section type is SHT_PROGBITS: expected SHT_AMD64_UNWIND

This issue can probably be avoided with a more up-to-date linkerw, easy way out is however to disable assembly with the --disable-asm.

Add option to support compiling without assembly enabled.
>How-To-Repeat:
Build security/libgcrypt (tested gcc 6.5, Solaris provided gcc 3.4.3) on Solaris 10 x86_64 with an unpatched /usr/ccs/bin/ld
>Fix:
diff --git a/security/libgcrypt/options.mk b/security/libgcrypt/options.mk
index bb7fb562cb6..7a16c3e9860 100644
--- a/security/libgcrypt/options.mk
+++ b/security/libgcrypt/options.mk
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.8 2013/04/21 14:44:53 wiz Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.libgcrypt
-PKG_SUPPORTED_OPTIONS=
+PKG_SUPPORTED_OPTIONS= disable-asm
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -20,6 +20,10 @@ PKG_SUGGESTED_OPTIONS+=      via-padlock
 
 .include "../../mk/bsd.options.mk"
 
+.if !empty(PKG_OPTIONS:Mdisable-asm)
+CONFIGURE_ARGS+=       --disable-asm
+.endif
+
 .if empty(PKG_OPTIONS:Mvia-padlock)
 # Disable VIA Padlock support.
 CONFIGURE_ARGS+=       --disable-padlock-support


Home | Main Index | Thread Index | Old Index