Multi-fixes for news/straw.
reigncracks at hotmail.com
reigncracks at hotmail.com
Thu Apr 10 19:20:45 PDT 2003
>Submitter-Id: current-users
>Originator: Mezz
>Organization:
>Confidential: no
>Synopsis: Multi-fixes for news/straw.
>Severity: critical
>Priority: high
>Category: ports
>Class: change-request
>Release: FreeBSD 5.0-CURRENT i386
>Environment:
System: FreeBSD sysinfo.mezzweb.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Mar 13 13:54:37 CST 2003 mezz at sysinfo.mezzweb.com:/usr/src/sys/i386/compile/BSDROCKS i386
My ports tree are very up to date, updated today and before send
this PR. I am planning to remove /usr/local/*, /usr/X11R6/* and
/var/db/pkg/*, then install everything by stratch sometime soon.
If it fixes the seg fault core dump, I will let you know.
>Description:
Here are problems what I got and noticed.
1) *.png and straw.glade are installed in the wrong place. When
I install and I get the error about missing images too.
2) Failed to compile/install the languages (*.mo).
3) BUILD_DEPENDS?
4) WITH_DB3=yes, does this really work? It still install
db4-4.0.14_1,1 instead db3.
5) pkg-plist error:
===========================
# make deinstall
===> Deinstalling for straw-0.18.1
pkg_delete: file '/usr/X11R6/share/straw' doesn't really exist
pkg_delete: unable to completely remove directory '/usr/X11R6/share/straw'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)
===========================
6) When, I fix everything above and I get the seg core dump. I
guess, the issue is relating with FreeBSD 5.0, but not with
FreeBSD 4.x then? I did created a straw port, if you search
in the Gnome maillist and you will find it. The seg core
dump stopped from me to send a PR to add new port of straw
in the ports tree.
http://www.freebsd.org/cgi/getmsg.cgi?fetch=577639+580122+/usr/local/www/db/text/2003/freebsd-gnome/20030309.freebsd-gnome
>Fix:
1) *.png and straw.glade should be install in the
${X11BASE}/share/gnome/straw/ instead in ${X11BASE}/lib/straw/.
They aren't library and need to follow Gnome's stuff.
(included the diff)
2) Use gmake and a very small fix to make it really works by
remove the '-D' in the Makefile. (included the diff)
3) Shouldn't it be RUN_DEPENDS instead BUILD_DEPENDS? Also, I
modified the long xml path to ${PYXML}, check in
/usr/ports/Mk/bsd.python.mk.. (included the diff)
4) Current, no fix for this. I am not sure how to get
WITH_DB3=yes works, but you will need to create a slave port.
Check more info: http://www.freebsd.org/cgi/getmsg.cgi?fetch=534889+538921+/usr/local/www/db/text/2003/freebsd-gnome/20030309.freebsd-gnome
5) Fixed and added few stuff in the pkg-plist. (included the diff)
6) No fix, but I did ran it with the gdb and I don't know if
it helps. Here are links:
http://www.mezzweb.com:81/show/straw.txt (debug with gdb, but might not really helpful thought)
If my suggest of fixes still work in 4.8, then I suggest
you to mark straw port as broke for 5.0. Of course, unless
if it works fine to others with 5.0 and don't mark it as broke.
I hope, it's just me (my computer). But, one problem is that..
I don't think it's straw's fault, but it must be one of py-*'s fault.
Here are diff:
--- straw.diff begins here ---
diff -ur straw.orig/Makefile straw/Makefile
--- straw.orig/Makefile Mon Apr 7 10:56:21 2003
+++ straw/Makefile Thu Apr 10 18:37:41 2003
@@ -13,14 +13,15 @@
MAINTAINER= sheldonh at FreeBSD.org
COMMENT= A desktop news aggregator for the GNOME 2 desktop
-BUILD_DEPENDS= ${LOCALBASE}/include/pyorbit-2/pyorbit.h:${PORTSDIR}/devel/py-orbit2 \
+RUN_DEPENDS= ${LOCALBASE}/include/pyorbit-2/pyorbit.h:${PORTSDIR}/devel/py-orbit2 \
${LOCALBASE}/bin/pygtk-codegen-2.0:${PORTSDIR}/x11-toolkits/py-gtk2 \
${PYTHON_SITELIBDIR}/mx/DateTime/DateTime.py:${PORTSDIR}/lang/py-mx-base \
${PYTHON_SITELIBDIR}/bsddb3/db.py:${PORTSDIR}/databases/py-bsddb3 \
- ${PYTHON_SITELIBDIR}/_xmlplus/FtCore.py:${PORTSDIR}/textproc/py-xml \
+ ${PYXML} \
${PYTHON_SITELIBDIR}/ADNS.py:${PORTSDIR}/net/py-adns \
${PYTHON_SITELIBDIR}/gtk-2.0/gnome/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome2
+USE_GMAKE= yes
USE_X_PREFIX= yes
USE_PYTHON= yes
USE_REINPLACE= yes
diff -ur straw.orig/files/patch-Makefile straw/files/patch-Makefile
--- straw.orig/files/patch-Makefile Mon Apr 7 10:56:21 2003
+++ straw/files/patch-Makefile Thu Apr 10 19:05:46 2003
@@ -10,9 +10,18 @@
-DATADIR = $(PREFIX)/share/straw
-APPLICATIONSDIR = $(PREFIX)/share/applications
-ICONDIR = $(PREFIX)/share/pixmaps
-+DATADIR = $(LIBDIR)
++DATADIR = $(PREFIX)/share/gnome/straw
+APPLICATIONSDIR = $(PREFIX)/share/gnome/applications
+ICONDIR = $(PREFIX)/share/gnome/pixmaps
LOCALEDIR = $(PREFIX)/share/locale
POFILES := $(shell echo po/*.po)
+@@ -53,7 +53,7 @@
+ for mo in $$mos; do \
+ mo=`basename $$mo`; \
+ lang=`echo $$mo | sed -e 's/\.mo$$//'`; \
+- $(INSTALL) -m 644 -D $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
++ $(INSTALL) -m 644 $$mo $(LOCALEDIR)/$$lang/LC_MESSAGES/straw.mo; \
+ done
+
+ clean:
diff -ur straw.orig/pkg-plist straw/pkg-plist
--- straw.orig/pkg-plist Mon Apr 7 10:56:21 2003
+++ straw/pkg-plist Thu Apr 10 20:10:00 2003
@@ -28,19 +28,23 @@
lib/straw/SummaryParserMP.pyc
lib/straw/URLFetch.pyc
lib/straw/__init__.pyc
-lib/straw/default_subscriptions.opml
lib/straw/error.pyc
-lib/straw/face-happy.png
-lib/straw/face-sad.png
lib/straw/httplib_async.pyc
-lib/straw/image-broken.png
-lib/straw/image-waiting.png
-lib/straw/offline.png
-lib/straw/online.png
lib/straw/rssfinder.pyc
lib/straw/rssparser.pyc
-lib/straw/straw.glade
-lib/straw/straw.png
share/gnome/applications/straw.desktop
share/gnome/pixmaps/straw.png
- at dirrm share/straw
+share/gnome/straw/default_subscriptions.opml
+share/gnome/straw/face-happy.png
+share/gnome/straw/face-sad.png
+share/gnome/straw/image-broken.png
+share/gnome/straw/image-waiting.png
+share/gnome/straw/offline.png
+share/gnome/straw/online.png
+share/gnome/straw/straw.glade
+share/gnome/straw/straw.png
+share/locale/de/LC_MESSAGES/straw.mo
+share/locale/fi/LC_MESSAGES/straw.mo
+share/locale/fr/LC_MESSAGES/straw.mo
+ at dirrm share/gnome/straw
+ at dirrm lib/straw
--- straw.diff ends here ---
More information about the freebsd-gnome
mailing list