From owner-freebsd-ports@FreeBSD.ORG Sat Oct 9 22:54:03 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 370DA1065672 for ; Sat, 9 Oct 2010 22:54:03 +0000 (UTC) (envelope-from makc@issp.ac.ru) Received: from mail.issp.ac.ru (mail.issp.ac.ru [77.236.34.3]) by mx1.freebsd.org (Postfix) with ESMTP id A69F48FC20 for ; Sat, 9 Oct 2010 22:54:02 +0000 (UTC) Received: from [80.73.162.72] [80.73.162.72:5478] (HELO/EHLO luna.dio.ru, authenticated with PLAIN) by mail.issp.ac.ru with ESMTP/inet id o99MrwYo054438 (using TLSv1/SSLv3, with cipher DHE-RSA-AES256-SHA (256 bits), verified NO) Sun, 10 Oct 2010 02:53:58 +0400 (MSD) From: Max Brazhnikov Organization: ISSP RAS To: Friedemann Becker , ports@freebsd.org Date: Sun, 10 Oct 2010 02:54:00 +0400 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.2; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201010100254.00372.makc@issp.ac.ru> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.issp.ac.ru [77.236.34.3]); Sun, 10 Oct 2010 02:53:58 +0400 (MSD) Cc: Subject: Re: How to handle files installed to /usr/local/lib/qt4/plugins/script/ correctly in pkg-plist? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 22:54:03 -0000 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