[kde-freebsd] [plasma5] help request with (own) broken ports
Tobias Berner
tcberner at gmail.com
Wed Dec 23 21:50:27 UTC 2015
Hi Ramiro
1) to fetch from github, you can use USE_GITHUB: see 5.4.3 in the Handbook [1]
So you can drop everything below USE_OPENSSL in your makefile (apart from the .include...)
and just add the 4 needed github defines.
2) qoauth.pc shoud probably be installed to libdata/ not lib/ (patch src/src.pro)
3) %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.prl should be %%QT_LIBDIR%%/libqoauth.prl
4) The PORTVERSION should probably be 2.0.1 according to qoauth.pro
then it worked here just fine [tm].
also
5) you could try to make it parallel-installable with net/qoauth by installing the headers to
include/QtOAuth-qt5 instead of include/QtOauth and making the library libqoauth-qt5.so
instead of libqoauth.so (patch src/src.pro, src/pcfile.sh and probably the tests).
[1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html
USE_GITHUB= YES
GH_ACCOUNT= ayoy
GH_PROJECT= qoauth
GH_TAGNAME= 02fbc13a42d945b703a28a49d71c02b20c76a0b8
mfg Tobias
On Wednesday 23. December 2015 17:53:06 Ramiro Caso wrote:
> On 23/12/2015 14:57, Tobias Berner wrote:
> > Hi Ramiro
> >
> > Could you provide the port-files for for example net/qoauth-qt5?
>
> Yes, I didn't know whether to clutter things with them, but here they
> go. The Makefile is very hackish, but it did the job (port fetches from
> git, so I kind of copy-pasted from the KDE fetch from git). Thanks again.
>
> ########## Makefile ##########
> # Created by:
> # $FreeBSD: head/net/qoauth/Makefile 376838 2015-01-12 16:33:16Z tijl $
>
> PORTNAME= ${GIT_PROJECT}-qt5
> PORTVERSION= 1.0.1
> PORTREVISION= 1
> CATEGORIES= net devel security
>
> CONFLICTS= qoauth*
>
> MAINTAINER=
> COMMENT= Qt 5 support for OAuth-powered network services
>
> LIB_DEPENDS= libqca-qt5.so:${PORTSDIR}/devel/qca-qt5
>
> USES= qmake tar:xz
> USE_LDCONFIG= yes
> USE_QT5= qmake_build buildtools_build testlib_build core
> USE_OPENSSL= yes
>
> GIT_PROJECT= qoauth
> GIT_REVISION= 02fbc13a42d945b703a28a49d71c02b20c76a0b8
> GIT_URL?= git://github.com/ayoy/${GIT_PROJECT}
>
> DISTNAME= ${GIT_PROJECT}-${PORTVERSION}.${GIT_REVISION}
> GIT_DISTFILE= ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}.tar.xz
>
> DIST_SUBDIR= GIT
> PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-git
>
> GIT_FETCH_DIR= ${WRKDIR}/git
> WRKSRC= ${WRKDIR}/${GIT_PROJECT}
>
> .if defined(KDE_GIT_FETCH)
> FETCH_DEPENDS+= git:${PORTSDIR}/devel/git
> do-fetch:
> ${MKDIR} ${GIT_FETCH_DIR} &&\
> cd ${GIT_FETCH_DIR} &&\
> git clone ${GIT_URL} &&\
> cd ${GIT_FETCH_DIR}/${GIT_PROJECT} &&\
> git checkout ${GIT_REVISION} &&\
> mkdir -p ${DISTDIR}/${DIST_SUBDIR} &&\
> cd ${GIT_FETCH_DIR} &&\
> tar --exclude .git -cJf ${GIT_DISTFILE} ${GIT_PROJECT}
> .endif
>
> .include <bsd.port.mk>
> ##############################
> ########## pkg-plist #########
> include/QtOAuth/QtOAuth
> include/QtOAuth/interface.h
> include/QtOAuth/qoauth_global.h
> include/QtOAuth/qoauth_namespace.h
> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.prl
> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so
> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2
> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2.0
> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2.0.1
> %%QT_LIBDIR%%/pkgconfig/qoauth.pc
> %%QT_MKSPECDIR%%/features/oauth.prf
> ##############################
>
> > It would probably be easier to figure out what goes wrong when being able to look at it :)
> >
> >
> > mfg Tobias
> >
> > On Wednesday 23. December 2015 14:34:45 Ramiro Caso wrote:
> >> Hi all,
> >>
> >> I've been doing some porting in the past few weeks, and was planing to
> >> do some more, and everything seemed to work ok, but since two weeks ago
> >> (I think) all QT5 ports I made fail at package, while they did not
> >> before. The intended ports where:
> >>
> >> - net/qoauth-qt5
> >> - finance/alkimia-kf5
> >>
> >> to be able to build:
> >>
> >> - editors/kile-kf5
> >> - finance/kmymoney-kf5
> >> - graphics/dspdfviewer
> >> - www/choqok-kf5
> >>
> >> and as many as I can port (currently, some of the kde4 versions conflict
> >> with kdepim-kf5 or with something else in plasma5/kf5/kde5, so it's
> >> worth the effort, for me at least, since I used to use them quite
> >> regularly).
> >>
> >> So, if someone could help me, I would very much appreciate it. Just to
> >> take the intended net/qoauth-qt5 port, at stage, files are placed under
> >> /usr/local/WHATEVER (e.g., include, lib):
> >>
> >> install -m 755 -p ../lib/libqoauth.so.2.0.1
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/lib/libqoauth.so.2.0.1
> >> install -m 644 -p ../lib/libqoauth.prl
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/lib/libqoauth.prl
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/src/qoauth_global.h
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/include/QtOAuth/
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/src/qoauth_namespace.h
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/include/QtOAuth/
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/src/interface.h
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/include/QtOAuth/
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/include/QtOAuth
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/include/QtOAuth/
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/src/qoauth.pc
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/lib/pkgconfig/
> >> install -m 644 -p
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/qoauth/oauth.prf
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/usr/local/lib/qt5/mkspecs/features/
> >>
> >> But at package, the "usr/local" prefix just seems to disappear, and
> >> %%QT_LIBDIR%% seems to be set simply to "lib":
> >>
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/include/QtOAuth/QtOAuth: No
> >> such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/include/QtOAuth/interface.h: No
> >> such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/include/QtOAuth/qoauth_global.h:
> >> No such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/include/QtOAuth/qoauth_namespace.h:
> >> No such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/libqoauth.prl: No such
> >> file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/libqoauth.so: No such
> >> file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/libqoauth.so.2: No such
> >> file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/libqoauth.so.2.0: No
> >> such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/libqoauth.so.2.0.1: No
> >> such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/pkgconfig/qoauth.pc: No
> >> such file or directory
> >> pkg-static: Unable to access file
> >> /wrkdirs/usr/ports/net/qoauth-qt5/work/stage/lib/qt5/mkspecs/features/oauth.prf:
> >> No such file or directory
> >>
> >> I haven't changed neither the pkg-plist file nor the Makefile, which
> >> used to work before. (I copy the contents of pkg-plist:
> >>
> >> include/QtOAuth/QtOAuth
> >> include/QtOAuth/interface.h
> >> include/QtOAuth/qoauth_global.h
> >> include/QtOAuth/qoauth_namespace.h
> >> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.prl
> >> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so
> >> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2
> >> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2.0
> >> %%QT_LIBDIR%%/%%QT_LIBDIR%%qoauth.so.2.0.1
> >> %%QT_LIBDIR%%/pkgconfig/qoauth.pc
> >> %%QT_MKSPECDIR%%/features/oauth.prf
> >> )
> >>
> >> It seems to me that there where modifications in the files under Mk or
> >> Mk/Uses that are causing this, but my understanding is limited, so I'm
> >> not getting what the solution is supposed to be.
> >>
> >> Thanks in advance,
> >> Ramiro
> >> _______________________________________________
> >> kde-freebsd mailing list
> >> kde-freebsd at kde.org
> >> https://mail.kde.org/mailman/listinfo/kde-freebsd
> >> See also http://freebsd.kde.org/ for latest information
> >>
> >
More information about the kde-freebsd
mailing list