[Bug 210110] cad/qcad remove wrongly used PLIST_SUB from pkg-plist

Ralf Nolden nolden at kde.org
Thu Jun 9 18:51:22 UTC 2016


Am Donnerstag, 9. Juni 2016, 18:05:15 schrieb Walter Schwarzenfeld:
> No.. you can't avoid it this way. It changes pkg-ülist after makeplist
> makes it.
> The replacement is only for you, if you want it..
> (You can change it to
> 
> do-install:
>           if [ $$(grep -c '%%QT_BINDIR%%' ${PORTSDIR}/cad/qcad/pkg-plist)
> -ne 0 ]; then ${REINPLACE_CMD} '1,2s/\%\%QT_BINDIR\%\%/bin/g'
> ${PORTSDIR}/cad/qcad/pkg-plist;fi
> so it only changes the first two lines)
> 
> 
> QT_PREFIX and QT_BINDIR are defined and set in bsd.qt.mk.
> But it makes no sense. Every update you have other files and pathes in
> the pkg-plist.
> And as someone write abobe, you have always look in pkg-plist, if
> everythins is right. Neither makeplist nor genplist iare working 100%
> correct. There are always lines you have to correct per hand.
I think that problem will go away soon :)  I was wondering how that happens 
and remembered that qcad is a qt4 app where the commandline programs (bindir) 
is set to LOCALBASE/bin by default (and then you get the ominous QT_BINDIR in 
your pkg-plist). Tobias Berner is changing that to install them to 
LOCALBASE/lib/qt4/bin like we have with qt5 and then we use qtchooser to 
switch between those two environments.

So, you may change that now but it will be obsolete with importing  qt-5.7 at 
latest (or sooner if that makes some sense to us).

Before though we have to make sure all ports use qtchooser for building and 
that they work, so qcad will be tested anyway.

BTW if a qt5 build makes sense and works (didn't check that, but it should) - 
I would recommend switching to Qt5 anyway. You could also change the port to 
qcad-qt4 and/or add a qcad-qt5 port. I did some testing and the only real 
problems I had was the quazip library that needs to be built against qt5 too 
(which works - however, upstream changed the library name IIRC, so you may 
need to patch that too).


> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"

-- 
Kind regards,

Ralf Nolden



More information about the freebsd-ports mailing list