Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2010 02:54:00 +0400
From:      Max Brazhnikov <makc@issp.ac.ru>
To:        Friedemann Becker <ports.friedemann.becker@googlemail.com>, ports@freebsd.org
Subject:   Re: How to handle files installed to /usr/local/lib/qt4/plugins/script/ correctly in pkg-plist?
Message-ID:  <201010100254.00372.makc@issp.ac.ru>
In-Reply-To: <AANLkTi=XjXHTRYdE9r22WBocBSseEkUAU4WxABjkRU%2Bc@mail.gmail.com>
References:  <AANLkTi=XjXHTRYdE9r22WBocBSseEkUAU4WxABjkRU%2Bc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Oct 2010 00:02:11 +0200, Friedemann Becker wrote:
> Hello,
> 
> I'm trying to make a port for musescore, it's compiling and
> installing, and now I'm working through the testing chapter in the
> porter's handbook.
> Musescore has some files that are installed into the
> /usr/local/lib/qt4/plugins/script/ directory, and I'm wondering how to
> handle them correctly. All other files install to ${PREFIX}/..., but I
> don't know what to do with the qt-lib directory. Is it okay to leave
> the files there, and if I do so how do I tell pkg-plist about that?
> Is it okay to just put absolute paths there? like
> /usr/local/lib/qt4/plugins/script/libqtscript_core.so?

bsd.qt.mk defines several substitutions for plist (e.g. QT_PLUGINDIR_REL for 
lib/qt4/plugins), you should use them instead hardcoded paths.

> Also strange: there already are installed versions of these files, for
> instance it looks like
> 
> -rwxr-xr-x   1 root  wheel    2363778 Oct  9 12:48 libqtscript_uitools.so
> lrwxr-xr-x   1 root  wheel         28 Jun 30 18:42
> libqtscript_uitools.so.1 -> libqtscript_uitools.so.1.0.0
> lrwxr-xr-x   1 root  wheel         28 Jun 30 18:42
> libqtscript_uitools.so.1.0 -> libqtscript_uitools.so.1.0.0
> -r--r--r--   1 root  wheel     974529 Jun 30 18:42
> libqtscript_uitools.so.1.0.0
>
> where libqtscript_uitools.so is installed by Musescore, the symbolic
> links and the libqtscript_uitools.so.1.0.0 where already there.
> 
> What to do best in this situation?

These are installed by devel/qtscriptgenerator. You should patch your port to 
not install these files, otherwise your port will be in conflict with 
qtscriptgenerator.

Max







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010100254.00372.makc>