pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2015Q1]: pkgsrc/editors/p5-Wx-Scintilla Pullup ticket #4683 - ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ea179bd78c73
branches:  pkgsrc-2015Q1
changeset: 649190:ea179bd78c73
user:      hiramatsu <hiramatsu%pkgsrc.org@localhost>
date:      Sat Apr 25 04:04:43 2015 +0000

description:
Pullup ticket #4683 - requested by joerg
editors/p5-Wx-Scintilla: link fix patch

Revisions pulled up:
- editors/p5-Wx-Scintilla/distinfo                              1.3
- editors/p5-Wx-Scintilla/patches/patch-aa                      1.3

---
   Module Name: pkgsrc
   Committed By:        joerg
   Date:                Fri Apr 17 15:22:44 UTC 2015

   Modified Files:
        pkgsrc/editors/p5-Wx-Scintilla: distinfo
        pkgsrc/editors/p5-Wx-Scintilla/patches: patch-aa

   Log Message:
   Don't depend on ${PREFIX}/lib to be added implicitly by the wrappers.
   Don't use empty arguments to -o.

diffstat:

 editors/p5-Wx-Scintilla/distinfo         |   4 +-
 editors/p5-Wx-Scintilla/patches/patch-aa |  35 +++++++++++++++++++++++++++++--
 2 files changed, 34 insertions(+), 5 deletions(-)

diffs (57 lines):

diff -r 147408ab666a -r ea179bd78c73 editors/p5-Wx-Scintilla/distinfo
--- a/editors/p5-Wx-Scintilla/distinfo  Fri Apr 24 16:18:39 2015 +0000
+++ b/editors/p5-Wx-Scintilla/distinfo  Sat Apr 25 04:04:43 2015 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2012/09/13 14:16:44 sno Exp $
+$NetBSD: distinfo,v 1.2.22.1 2015/04/25 04:04:43 hiramatsu Exp $
 
 SHA1 (Wx-Scintilla-0.39.tar.gz) = 40cb8b7b7ae0b8bb418d7c885022b821369ce42e
 RMD160 (Wx-Scintilla-0.39.tar.gz) = d487ca7bb79ca5581f36fb8ca6e7a1a6649522ba
 Size (Wx-Scintilla-0.39.tar.gz) = 848565 bytes
-SHA1 (patch-aa) = 67dd553cb7af54ce9aa7a6521f4e9c1c2949cc00
+SHA1 (patch-aa) = 8a29fa976b82e426c7f04ab989d20e591ae1c635
diff -r 147408ab666a -r ea179bd78c73 editors/p5-Wx-Scintilla/patches/patch-aa
--- a/editors/p5-Wx-Scintilla/patches/patch-aa  Fri Apr 24 16:18:39 2015 +0000
+++ b/editors/p5-Wx-Scintilla/patches/patch-aa  Sat Apr 25 04:04:43 2015 +0000
@@ -1,9 +1,38 @@
-$NetBSD: patch-aa,v 1.2 2012/09/13 14:16:44 sno Exp $
-# some ldld's doesn't seem to understand $ORIGIN
+$NetBSD: patch-aa,v 1.2.22.1 2015/04/25 04:04:43 hiramatsu Exp $
+
+- Don't use $ORIGIN, it violates pkgsrc policy.
+- Obtain additional linker flags to not depend on implicit ${PREFIX}/lib.
 
 --- inc/Module/Build/Scintilla/GTK.pm.orig     2012-09-04 10:20:47.000000000 +0000
 +++ inc/Module/Build/Scintilla/GTK.pm
-@@ -146,7 +146,7 @@ sub stc_link_xs {
+@@ -86,7 +86,7 @@ sub stc_extra_scintilla_libs {
+       my $extras = '-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lpangoft2-1.0 ';
+       $extras .= '-lgdk_pixbuf-2.0 -lm -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 ';
+       $extras .= '-lgmodule-2.0 -lgthread-2.0 -lglib-2.0';
+-      return $extras;
++      return Alien::wxWidgets->libraries(qw(core base)) . ' ' . $extras;
+ }
+ 
+ sub stc_link_scintilla_objects {
+@@ -95,8 +95,7 @@ sub stc_link_scintilla_objects {
+       my @cmd = (
+               $self->stc_linker,
+               $self->stc_ldflags,
+-              '-fPIC -shared',
+-              ' -o ' . $shared_lib,
++              $shared_lib,
+               join( ' ', @$objects ),
+               $self->stc_link_paths,
+               $self->stc_extra_scintilla_libs,
+@@ -139,14 +138,14 @@ sub stc_link_xs {
+       my @cmd = (
+               Alien::wxWidgets->linker,
+               Alien::wxWidgets->link_flags,
++              '-o', $dll,
+               $Config{lddlflags},
+               '-fPIC -L.',
+-              '-s -o ' . $dll,
+               'Scintilla.o',
                '-Lblib/arch/auto/Wx/Scintilla ' . $self->stc_scintilla_link,
                Alien::wxWidgets->libraries(qw(core base)),
                $Config{perllibs},



Home | Main Index | Thread Index | Old Index