From owner-freebsd-python@freebsd.org Wed Sep 13 01:22:55 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4477DE038CA for ; Wed, 13 Sep 2017 01:22:55 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3227A6C9EE for ; Wed, 13 Sep 2017 01:22:55 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: by mailman.ysv.freebsd.org (Postfix) id 2E632E038C9; Wed, 13 Sep 2017 01:22:55 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DF54E038C8 for ; Wed, 13 Sep 2017 01:22:55 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by mx1.freebsd.org (Postfix) with ESMTP id BFA586C9ED for ; Wed, 13 Sep 2017 01:22:54 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-115-1.bras2.adl6.internode.on.net (HELO leader.local) ([121.45.115.1]) by ipmail07.adl2.internode.on.net with ESMTP; 13 Sep 2017 10:52:43 +0930 Subject: Re: Having trouble with USES=python To: "Mikhail T." , python@FreeBSD.org References: <5295784b-7d47-bd34-94ef-f17ec266024b@aldan.algebra.com> From: Shane Ambler Message-ID: <8f980dcf-555f-8031-e546-07fc126de6df@ShaneWare.Biz> Date: Wed, 13 Sep 2017 10:52:41 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <5295784b-7d47-bd34-94ef-f17ec266024b@aldan.algebra.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 01:22:55 -0000 On 13/09/2017 06:03, Mikhail T. wrote: > Hello! > > I've created the below port "by the book". However, something is not > right about the install -- some of the files duly installed into > STAGEDIR make their way neither into package nor into PREFIX. > > The check-plist complains about /some/ of the omissions: > > ===> Checking for items in STAGEDIR missing from pkg-plist > Error: Orphaned: > %%PYTHON_SITELIBDIR%%/scudcloud/resources/disable_snippets.js > Error: Orphaned: %%PYTHON_SITELIBDIR%%/scudcloud/resources/leftpane.js > Error: Orphaned: %%PYTHON_SITELIBDIR%%/scudcloud/resources/scudcloud.js > ===> Checking for items in pkg-plist which are not in STAGEDIR > > but not /all/ of them -- none of the icons, which are found under > STAGEDIR, make their way into ${PREFIX}/share/icons/ > > What am I doing wrong? Thank you! Yours, > > -mi With your Makefile - USE_PYTHON= autoplist distutils hunspell hunspell is not a python option, it should be as LIB_DEPENDS+= libhunspell-1.6.so:textproc/hunspell As you are using autoplist the file list is generated based on data in setup.py, like "package_data". You should patch setup.py so that it picks up the missing files and also adjust where it is installing data files such as icons, that may mean prefixing ${PREFIX} with ${STAGEDIR}. You may find those missing icons in /${PREFIX}/share/icons/ rather than within the ports work dir. -- FreeBSD - the place to B...Software Developing Shane Ambler