pkgsrc-WIP-changes archive

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

sparse: don't die when trying to compile with cgcc on netbsd



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Mon Oct 17 16:45:03 2016 +0300
Changeset:	7b799655c917ed27a9f0000a51fa468c9deac108

Modified Files:
	sparse/distinfo
	sparse/patches/patch-cgcc

Log Message:
sparse: don't die when trying to compile with cgcc on netbsd

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7b799655c917ed27a9f0000a51fa468c9deac108

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

diffstat:
 sparse/distinfo           |  2 +-
 sparse/patches/patch-cgcc | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diffs:
diff --git a/sparse/distinfo b/sparse/distinfo
index 4c97a9d..1b287f6 100644
--- a/sparse/distinfo
+++ b/sparse/distinfo
@@ -5,7 +5,7 @@ RMD160 (sparse-0.5.0.tar.gz) = 566823986ca01eb924b74b03496b772972d3314a
 SHA512 (sparse-0.5.0.tar.gz) = 6c21735a4c9548771d51a8f22256122ee6f17489e830efd9b94ba28f58ee07038db4a55b13114b9ff9a70dbed7a668cab26275761ee12ff9be62a272c6be4221
 Size (sparse-0.5.0.tar.gz) = 239809 bytes
 SHA1 (patch-Makefile) = 2f31f0b28bf64b6c24fff2cd786f420f853222fb
-SHA1 (patch-cgcc) = 2525546ee8ea3ed52b3f3adc33add0365cf5cf49
+SHA1 (patch-cgcc) = 8d2cf687563fcc623b15d327908fd1b6dd81b1ea
 SHA1 (patch-dissect.h) = 75f6216fdd1776621181e82ffd610138c1811a9b
 SHA1 (patch-lib.c) = 4531f9125af693d6d8b752c7ea1829ccb62f6bf1
 SHA1 (patch-pre-process.c) = a30be7c701ac8933f93a4021593dcdb61ed5ec0c
diff --git a/sparse/patches/patch-cgcc b/sparse/patches/patch-cgcc
index 2787c38..50c0fb1 100644
--- a/sparse/patches/patch-cgcc
+++ b/sparse/patches/patch-cgcc
@@ -1,5 +1,8 @@
 $NetBSD$
 
+don't hard code perl
+don't die on netbsd unknown spec
+
 --- cgcc.orig	2014-02-16 22:44:57.000000000 +0000
 +++ cgcc
 @@ -1,4 +1,5 @@
@@ -9,3 +12,12 @@ $NetBSD$
  # -----------------------------------------------------------------------------
  
  my $cc = $ENV{'REAL_CC'} || 'cc';
+@@ -221,7 +222,7 @@ sub add_specs {
+     } elsif ($spec eq 'linux') {
+ 	return &add_specs ('unix') .
+ 	    ' -D__linux__=1 -D__linux=1 -Dlinux=linux';
+-    } elsif ($spec eq 'openbsd') {
++    } elsif (($spec eq 'openbsd') || ($spec eq 'netbsd')) {
+ 	return &add_specs ('unix') .
+ 	    ' -D__OpenBSD__=1';
+     } elsif ($spec eq 'unix') {


Home | Main Index | Thread Index | Old Index