Bug 67255 - [PATCH] x11-toolkits/py23-kde: unbreak/update to 3.11.r1
Summary: [PATCH] x11-toolkits/py23-kde: unbreak/update to 3.11.r1
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-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-27 15:00 UTC by Stefan Walter
Modified: 2004-06-06 17:54 UTC (History)
0 users

See Also:


Attachments
py23-kde-3.11.r1.patch (26.09 KB, patch)
2004-05-27 15:00 UTC, Stefan Walter
no flags Details | Diff
py-kde-3.11.r1.patch (27.39 KB, patch)
2004-06-06 14:40 UTC, Stefan Walter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Walter 2004-05-27 15:00:41 UTC
- Update to 3.11.r1
- Update project home page URL
- Remove BROKEN mark

Generated with FreeBSD Port Tools 0.50
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2004-06-05 21:13:45 UTC
State Changed
From-To: open->feedback


1) It builds and runs fine on FreeBSD-5.x, but installs 
examples with a bad ownership if built by an user; I 
propose the following patch: 

diff -urN x11-toolkits/py-kde.orig/Makefile x11-toolkits/py-kde/Makefile 
--- x11-toolkits/py-kde.orig/Makefile	Sat Jun  5 22:10:06 2004 
+++ x11-toolkits/py-kde/Makefile	Sat Jun  5 21:01:00 2004 
@@ -19,8 +19,6 @@ 

BUILD_DEPENDS=	pyuic:${PORTSDIR}/x11-toolkits/py-qt 

-WRKSRC=		${WRKDIR}/${DISTNAME} 
- 
USE_PYTHON=	yes 
USE_KDELIBS_VER=3 
USE_REINPLACE=	yes 
@@ -48,6 +46,7 @@ 
@${MKDIR} ${PREFIX}/share/examples/${PKGBASE} 
@( cd ${WRKSRC}/examples && ${TAR} -cf - . ) |  
( cd ${PREFIX}/share/examples/${PKGBASE} && ${TAR} -xf - ) 
+	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/${PKGBASE} 
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/kdepyuic ${PREFIX}/bin 

.include <bsd.port.mk> 

2) It is broken on -STABLE: 

