pan2 did not install on SnowLeopard and Xode 4
David Evans
devans at macports.org
Sat Sep 5 10:38:22 PDT 2015
On 9/5/15 10:10 AM, FritzS - gmx wrote:
>
>> Am 05.09.2015 um 15:51 schrieb David Evans <devans at macports.org>:
>>
>> On 9/4/15 6:17 PM, Ryan Schmidt wrote:
>>>
>>> On Sep 4, 2015, at 12:56 AM, FritzS wrote:
>>>
>>>> I hope you could resolve the problem with the pan2 installation
>>>
>>> It is not our problem to resolve. The developers of pan2 need to make their code compatible with libc++. But they have not responded to the bug report I filed about this in 2013:
>>>
>>> https://bugzilla.gnome.org/show_bug.cgi?id=712539
>>>
>>>> the current sources from pan are older - 29-Jun-2012 22:31
>>>>
>>>> http://pan.rebelbase.com/download/releases/0.139/source/
>>>> or
>>>> https://git.gnome.org/browse/pan2/
>>>>
>>>> The general problem, many developer had stopped the develop of usenet reader too, unfortunately usenet is going down.
>>>
>>>
>>> It looks like development of pan2 has not necessarily stopped, since there are commits to the repository as recently as 4 months ago:
>>>
>>> https://git.gnome.org/browse/pan2/log/
>>>
>>> However, even the latest code in the repository still fails to build with libc++ with the same error.
>>>
>>> If you want the problem resolved, either you need to fix their code to work with libc++, or you need to convince the developers of pan2 to do so.
>>>
>>>
>>
>> Ryan --
>>
>> I can confirm that the current git master (version 0.140, gtk2 build, dated 2015-05-15, not yet released) fails to build
>> on Yosemite using the default libc++. However, it does build and run with libstdc++ using
>>
>> configure.cxx_stdlib libstdc++
>>
>> because none of its dependencies use libc++.
>>
>> Since it's not likely that any other port using libc++ will have a binary dependency on pan2, isn't this a permissible
>> configuration for this port on Mavericks and Yosemite until the libc++ issue is addressed upstream? Haven't checked
>> whether this will work on El Capitan as yet.
>>
>> Dave
>>
>
> Dave,
> have you an run-able portfile for pan 0.140 that I could test under Yosemite too?
> https://trac.macports.org/browser/trunk/dports/news/pan2/Portfile
>
Patch against current pan2 Portfile attached.
This just a working patch for now. In a final version, I would want to add variants to support gnutls and gtk3 as
options but I haven't tested that as yet. I also need to test against El Capitan public beta. I'm not sure if it still
supports libstdc++ as an option.
Dave
-------------- next part --------------
Index: Portfile
===================================================================
--- Portfile (revision 139989)
+++ Portfile (working copy)
@@ -4,7 +4,9 @@
PortSystem 1.0
name pan2
-version 0.139
+set git_commit af878257ee5dba08a350e2a8f73493b661a4320f
+set git_commit_date 20150515
+version 0.140-${git_commit_date}
categories news
license GPL-2
platforms darwin
@@ -16,13 +18,13 @@
the Agent newsreader for Windows OSes.
homepage http://pan.rebelbase.com/
-master_sites http://pan.rebelbase.com/download/releases/${version}/source/
+master_sites https://git.gnome.org/browse/${name}/snapshot/
-distname pan-${version}
-use_bzip2 yes
+distname ${name}-${git_commit}
+use_xz yes
-checksums rmd160 e0e2963b2d11b362201639ca755ad9ae43581c2f \
- sha256 bf5f320f997f582d7ac823e3e854393307161a92e7014d2135e6e2674d144bb9
+checksums rmd160 d7198cbf3602ba492f6b7d005edfc90fe913d254 \
+ sha256 3b8b6dc0047433aa92c42cbff23997f4e444ace48449e529654921f7eb389a9a
depends_build port:pkgconfig \
port:intltool \
@@ -37,8 +39,6 @@
port:gtkspell2 \
port:libiconv
-patchfiles patch-pan-gui-gui.cc.diff
-
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
post-patch {
@@ -45,6 +45,10 @@
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}
+if {${configure.cxx_stdlib} eq "libc++"} {
+ configure.cxx_stdlib libstdc++
+}
+
configure.cmd ./autogen.sh
configure.args --disable-silent-rules
Index: files/patch-pan-gui-gui.cc.diff
===================================================================
--- files/patch-pan-gui-gui.cc.diff (revision 139989)
+++ files/patch-pan-gui-gui.cc.diff (nonexistent)
@@ -1,13 +0,0 @@
---- pan/gui/gui.cc.orig 2012-06-29 17:24:54.000000000 -0500
-+++ pan/gui/gui.cc 2013-11-17 10:00:46.000000000 -0600
-@@ -2223,8 +2223,8 @@
-
- // build the tooltip
- // todo : perhaps fix this for mac osx automatically....
-- gulong queued, unused, stopped;
-- guint64 KiB_remain;
-+ long unsigned int queued, unused, stopped; //SKG MacPorts can't find function
-+ uint64_t KiB_remain; //SKG using gulong and guint64 types.
- double KiBps;
- int hr, min, sec;
- _queue.get_stats (queued, unused, stopped,
More information about the macports-users
mailing list