pkgsrc-Bugs archive

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

Re: pkg/38197 (libgcrypt 1.4.0 doesn't build on NetBSD 3.1 x386)



The following reply was made to PR pkg/38197; it has been noted by GNATS.

From: "Volkmar Seifert" <vs%nifelheim.info@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost, 
pkgsrc-bugs%NetBSD.org@localhost,
        gilles%gravier.org@localhost
Subject: Re: pkg/38197 (libgcrypt 1.4.0 doesn't build on NetBSD 3.1 x386)
Date: Tue, 25 Mar 2008 21:40:48 +0100 (CET)

 ------=_20080325214047_97489
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: 8bit
 
 >
 >  Does the package build if you add "CONFIGURE_ARGS+= --disable-asm" to
 >  "pkgsrc/security/libgcrypt/Makefile"?
 
 I just tested that, and it did not compile.
 
 Anyhow, I have found a way to compile and install it, and that is by
 excluding padlock completely by adding
 
 CONFIGURE_ARGS+= --disable-padlock-support
 
 to the Makefile.
 
 Since padlock-support is completely unnecessary in most cases, and only
 useful on a few comparably rare CPUs such as VIA Nehemia etc, I have
 patched the options.mk and added a new option "nopadlock", which is a
 default-option, too, to have that option added through the
 options-framework.
 The patch is attached to this mail, since I think it rather useful. One
 should not need to compile code which is useless on one's machine, and I
 feel this padlock-support should be the user's decision.
 
 - Volkmar
 ------=_20080325214047_97489
 Content-Type: text/x-patch; name="libgcrypt.options.mk.patch"
 Content-Transfer-Encoding: 8bit
 Content-Disposition: attachment; filename="libgcrypt.options.mk.patch"
 
 --- options.mk.orig    2008-03-25 11:24:51.000000000 +0100
 +++ options.mk 2008-03-25 10:42:44.000000000 +0100
 @@ -1,10 +1,16 @@
  # $NetBSD$
  
  PKG_OPTIONS_VAR=      PKG_OPTIONS.libgcrypt
 -PKG_SUPPORTED_OPTIONS=        idea
 +PKG_SUPPORTED_OPTIONS=        idea nopadlock
 +PKG_SUGGESTED_OPTIONS=        nopadlock
  
  .include "../../mk/bsd.options.mk"
  
 +.if !empty(PKG_OPTIONS:Mnopadlock)
 +# disable padlock
 +CONFIGURE_ARGS+=        --disable-padlock-support
 +.endif
 +
  .if !empty(PKG_OPTIONS:Midea)
  # use of IDEA as crypto function
  LICENSE=      idea-license
 ------=_20080325214047_97489--
 


Home | Main Index | Thread Index | Old Index