diff options
author | Simon Gloßner <viper@hometux.de> | 2006-04-07 16:16:36 +0000 |
---|---|---|
committer | Simon Gloßner <viper@hometux.de> | 2006-04-07 16:16:36 +0000 |
commit | ae73185432c228b10ce366062e365caec624fcbc (patch) | |
tree | 050e581f057efca30f648a5c392230641143ea7b /gnupg | |
parent | 157d69ebe7198868f2b15271da7719d697a9a271 (diff) | |
download | opt-ae73185432c228b10ce366062e365caec624fcbc.tar.gz opt-ae73185432c228b10ce366062e365caec624fcbc.tar.xz |
gnupg: readded --enable-m-guard; danm has created a nice well-working
patch
Diffstat (limited to 'gnupg')
-rw-r--r-- | gnupg/.md5sum | 1 | ||||
-rw-r--r-- | gnupg/Pkgfile | 12 | ||||
-rw-r--r-- | gnupg/gnupg-1.4.3-mguard.patch | 23 |
3 files changed, 31 insertions, 5 deletions
diff --git a/gnupg/.md5sum b/gnupg/.md5sum index ef750595c..8f78ccb84 100644 --- a/gnupg/.md5sum +++ b/gnupg/.md5sum @@ -1,2 +1,3 @@ +9c27490749384afffca5d7d18aaaf276 gnupg-1.4.3-mguard.patch d237d8fe1c4afa379f56dbda0e0b40e4 gnupg-1.4.3.tar.bz2 9dc3bc086824a8c7a331f35e09a3e57f idea.c.gz diff --git a/gnupg/Pkgfile b/gnupg/Pkgfile index a22332ca2..7d015220e 100644 --- a/gnupg/Pkgfile +++ b/gnupg/Pkgfile @@ -5,13 +5,17 @@ name=gnupg version=1.4.3 -release=1 +release=2 source=(ftp://ftp.gnupg.org/gcrypt/gnupg/$name-$version.tar.bz2 \ - ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz) + ftp://ftp.gnupg.dk/pub/contrib-dk/idea.c.gz \ + $name-$version-mguard.patch) build () { cd $name-$version + # necessary because of --enable-m-guard + patch -p1 < $SRC/$name-$version-mguard.patch + zcat ../idea.c.gz > cipher/idea.c ./configure \ @@ -19,13 +23,11 @@ build () { --libexecdir=/usr/lib \ --enable-static-rnd=linux \ --enable-dev-random \ + --enable-m-guard \ --disable-nls \ --disable-ldap \ --enable-mailto -# doesn't work in 1.4.3 -# --enable-m-guard \ - make make DESTDIR=$PKG install diff --git a/gnupg/gnupg-1.4.3-mguard.patch b/gnupg/gnupg-1.4.3-mguard.patch new file mode 100644 index 000000000..66c1c2801 --- /dev/null +++ b/gnupg/gnupg-1.4.3-mguard.patch @@ -0,0 +1,23 @@ +diff -Nru gnupg-1.4.3-old/util/memory.c gnupg-1.4.3/util/memory.c +--- gnupg-1.4.3-old/util/memory.c 2006-04-06 23:28:07.875803000 +0000 ++++ gnupg-1.4.3/util/memory.c 2006-04-06 23:29:02.695229000 +0000 +@@ -509,15 +509,15 @@ + if( len >= n ) /* we don't shrink for now */ + return a; + if( p[-1] == MAGIC_SEC_BYTE ) +- b = FNAME(alloc_secure_clear)(n FNAMEARG); ++ b = FNAMEXM(alloc_secure_clear)(n FNAMEARG); + else +- b = FNAME(alloc_clear)(n FNAMEARG); ++ b = FNAMEXM(alloc_clear)(n FNAMEARG); + FNAME(check)(NULL FNAMEARG); + memcpy(b, a, len ); +- FNAME(free)(p FNAMEARG); ++ FNAMEX(free)(p FNAMEARG); + } + else +- b = FNAME(alloc)(n FNAMEARG); ++ b = FNAMEXM(alloc)(n FNAMEARG); + #else + if( m_is_secure(a) ) { + if( !(b = secmexrealloc( a, n )) ) |