pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/jimtcl



Module Name:    pkgsrc
Committed By:   kamil
Date:           Mon Oct 31 01:15:12 UTC 2016

Modified Files:
        pkgsrc/lang/jimtcl: Makefile PLIST distinfo
Added Files:
        pkgsrc/lang/jimtcl/patches: patch-auto.def patch-autosetup_cc.tcl

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

Bump PKGREVISION to 1.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/jimtcl/Makefile pkgsrc/lang/jimtcl/PLIST
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/jimtcl/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/jimtcl/patches/patch-auto.def \
    pkgsrc/lang/jimtcl/patches/patch-autosetup_cc.tcl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/jimtcl/Makefile
diff -u pkgsrc/lang/jimtcl/Makefile:1.2 pkgsrc/lang/jimtcl/Makefile:1.3
--- pkgsrc/lang/jimtcl/Makefile:1.2     Tue Oct 25 19:03:05 2016
+++ pkgsrc/lang/jimtcl/Makefile Mon Oct 31 01:15:12 2016
@@ -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/}
 
Index: pkgsrc/lang/jimtcl/PLIST
diff -u pkgsrc/lang/jimtcl/PLIST:1.2 pkgsrc/lang/jimtcl/PLIST:1.3
--- pkgsrc/lang/jimtcl/PLIST:1.2        Tue Oct 25 19:03:05 2016
+++ pkgsrc/lang/jimtcl/PLIST    Mon Oct 31 01:15:12 2016
@@ -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

Index: pkgsrc/lang/jimtcl/distinfo
diff -u pkgsrc/lang/jimtcl/distinfo:1.3 pkgsrc/lang/jimtcl/distinfo:1.4
--- pkgsrc/lang/jimtcl/distinfo:1.3     Tue Oct 25 19:03:05 2016
+++ pkgsrc/lang/jimtcl/distinfo Mon Oct 31 01:15:12 2016
@@ -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

Added files:

Index: pkgsrc/lang/jimtcl/patches/patch-auto.def
diff -u /dev/null pkgsrc/lang/jimtcl/patches/patch-auto.def:1.1
--- /dev/null   Mon Oct 31 01:15:12 2016
+++ pkgsrc/lang/jimtcl/patches/patch-auto.def   Mon Oct 31 01:15:12 2016
@@ -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"
Index: pkgsrc/lang/jimtcl/patches/patch-autosetup_cc.tcl
diff -u /dev/null pkgsrc/lang/jimtcl/patches/patch-autosetup_cc.tcl:1.1
--- /dev/null   Mon Oct 31 01:15:12 2016
+++ pkgsrc/lang/jimtcl/patches/patch-autosetup_cc.tcl   Mon Oct 31 01:15:12 2016
@@ -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