File:
[cvs.NetBSD.org] /
pkgsrc /
x11 /
blt /
patches /
patch-ae
Revision
1.9:
download - view:
text,
annotated -
select for diffs
Mon Jun 6 04:27:14 2022 UTC (2 years, 5 months ago) by
dholland
Branches:
MAIN
CVS tags:
pkgsrc-2024Q3-base,
pkgsrc-2024Q3,
pkgsrc-2024Q2-base,
pkgsrc-2024Q2,
pkgsrc-2024Q1-base,
pkgsrc-2024Q1,
pkgsrc-2023Q4-base,
pkgsrc-2023Q4,
pkgsrc-2023Q3-base,
pkgsrc-2023Q3,
pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4,
pkgsrc-2022Q3-base,
pkgsrc-2022Q3,
pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
HEAD
Patch up x11/blt some.
Most importantly, fix up what it passes to the TCL package handling
functions, since as it was the library won't initialize. I can't
remember when this changed in TCL but I've seen the same issue
before... years ago. This library has likely been inoperable all that
time.
Patch up a whole bunch of build warnings, some significant.
However, it probably still doesn't work and in addition to a lot more
routine build issues it needs attention from someone who knows more
tcl than me.
Bump PKGREVISION (to 13). I'm not going to bump the handful of
dependent packages since I don't think I've done anything to change
the interface, plus they're all likely inoperable anyway given how
broken this thing looks.
Prerequisite for checking PR 32807 for currency, since it depends on
blt and blt won't load. But I rather imagine the problem seen at the
time was blt dumping core.
$NetBSD: patch-ae,v 1.9 2022/06/06 04:27:14 dholland Exp $
--- configure.orig 2002-10-04 05:33:59.000000000 +0000
+++ configure
@@ -3384,8 +3384,8 @@ case $target in
TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
;;
*)
- TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
- TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
+ TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
+ TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
;;
esac
@@ -4072,7 +4072,8 @@ fi
EXTRA_LIB_SPECS="-ldl"
;;
- *-netbsd*|*-freebsd*|*-openbsd*)
+ *-netbsd*|*-freebsd*|*-openbsd*|*-dragonfly*)
+ EXTRA_LIB_SPECS="$PTHREAD_LDFLAGS"
# Not available on all versions: check for include file.
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
@@ -4109,9 +4110,10 @@ test_ok=no
fi
if test "$test_ok" = yes; then
+ LDFLAGS="-L${prefix}/lib -L${X11BASE}/lib -Wl,-R${prefix}/lib -Wl,-R${X11BASE}/lib ${LDF}"
SHLIB_CFLAGS="-fpic"
SHLIB_LD="ld"
- SHLIB_LD_FLAGS="-Bshareable -x"
+ SHLIB_LD_FLAGS="-Bshareable -x -R${prefix}/lib -R${X11BASE}/lib ${LDF}"
fi
;;
@@ -4181,9 +4183,9 @@ fi
*-solaris2*)
SHLIB_CFLAGS="-KPIC"
- if test "${blt_with_gnu_ld}" = "yes" -a "$blt_have_gcc" = "yes" ; then
+ if test "$blt_have_gcc" = "yes" ; then
SHLIB_LD="gcc"
- SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@'
+ SHLIB_LD_FLAGS='-shared -Wl,-soname,$@'
LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
else
SHLIB_LD="/usr/ccs/bin/ld"
CVSweb <webmaster@jp.NetBSD.org>