Directories removed - projects have been moved into Fedora.
[fedora-mingw.git] / openssl / openssl-0.9.8g-soversion.patch
1 Define and use a soname -- because we have to care about binary
2 compatibility, we have to increment the soname in order to allow
3 this version to co-exist with another versions and have everything
4 work right.
5
6 diff -up openssl-0.9.8g/Configure.soversion openssl-0.9.8g/Configure
7 --- openssl-0.9.8g/Configure.soversion  2007-12-03 14:41:19.000000000 +0100
8 +++ openssl-0.9.8g/Configure    2007-12-03 14:41:19.000000000 +0100
9 @@ -1371,7 +1371,7 @@ while (<IN>)
10         elsif ($shared_extension ne "" && $shared_extension =~ /^\.s([ol])\.[^\.]*\.[^\.]*$/)
11                 {
12                 my $sotmp = $1;
13 -               s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_MAJOR) .s$sotmp/;
14 +               s/^SHARED_LIBS_LINK_EXTS=.*/SHARED_LIBS_LINK_EXTS=.s$sotmp.\$(SHLIB_SONAMEVER) .s$sotmp/;
15                 }
16         elsif ($shared_extension ne "" && $shared_extension =~ /^\.[^\.]*\.[^\.]*\.dylib$/)
17                 {
18 diff -up openssl-0.9.8g/Makefile.org.soversion openssl-0.9.8g/Makefile.org
19 --- openssl-0.9.8g/Makefile.org.soversion       2007-12-03 14:41:19.000000000 +0100
20 +++ openssl-0.9.8g/Makefile.org 2007-12-03 14:41:19.000000000 +0100
21 @@ -10,6 +10,7 @@ SHLIB_VERSION_HISTORY=
22  SHLIB_MAJOR=
23  SHLIB_MINOR=
24  SHLIB_EXT=
25 +SHLIB_SONAMEVER=7
26  PLATFORM=dist
27  OPTIONS=
28  CONFIGURE_ARGS=
29 @@ -277,10 +278,9 @@ clean-shared:
30  link-shared:
31         @ set -e; for i in ${SHLIBDIRS}; do \
32                 $(MAKE) -f $(HERE)/Makefile.shared -e $(BUILDENV) \
33 -                       LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
34 +                       LIBNAME=$$i LIBVERSION=${SHLIB_SONAMEVER} \
35                         LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
36                         symlink.$(SHLIB_TARGET); \
37 -               libs="$$libs -l$$i"; \
38         done
39  
40  build-shared: do_$(SHLIB_TARGET) link-shared
41 @@ -291,7 +291,7 @@ do_$(SHLIB_TARGET):
42                         libs="$(LIBKRB5) $$libs"; \
43                 fi; \
44                 $(CLEARENV) && $(MAKE) -f Makefile.shared -e $(BUILDENV) \
45 -                       LIBNAME=$$i LIBVERSION=${SHLIB_MAJOR}.${SHLIB_MINOR} \
46 +                       LIBNAME=$$i LIBVERSION=${SHLIB_SONAMEVER} \
47                         LIBCOMPATVERSIONS=";${SHLIB_VERSION_HISTORY}" \
48                         LIBDEPS="$$libs $(EX_LIBS)" \
49                         link_a.$(SHLIB_TARGET); \