[Pkg-openssl-changes] r478 - in openssl/trunk/debian: . patches
Kurt Roeckx
kroeckx at alioth.debian.org
Sun Dec 19 15:27:08 UTC 2010
Author: kroeckx
Date: 2010-12-19 15:27:05 +0000 (Sun, 19 Dec 2010)
New Revision: 478
Added:
openssl/trunk/debian/patches/gnu_source.patch
Modified:
openssl/trunk/debian/changelog
openssl/trunk/debian/patches/series
Log:
Always define _GNU_SOURCE, not only for Linux.
Modified: openssl/trunk/debian/changelog
===================================================================
--- openssl/trunk/debian/changelog 2010-12-19 15:13:00 UTC (rev 477)
+++ openssl/trunk/debian/changelog 2010-12-19 15:27:05 UTC (rev 478)
@@ -1,8 +1,9 @@
openssl (1.0.0c-2) experimental; urgency=low
* Set $ in front of {sparcv9_asm} so that the sparc v9 variant builds.
+ * Always define _GNU_SOURCE, not only for Linux.
- -- Kurt Roeckx <kurt at roeckx.be> Sun, 19 Dec 2010 14:47:22 +0100
+ -- Kurt Roeckx <kurt at roeckx.be> Sun, 19 Dec 2010 16:24:16 +0100
openssl (1.0.0c-1) experimental; urgency=low
Added: openssl/trunk/debian/patches/gnu_source.patch
===================================================================
--- openssl/trunk/debian/patches/gnu_source.patch (rev 0)
+++ openssl/trunk/debian/patches/gnu_source.patch 2010-12-19 15:27:05 UTC (rev 478)
@@ -0,0 +1,24 @@
+From: Kurt Roeckx <kurt at roeckx.be>
+Subject: Always define _GNU_SOURCE
+
+We need this atleast for kfreebsd because they also use glibc.
+There shouldn't be a problem defining this on systems not using
+glibc.
+
+Index: openssl-1.0.0c.obsolete.0.297891860202984/crypto/dso/dso_dlfcn.c
+===================================================================
+--- openssl-1.0.0c.obsolete.0.297891860202984.orig/crypto/dso/dso_dlfcn.c 2010-12-19 16:18:36.000000000 +0100
++++ openssl-1.0.0c.obsolete.0.297891860202984/crypto/dso/dso_dlfcn.c 2010-12-19 16:19:01.000000000 +0100
+@@ -60,10 +60,8 @@
+ that handle _GNU_SOURCE and other similar macros. Defining it later
+ is simply too late, because those headers are protected from re-
+ inclusion. */
+-#ifdef __linux
+-# ifndef _GNU_SOURCE
+-# define _GNU_SOURCE /* make sure dladdr is declared */
+-# endif
++#ifndef _GNU_SOURCE
++# define _GNU_SOURCE /* make sure dladdr is declared */
+ #endif
+
+ #include <stdio.h>
Modified: openssl/trunk/debian/patches/series
===================================================================
--- openssl/trunk/debian/patches/series 2010-12-19 15:13:00 UTC (rev 477)
+++ openssl/trunk/debian/patches/series 2010-12-19 15:27:05 UTC (rev 478)
@@ -16,3 +16,4 @@
shared-lib-ext.patch
stddef.patch
version-script.patch
+gnu_source.patch
More information about the Pkg-openssl-changes
mailing list