diff options
author | dholland <dholland@pkgsrc.org> | 2011-12-20 17:22:25 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2011-12-20 17:22:25 +0000 |
commit | 3127811a140a5a3d51adbfd733679028925f8214 (patch) | |
tree | 62c5fca3de95b703518912ad5751d099a24c776a /converters | |
parent | 77e5edd0f4e51faa4d86b8f9a3ade5fbb169aafd (diff) | |
download | pkgsrc-3127811a140a5a3d51adbfd733679028925f8214.tar.gz |
Include lib/error.c in librecode.so, or else librecode.so ends up with
an undefined symbol "error". Fix mostly from PR 32253, from Evaldo
Gardenali, six years ago. (sigh)
PKGREVISION -> 6
Diffstat (limited to 'converters')
-rw-r--r-- | converters/recode/Makefile | 7 | ||||
-rw-r--r-- | converters/recode/distinfo | 3 | ||||
-rw-r--r-- | converters/recode/patches/patch-src_Makefile_in | 51 |
3 files changed, 58 insertions, 3 deletions
diff --git a/converters/recode/Makefile b/converters/recode/Makefile index 2d29e187deb..dedbd0b0e66 100644 --- a/converters/recode/Makefile +++ b/converters/recode/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.29 2011/08/26 08:13:44 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2011/12/20 17:22:25 dholland Exp $ # DISTNAME= recode-3.6 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= converters MASTER_SITES= ${MASTER_SITE_GNU:=recode/} @@ -20,5 +20,8 @@ BROKEN_GETTEXT_DETECTION= yes INFO_FILES= yes +post-extract: + ${CP} ${WRKSRC}/lib/error.c ${WRKSRC}/src/error.c + .include "../../devel/gettext-lib/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/converters/recode/distinfo b/converters/recode/distinfo index 050d7d874f3..edd95affd0d 100644 --- a/converters/recode/distinfo +++ b/converters/recode/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.7 2011/08/26 08:13:44 wiz Exp $ +$NetBSD: distinfo,v 1.8 2011/12/20 17:22:25 dholland Exp $ SHA1 (recode-3.6.tar.gz) = 2de90cd2ba553bc07d75a29913ea4424dd9e616b RMD160 (recode-3.6.tar.gz) = 97dcb2544472c9025689452a94bed98ea36374b5 Size (recode-3.6.tar.gz) = 1751886 bytes SHA1 (patch-aa) = bc1fcbced4af16cb059beabbc34009e3dcd960d7 +SHA1 (patch-src_Makefile_in) = 7f0d2a585aa18af817c221a2c4934550fdb5c7e6 SHA1 (patch-src_recodext.h) = f404830d5573e86ce5f9c9ce6477110f6c9dc1c0 diff --git a/converters/recode/patches/patch-src_Makefile_in b/converters/recode/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..79f9235cfeb --- /dev/null +++ b/converters/recode/patches/patch-src_Makefile_in @@ -0,0 +1,51 @@ +$NetBSD: patch-src_Makefile_in,v 1.1 2011/12/20 17:22:25 dholland Exp $ + +Include lib/error.c in librecode.so, or else librecode.so ends up with +an undefined symbol "error". Fix mostly from PR 32253. + +--- src/Makefile.in.orig 2001-01-22 18:14:16.000000000 +0000 ++++ src/Makefile.in +@@ -129,7 +129,7 @@ L_SURFACES = + recode_SOURCES = main.c freeze.c mixed.c + recode_LDADD = librecode.la ../lib/libreco.a + +-librecode_la_SOURCES = argmatch.c charname.c combine.c fr-charname.c hash.c iconv.c libiconv.c localcharset.c merged.c names.c outer.c quotearg.c recode.c request.c strip-pool.c task.c xmalloc.c $(C_STEPS) ++librecode_la_SOURCES = argmatch.c charname.c combine.c fr-charname.c hash.c iconv.c libiconv.c localcharset.c merged.c names.c outer.c quotearg.c recode.c request.c strip-pool.c task.c xmalloc.c error.c $(C_STEPS) + + librecode_la_LDFLAGS = -version-info 0:0:0 + +@@ -165,7 +165,7 @@ ebcdic$U.lo ibmpc$U.lo iconqnx$U.lo lat1 + strip-data$U.lo testdump$U.lo ucs$U.lo utf16$U.lo utf7$U.lo utf8$U.lo \ + varia$U.lo vn$U.lo flat$U.lo html$U.lo lat1ltex$U.lo lat1txte$U.lo \ + rfc1345$U.lo texinfo$U.lo base64$U.lo dump$U.lo endline$U.lo \ +-permut$U.lo quoted$U.lo ++permut$U.lo quoted$U.lo error$U.lo + PROGRAMS = $(bin_PROGRAMS) + + recode_OBJECTS = main$U.o freeze$U.o mixed$U.o +@@ -419,6 +419,8 @@ vn_.c: vn.c $(ANSI2KNR) + $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/vn.c; then echo $(srcdir)/vn.c; else echo vn.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > vn_.c + xmalloc_.c: xmalloc.c $(ANSI2KNR) + $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xmalloc.c; then echo $(srcdir)/xmalloc.c; else echo xmalloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xmalloc_.c ++error_.c: error.c $(ANSI2KNR) ++ $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/error.c; then echo $(srcdir)/error.c; else echo error.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > error_.c + african_.o african_.lo afrtran_.o afrtran_.lo applemac_.o applemac_.lo \ + argmatch_.o argmatch_.lo atarist_.o atarist_.lo bangbang_.o \ + bangbang_.lo base64_.o base64_.lo cdcnos_.o cdcnos_.lo charname_.o \ +@@ -435,7 +437,7 @@ request_.o request_.lo rfc1345_.o rfc134 + strip-data_.lo strip-pool_.o strip-pool_.lo task_.o task_.lo \ + testdump_.o testdump_.lo texinfo_.o texinfo_.lo ucs_.o ucs_.lo utf16_.o \ + utf16_.lo utf7_.o utf7_.lo utf8_.o utf8_.lo varia_.o varia_.lo vn_.o \ +-vn_.lo xmalloc_.o xmalloc_.lo : $(ANSI2KNR) ++vn_.lo xmalloc_.o xmalloc_.lo error_.lo : $(ANSI2KNR) + + install-man1: + $(mkinstalldirs) $(DESTDIR)$(man1dir) +@@ -690,6 +692,7 @@ varia.lo varia.o : varia.c common.h ../c + vn.lo vn.o : vn.c common.h ../config.h xalloc.h argmatch.h \ + ../lib/error.h recodext.h recode.h + xmalloc.lo xmalloc.o : xmalloc.c ../config.h ../lib/error.h xalloc.h ++error.lo error.o : ../lib/error.h + + info-am: + info: info-am |