diff options
author | joerg <joerg> | 2005-12-12 18:04:47 +0000 |
---|---|---|
committer | joerg <joerg> | 2005-12-12 18:04:47 +0000 |
commit | 2e101b9e29afa4630c680758830f152ea15f4ac6 (patch) | |
tree | 1499c2212af78129203782d676a9ac221eaae89e /x11/p5-Tk/patches | |
parent | b4610a020210078fe60513c7b24963f049e2715f (diff) | |
download | pkgsrc-2e101b9e29afa4630c680758830f152ea15f4ac6.tar.gz |
Fix errno and linkage on DragonFly. Fix dependency detection problem
on DragonFly, it needs to pickup png.h correctly.
Diffstat (limited to 'x11/p5-Tk/patches')
-rw-r--r-- | x11/p5-Tk/patches/patch-aa | 12 | ||||
-rw-r--r-- | x11/p5-Tk/patches/patch-ad | 7 | ||||
-rw-r--r-- | x11/p5-Tk/patches/patch-ae | 18 |
3 files changed, 31 insertions, 6 deletions
diff --git a/x11/p5-Tk/patches/patch-aa b/x11/p5-Tk/patches/patch-aa index 1df31434af0..cd06d866c2c 100644 --- a/x11/p5-Tk/patches/patch-aa +++ b/x11/p5-Tk/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2004/03/22 12:27:19 wiz Exp $ +$NetBSD: patch-aa,v 1.3 2005/12/12 18:04:47 joerg Exp $ ---- Tk/MMutil.pm.orig Wed Dec 10 20:49:23 2003 +--- Tk/MMutil.pm.orig 2004-03-27 14:55:55.000000000 +0000 +++ Tk/MMutil.pm -@@ -301,7 +301,7 @@ sub const_config +@@ -306,10 +306,13 @@ sub const_config } $self->{'LDFLAGS'} =~ s/-flat_namespace//; $self->{'LDFLAGS'} =~ s/-undefined\s+suppress//; @@ -11,3 +11,9 @@ $NetBSD: patch-aa,v 1.2 2004/03/22 12:27:19 wiz Exp $ { # -Bforcearchive is bad news for Tk - we don't want all of libpTk.a in all .so-s. $self->{'LDDLFLAGS'} =~ s/-Bforcearchive\s*//g; ++ } elsif ($^O =~ /(.*dragonfly)/i) { ++ # -Bforcearchive is bad news for Tk - we don't want all of libpTk.a in all .so-s. ++ $self->{'LDDLFLAGS'} =~ s/-Bforcearchive\s*//g; + } + return $self->MM::const_config; + } diff --git a/x11/p5-Tk/patches/patch-ad b/x11/p5-Tk/patches/patch-ad index d31a863b0f0..8fb32e98f48 100644 --- a/x11/p5-Tk/patches/patch-ad +++ b/x11/p5-Tk/patches/patch-ad @@ -1,6 +1,6 @@ -$NetBSD: patch-ad,v 1.1 2004/12/25 14:00:10 wiz Exp $ +$NetBSD: patch-ad,v 1.2 2005/12/12 18:04:47 joerg Exp $ ---- PNG/Makefile.PL.orig 2004-12-25 04:02:48.000000000 +0100 +--- PNG/Makefile.PL.orig 2003-12-30 10:45:03.000000000 +0000 +++ PNG/Makefile.PL @@ -1,7 +1,6 @@ use strict; @@ -10,7 +10,7 @@ $NetBSD: patch-ad,v 1.1 2004/12/25 14:00:10 wiz Exp $ use File::Copy; my $l = $Config::Config{'lib_ext'}; -@@ -14,68 +13,14 @@ foreach my $file (qw(zlib/Makefile.PL li +@@ -14,68 +13,15 @@ foreach my $file (qw(zlib/Makefile.PL li unlink($file); } @@ -24,6 +24,7 @@ $NetBSD: patch-ad,v 1.1 2004/12/25 14:00:10 wiz Exp $ dist => { COMPRESS => 'gzip -f9', SUFFIX => '.gz' }, OBJECT => '$(O_FILES)', - INC => '-I/usr/local/include', ++ INC => '-I%%LOCALBASE%%/include', LIBS => ['-lpng -lz -lm'], ); - } diff --git a/x11/p5-Tk/patches/patch-ae b/x11/p5-Tk/patches/patch-ae new file mode 100644 index 00000000000..db56c2f1056 --- /dev/null +++ b/x11/p5-Tk/patches/patch-ae @@ -0,0 +1,18 @@ +$NetBSD: patch-ae,v 1.1 2005/12/12 18:04:47 joerg Exp $ + +--- pTk/mTk/unix/tkUnixPort.h.orig 2005-12-12 15:53:24.000000000 +0000 ++++ pTk/mTk/unix/tkUnixPort.h +@@ -134,13 +134,6 @@ + #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS) + + /* +- * Not all systems declare the errno variable in errno.h. so this +- * file does it explicitly. +- */ +- +-extern int errno; +- +-/* + * Define "NBBY" (number of bits per byte) if it's not already defined. + */ + |