Package: libspf2-dev
Version: 1.2.5-4
Severity: wishlist
Tags: patch

This patch makes $dlname (as generated by libtool in libspf2.la;  this seems
to be the only portable way of exporting a dlopen-able path) be accessible
via headers.

I need such feature for the ability to dlopen() libspf from the Exim package,
since Marc objected to linking libspf in directly as I proposed:

  
http://lists.alioth.debian.org/pipermail/pkg-exim4-maintainers/2008-February/007093.html

(as for the Exim side of my changes, I'll try to get them in upstream if
possible;  feel free to let me know what is preferred with your Exim upstream
hat)

Thanks

-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)

Versions of packages libspf2-dev depends on:
ii  libspf2-2                     1.2.5-4    Sender Policy Framework library, w

libspf2-dev recommends no packages.

-- no debconf information
diff -N -x Makefile.in -ur libspf2-1.2.5.dfsg/src/include/gen_spf_lib_dlname.sh 
libspf2-1.2.5.dfsg.new/src/include/gen_spf_lib_dlname.sh
--- libspf2-1.2.5.dfsg/src/include/gen_spf_lib_dlname.sh        1970-01-01 
01:00:00.000000000 +0100
+++ libspf2-1.2.5.dfsg.new/src/include/gen_spf_lib_dlname.sh    2008-02-14 
16:57:48.000000000 +0100
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+. $1
+cat << EOF
+#ifndef INC_SPF_DLNAME
+#define INC_SPF_DLNAME
+
+#define SPF_LIB_DLNAME "$dlname"
+
+#endif
+EOF
diff -N -x Makefile.in -ur libspf2-1.2.5.dfsg/src/include/Makefile.am 
libspf2-1.2.5.dfsg.new/src/include/Makefile.am
--- libspf2-1.2.5.dfsg/src/include/Makefile.am  2004-09-01 00:48:33.000000000 
+0200
+++ libspf2-1.2.5.dfsg.new/src/include/Makefile.am      2008-02-14 
16:57:40.000000000 +0100
@@ -13,11 +13,21 @@
        spf_dns_test.h \
        spf_dns_zone.h \
        spf_lib_version.h \
+       spf_lib_dlname.h \
        spf_log.h \
        spf_record.h \
        spf_request.h \
        spf_response.h \
        spf_server.h
 
+spf_lib_dlname.h: gen_spf_lib_dlname.sh ../../src/libspf2/libspf2.la
+       sh $^ > $@
+
+../../src/libspf2/libspf2.la:
+       $(MAKE) -C ../libspf2 libspf2.la
+
+clean-local:
+       rm -f spf_lib_dlname.h
+
 noinst_HEADERS = spf_internal.h spf_dns_internal.h spf_sys_config.h \
                spf_win32_internal.h spf_win32.h spf_dns_windns.h
diff -N -x Makefile.in -ur libspf2-1.2.5.dfsg/src/libspf2/Makefile.am 
libspf2-1.2.5.dfsg.new/src/libspf2/Makefile.am
--- libspf2-1.2.5.dfsg/src/libspf2/Makefile.am  2004-08-29 17:59:37.000000000 
+0200
+++ libspf2-1.2.5.dfsg.new/src/libspf2/Makefile.am      2008-02-14 
17:00:08.000000000 +0100
@@ -40,6 +40,10 @@
        spf_win32.c
 
 libspf2_la_LIBADD      = $(top_builddir)/src/libreplace/libreplace.la
+libspf2_la_DEPENDENCIES = $(top_builddir)/src/libreplace/libreplace.la
+
+$(top_builddir)/src/libreplace/libreplace.la:
+       $(MAKE) -C $(top_builddir)/src/libreplace libreplace.la
 
 
 

Reply via email to