pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/jimtcl Backport upstream patches to fix backtrace...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ac2a1722dac
branches:  trunk
changeset: 354465:1ac2a1722dac
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Mon Oct 31 01:15:12 2016 +0000

description:
Backport upstream patches to fix backtrace(3) detection on NetBSD

Bump PKGREVISION to 1.

diffstat:

 lang/jimtcl/Makefile                       |   3 +-
 lang/jimtcl/PLIST                          |   2 +-
 lang/jimtcl/distinfo                       |   4 +-
 lang/jimtcl/patches/patch-auto.def         |  24 +++++++++++++
 lang/jimtcl/patches/patch-autosetup_cc.tcl |  54 ++++++++++++++++++++++++++++++
 5 files changed, 84 insertions(+), 3 deletions(-)

diffs (120 lines):

diff -r 1af8c8a736ff -r 1ac2a1722dac lang/jimtcl/Makefile
--- a/lang/jimtcl/Makefile      Sun Oct 30 20:55:39 2016 +0000
+++ b/lang/jimtcl/Makefile      Mon Oct 31 01:15:12 2016 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2016/10/25 19:03:05 kamil Exp $
+# $NetBSD: Makefile,v 1.3 2016/10/31 01:15:12 kamil Exp $
 
 DISTNAME=      jimtcl-0.77
+PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=msteveb/}
 
diff -r 1af8c8a736ff -r 1ac2a1722dac lang/jimtcl/PLIST
--- a/lang/jimtcl/PLIST Sun Oct 30 20:55:39 2016 +0000
+++ b/lang/jimtcl/PLIST Mon Oct 31 01:15:12 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2016/10/25 19:03:05 kamil Exp $
+@comment $NetBSD: PLIST,v 1.3 2016/10/31 01:15:12 kamil Exp $
 bin/build-jim-ext
 bin/jimsh
 include/jim-config.h
diff -r 1af8c8a736ff -r 1ac2a1722dac lang/jimtcl/distinfo
--- a/lang/jimtcl/distinfo      Sun Oct 30 20:55:39 2016 +0000
+++ b/lang/jimtcl/distinfo      Mon Oct 31 01:15:12 2016 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.3 2016/10/25 19:03:05 kamil Exp $
+$NetBSD: distinfo,v 1.4 2016/10/31 01:15:12 kamil Exp $
 
 SHA1 (jimtcl-0.77.tar.gz) = 12f921997c140593b2dc82885fb15c2dad8012f0
 RMD160 (jimtcl-0.77.tar.gz) = d6004a841d8032b23a81d72b849c37ff3682a1e8
 SHA512 (jimtcl-0.77.tar.gz) = 47c50abcb06917ec85c19c3ff553bfc635c9fcc4e9ec707d8454adffade071e1f0051ee24b9a9d1dc7b83f5794229629b2de4eb37d0e3e8d6a1ba6bd72564901
 Size (jimtcl-0.77.tar.gz) = 2925776 bytes
+SHA1 (patch-auto.def) = 80ceb87a43873cd159486a04256efa60757bca85
+SHA1 (patch-autosetup_cc.tcl) = 690c50dc850d09655f002fa72f0a2299a560fa65
diff -r 1af8c8a736ff -r 1ac2a1722dac lang/jimtcl/patches/patch-auto.def
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/jimtcl/patches/patch-auto.def        Mon Oct 31 01:15:12 2016 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-auto.def,v 1.1 2016/10/31 01:15:12 kamil Exp $
+
+Backport upstream patch:
+
+From b7efe69818d2d12c0f004a5aaca70cd2ed2f388a Mon Sep 17 00:00:00 2001
+From: Steve Bennett <steveb%workware.net.au@localhost>
+Date: Wed, 26 Oct 2016 19:50:35 +1000
+Subject: [PATCH] build: On NetBSD backtrace is in -lexecinfo
+
+Signed-off-by: Steve Bennett <steveb%workware.net.au@localhost>
+
+--- auto.def.orig      2016-10-31 01:07:00.830631530 +0000
++++ auto.def
+@@ -106,6 +106,10 @@ cc-check-functions regcomp waitpid sigac
+ cc-check-functions syslog opendir readlink sleep usleep pipe getaddrinfo utimes
+ cc-check-functions shutdown socketpair isinf isnan link symlink fsync dup
+ 
++if {[cc-check-function-in-lib backtrace execinfo]} {
++    define-append LDLIBS [get-define lib_backtrace]
++}
++
+ if {[cc-check-functions sysinfo]} {
+     cc-with {-includes sys/sysinfo.h} {
+         cc-check-members "struct sysinfo.uptime"
diff -r 1af8c8a736ff -r 1ac2a1722dac lang/jimtcl/patches/patch-autosetup_cc.tcl
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/jimtcl/patches/patch-autosetup_cc.tcl        Mon Oct 31 01:15:12 2016 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-autosetup_cc.tcl,v 1.1 2016/10/31 01:15:12 kamil Exp $
+
+Backport upstream patch:
+
+From 7d5a6e3b6f19a5c9260c131f428711320da452a0 Mon Sep 17 00:00:00 2001
+From: Steve Bennett <steveb%workware.net.au@localhost>
+Date: Wed, 26 Oct 2016 19:52:06 +1000
+Subject: [PATCH] build: update autosetup for LIBS/LDFLAGS fix
+
+       343be844 cc tests should use LIBS and LDFLAGS
+
+Signed-off-by: Steve Bennett <steveb%workware.net.au@localhost>
+
+--- autosetup/cc.tcl.orig      2016-09-04 04:14:05.000000000 +0000
++++ autosetup/cc.tcl
+@@ -210,7 +210,7 @@ proc cc-check-members {args} {
+ #
+ # If the function is found, the feature is defined and lib_$function is defined
+ # to -l$lib where the function was found, or "" if no library required.
+-# In addition, -l$lib is added to the LIBS define.
++# In addition, -l$lib is prepended to the LIBS define.
+ #
+ # If additional libraries may be needed for linking, they should be specified
+ # as $extralibs as "-lotherlib1 -lotherlib2".
+@@ -232,7 +232,8 @@ proc cc-check-function-in-lib {function 
+                                       if {[cctest_function $function]} {
+                                               msg-result -l$lib
+                                               define lib_$function -l$lib
+-                                              define-append LIBS -l$lib
++                                              # prepend to LIBS
++                                              define LIBS "-l$lib [get-define LIBS]"
+                                               incr found
+                                               break
+                                       }
+@@ -498,13 +499,17 @@ proc cctest {args} {
+               }
+       }
+ 
+-      if {!$opts(-link)} {
++      if {$opts(-link)} {
++              lappend cmdline {*}[get-define LDFLAGS]
++      } else {
+               set tmp conftest__.o
+               lappend cmdline -c
+       }
+       lappend cmdline {*}$opts(-cflags) {*}[get-define cc-default-debug ""]
+-
+       lappend cmdline $src -o $tmp {*}$opts(-libs)
++      if {$opts(-link)} {
++              lappend cmdline {*}[get-define LIBS]
++      }
+ 
+       # At this point we have the complete command line and the
+       # complete source to be compiled. Get the result from cache if



Home | Main Index | Thread Index | Old Index