Bug 176887 - news/pan is broken
Summary: news/pan is broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 18:10 UTC by Lowell Gilbert
Modified: 2013-03-12 19:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lowell Gilbert 2013-03-12 18:10:00 UTC
The news/pan port does not build. 

The problem is a function signature from iconv. I'm not sure whether
it would work with the base version of libiconv.

All of my ports claim to be up to date.

Fix: 

No idea yet. 

I'm checking whether there may be missing dependencies on the gtk or glib updates.
How-To-Repeat: 
Building port ends with:

gmake[3]: Entering directory `/usr/ports/news/pan/work/pan-0.139/pan/usenet-utils'
  CXX    filter-info.o
  CXX    rules-info.o
  CXX    gnksa.o
  CXX    message-check.o
  CXX    mime-utils.o
mime-utils.cc: In function 'char* pan::__g_mime_iconv_strndup(void*, const char*, size_t, const char*)':
mime-utils.cc:80: error: invalid conversion from 'char**' to 'const char**'
mime-utils.cc:80: error:   initializing argument 2 of 'size_t libiconv(void*, const char**, size_t*, char**, size_t*)'
gmake[3]: *** [mime-utils.o] Error 1
gmake[3]: Leaving directory `/usr/ports/news/pan/work/pan-0.139/pan/usenet-utils'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/news/pan/work/pan-0.139/pan'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/news/pan/work/pan-0.139'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/news/pan.
*** [build] Error code 1

Stop in /usr/ports/news/pan.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-12 18:10:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-12 18:58:50 UTC
Author: kwm
Date: Tue Mar 12 18:58:38 2013
New Revision: 313998
URL: http://svnweb.freebsd.org/changeset/ports/313998

Log:
  Fix fix compiler error by adding patch from upstream.
  
  PR:		ports/176887
  Submitted by:	Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
  Obtained from:	pan upstream

Added:
  head/news/pan/files/
  head/news/pan/files/patch-pan_usenet-utils_mime-utils.cc   (contents, props changed)

Added: head/news/pan/files/patch-pan_usenet-utils_mime-utils.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/pan/files/patch-pan_usenet-utils_mime-utils.cc	Tue Mar 12 18:58:38 2013	(r313998)
@@ -0,0 +1,14 @@
+--- pan/usenet-utils/mime-utils.cc.orig	2013-03-12 18:24:13.000000000 +0000
++++ pan/usenet-utils/mime-utils.cc	2013-03-12 18:25:19.000000000 +0000
+@@ -77,7 +77,11 @@
+       outbuf = out + converted;
+       outleft = outlen - converted;
+ 
++#if defined(__NetBSD__) || defined(__FreeBSD__)
++      converted = iconv (cd, &inbuf, &inleft, &outbuf, &outleft);
++#else
+       converted = iconv (cd, (char **) &inbuf, &inleft, &outbuf, &outleft);
++#endif
+ 
+       if (converted != (size_t) -1 && errno == 0) {
+         /*
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Koop Mast freebsd_committer freebsd_triage 2013-03-12 18:58:53 UTC
State Changed
From-To: open->closed

Fix from upstream committed.