pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/44894: update emulators/hercules to 3.07
The following reply was made to PR pkg/44894; it has been noted by GNATS.
From: Rhialto <rhialto%falu.nl@localhost>
To: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, rhialto%falu.nl@localhost
Subject: Re: pkg/44894: update emulators/hercules to 3.07
Date: Mon, 2 May 2011 20:31:34 +0200
Hi again,
On Mon 02 May 2011 at 07:57:43 +0900, Ryo ONODERA wrote:
> For me, this patch for Makefile.in fixes 'make package'.
> Probably, for solution, editing configure.ac is needed.
> But, if this patch is O.K., I will commit hercules-3.07.
>
> install-exec-hook:
> -@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(libdir)/libherc*.a
> -@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(modexecdir)/dyn*.a
> -@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(modexecdir)/hdt*.a
> +#@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(libdir)/libherc*.a
> +#@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(modexecdir)/dyn*.a
> +#@BUILD_SHARED_TRUE@ rm -f $(DESTDIR)$(modexecdir)/hdt*.a
> @BUILD_SHARED_FALSE@ rm -f $(DESTDIR)$(libdir)/libherc*
I think I have found an even better solution now. There is a Makefile
(.in, .am) variable named XSTATIC which can be patched to "-shared",
and it will be included in the link command line for libraries and
modules:
Makefile.in:
@@ -683,11 +683,11 @@
# -avoid-version : needed.. Otherwise libtool gives crazy names to Windows
# DLLs
#
-@BUILD_SHARED_TRUE@XSTATIC =
+@BUILD_SHARED_TRUE@XSTATIC = -shared
@OPTION_DYNAMIC_LOAD_FALSE@DYNSRC = $(dyndev_SRC)
If set on the linker command line, the .a files are not built at all,
and also not mentioned in the .la files. That was why the "make package"
was complaining: it checked that all library files mentioned in the .la
file were present.
The way Hercules builds the .a files and then not installs them seems
unportable to me.
I have built a package, it took a while, and testing with the "VM/370
sixpack", it works!
I'll see if I can report some of these patches upstream.
The full version of patch-Makefile.in is then:
$NetBSD: patch-Makefile.in,v 1.1 2011/05/01 23:28:58 ryoon Exp $
* Fix build. Use devel/libltdl instead of internal libltdl.
--- Makefile.in.orig 2010-03-07 12:04:49.000000000 +0000
+++ Makefile.in
@@ -304,13 +304,13 @@ libherct_la_OBJECTS = $(am_libherct_la_O
libhercu_la_DEPENDENCIES = $(am__DEPENDENCIES_1) libhercs.la
am__libhercu_la_SOURCES_DIST = version.c hscutl.c hscutl2.c codepage.c \
logger.c logmsg.c hdl.c hostinfo.c hsocket.c memrchr.c \
- parser.c pttrace.c fthreads.c fishhang.c ltdl.c
+ parser.c pttrace.c fthreads.c fishhang.c
am__objects_5 = fthreads.lo
@BUILD_FTHREADS_TRUE@am__objects_8 = $(am__objects_5)
am__objects_6 = fishhang.lo
@BUILD_FISHHANG_TRUE@@BUILD_FTHREADS_TRUE@am__objects_9 = \
@BUILD_FISHHANG_TRUE@@BUILD_FTHREADS_TRUE@ $(am__objects_6)
-@OPTION_DYNAMIC_LOAD_TRUE@am__objects_10 = ltdl.lo
+@OPTION_DYNAMIC_LOAD_TRUE@am__objects_10 =
am_libhercu_la_OBJECTS = version.lo hscutl.lo hscutl2.lo codepage.lo \
logger.lo logmsg.lo hdl.lo hostinfo.lo hsocket.lo memrchr.lo \
parser.lo pttrace.lo $(am__objects_8) $(am__objects_9) \
@@ -614,7 +614,7 @@ AUTOMAKE_OPTIONS = foreign 1.5
ACLOCAL_AMFLAGS = -I m4
lns = @LN_S@
SUBDIRS = decNumber m4 po util html man . crypto
-LDADD = @LTLIBICONV@ @LTLIBINTL@ @LIBS@
+LDADD = @LTLIBICONV@ @LTLIBINTL@ @LIBS@ -lltdl
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/decNumber
@BUILD_HERCIFC_FALSE@HERCIFC =
@BUILD_HERCIFC_TRUE@HERCIFC = hercifc
@@ -683,11 +683,11 @@ dyndev_SRC = commadpt.c \
# -avoid-version : needed.. Otherwise libtool gives crazy names to Windows
# DLLs
#
-@BUILD_SHARED_TRUE@XSTATIC =
+@BUILD_SHARED_TRUE@XSTATIC = -shared
@OPTION_DYNAMIC_LOAD_FALSE@DYNSRC = $(dyndev_SRC)
@OPTION_DYNAMIC_LOAD_TRUE@DYNSRC =
@OPTION_DYNAMIC_LOAD_FALSE@LTDL =
-@OPTION_DYNAMIC_LOAD_TRUE@LTDL = ltdl.c
+@OPTION_DYNAMIC_LOAD_TRUE@LTDL =
@OPTION_DYNAMIC_LOAD_FALSE@DYNMOD_LD_FLAGS =
@OPTION_DYNAMIC_LOAD_TRUE@DYNMOD_LD_FLAGS = -module \
@OPTION_DYNAMIC_LOAD_TRUE@ -no-undefined \
@@ -914,7 +914,6 @@ EXTRA_libherc_la_SOURCES = $(fthreads_SR
$(dynamic_SRC) \
$(extra_SRC) \
$(dyndev_SRC) \
- ltdl.c
libherc_la_LDFLAGS = $(LIB_LD_FLAGS)
libherc_la_LIBADD = libhercs.la \
@@ -1166,7 +1165,6 @@ noinst_HEADERS = fishhang.h \
hdl.h \
crypto.h \
sockdev.h \
- ltdl.h \
herc_getopt.h \
service.h \
chsc.h \
Cheers,
-Olaf.
--
___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you
\X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor
Home |
Main Index |
Thread Index |
Old Index