c++ -c -Wno-deprecated-declarations -pipe -fPIC -O -pipe -march=pentiumpro -Wall -W -D_THREAD_SAFE -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322 -I/usr/local/include -I/usr/local/include/python2.3 -I/usr/X11R6/include -o sipkdecorepart0.o sipkdecorepart0.cpp 
sipkdecorepart0.cpp: In function `const class KShortcut & sipVH_kdecore_35(PyGILState_STATE, PyObject *, unsigned int)': 
sipkdecorepart0.cpp:5171: warning: reference to local variable `sipRes' returned 
sipkdecorepart0.cpp: In function `const class QString & sipVH_kdecore_60(PyGILState_STATE, PyObject *)': 
sipkdecorepart0.cpp:5574: warning: reference to local variable `sipRes' returned 
sip/kdecore/kmountpoint.sip: In function `struct PyObject * convertFrom_KMountPoint_List(void *)': 
sip/kdecore/kmountpoint.sip:137: warning: taking address of temporary 
sipkdecorepart0.cpp: In function `int convertTo_Display(PyObject *, void **, int *)': 
sipkdecorepart0.cpp:27824: warning: unused parameter `struct PyObject * sipPy' 
sipkdecorepart0.cpp:27824: warning: unused parameter `int * sipIsErr' 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_Display(void *)': 
sipkdecorepart0.cpp:27858: warning: unused variable `struct _XDisplay * sipCpp' 
sipkdecorepart0.cpp: In method `const class KShortcut & sipKShortcutList::shortcutDefault(unsigned int) const': 
sipkdecorepart0.cpp:51467: new cannot be applied to a reference type 
sipkdecorepart0.cpp: In method `const class KShortcut & sipKShortcutList::shortcut(unsigned int) const': 
sipkdecorepart0.cpp:51482: new cannot be applied to a reference type 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_ulonglong(void *)': 
sip/kdecore/kconfigbase.sip:298: warning: unused variable `struct PyObject * LongLong' 
sipkdecorepart0.cpp: In function `void dealloc_KShared(sipWrapper *)': 
sipkdecorepart0.cpp:79446: warning: unused parameter `struct sipWrapper * sipSelf' 
sipkdecorepart0.cpp: In function `struct PyObject * meth_KApplication_startServiceByName(PyObject *, PyObject *)': 
sipkdecorepart0.cpp:93828: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:93829: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp:93859: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:93860: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * meth_KApplication_startServiceByDesktopPath(PyObject *, PyObject *)': 
sipkdecorepart0.cpp:93898: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:93899: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp:93929: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:93930: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * meth_KApplication_startServiceByDesktopName(PyObject *, PyObject *)': 
sipkdecorepart0.cpp:93968: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:93969: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp:93999: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp:94000: warning: `class QCString * a3' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * meth_KApplication_kdeinitExec(PyObject *, PyObject *)': 
sipkdecorepart0.cpp:94067: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * meth_KApplication_kdeinitExecWait(PyObject *, PyObject *)': 
sipkdecorepart0.cpp:94128: warning: `class QString * a2' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_QMap_0200QChar_0200QStringList(void *)': 
sip/kdecore/kmacroexpander.sip:272: warning: `struct PyObject * binst' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_QMap_0200KEntryKey_0200KEntry(void *)': 
sip/kdecore/kconfigdata.sip:119: warning: `struct PyObject * binst' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_QMap_0200QString_0200QString(void *)': 
sip/kdecore/kconfig.sip:129: warning: `struct PyObject * binst' might be used uninitialized in this function 
sipkdecorepart0.cpp: In function `struct PyObject * convertFrom_QValueList_2100(void *)': 
sip/kdecore/kwinmodule.sip:110: warning: unused variable `struct PyObject * inst' 
/usr/X11R6/include/qptrlist.h: In method `void QPtrList<KIconThemeDir>::deleteItem(void *)': 
sipkdecorepart0.cpp:101226:   instantiated from here 
/usr/X11R6/include/qptrlist.h:150: invalid use of undefined type `class KIconThemeDir' 
../extra/kde322/kicontheme.h:23: forward declaration of `class KIconThemeDir' 
*** Error code 1 

Stop in /usr/ports/x11-toolkits/py-kde/work/PyKDE-3.11rc1/kdecore. 

Could you please fix it?
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2004-06-06 09:32:49 UTC
Le Sam  5 jui 04 à 23:32:22 +0200, Stefan Walter <sw@gegenunendlich.de>
 écrivait :
> > 2) It is broken on -STABLE:
> 
> Sorry, I have to admit I don't have even a single 4.x machine around any
> more, so I can't really test that myself:

Since this port is already marked broken, I think that it's possible to
mark it broken only for OSVERSION < 500000, until someone takes care to
fix it for -STABLE.

> Do you have the latest devel/py-sip (4.0.r4) installed? The previous
> version had a bug that prevented building py-kde. (It might be a good
> idea to have the latest versions of x11-toolkits/qscintilla and
> x11-toolkits/py-qt, too, but I'm not sure if it's necessary.)

Yes, with up-to-date dependences. This is matter of compiler level: if
it would respect ${CC}, it would build with USE_GCC= 3.3 (but this is
not a good solution, because it uses libraries built with the default
compiler).

Another point: it would be a good idea to compile the examples.
Something like
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py
during post-install.

Regards,
-- 
Th. Thomas.
Comment 3 Stefan Walter 2004-06-06 14:40:46 UTC
Thierry Thomas, 06.06.04, 10:32h CEST:

> > Sorry, I have to admit I don't have even a single 4.x machine around any
> > more, so I can't really test that myself:
> 
> Since this port is already marked broken, I think that it's possible to
> mark it broken only for OSVERSION < 500000, until someone takes care to
> fix it for -STABLE.

I agree - I certainly won't be able to fix it on 4.x soon (or at all).

I made another diff that includes the changes suggested by you. To sum
it up:

- Update to version 3.11.r1
- Update project home page URL
- Mark BROKEN on 4.x
- Compile the examples
- Use EXAMPLESDIR and (NO)PORTDOCS

Regards,
Stefan

p.s.: My first reply seems to have vanished, it's not in the PR db. That
happened at least a couple of times before, with other PRs...
Comment 4 Thierry Thomas freebsd_committer freebsd_triage 2004-06-06 17:54:15 UTC
State Changed
From-To: feedback->closed


Committed, thanks!