From owner-freebsd-ports@freebsd.org Wed May 22 12:25:43 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB16915AAAA2 for ; Wed, 22 May 2019 12:25:42 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2385F831AD for ; Wed, 22 May 2019 12:25:41 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from [10.70.7.24] ([10.70.7.24]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x4MCPe9G092715 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 22 May 2019 12:25:40 GMT (envelope-from list1@gjunka.com) Subject: Re: Reinstalling with dependencies To: freebsd-ports@freebsd.org References: <20190522115101.tl36hg2wmclev3oq@ivaldir.net> <20190522121743.biw6c5niia5tspr4@ivaldir.net> From: Grzegorz Junka Message-ID: <09545ba9-fce2-f3ed-f3c7-abedbffe718c@gjunka.com> Date: Wed, 22 May 2019 13:25:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190522121743.biw6c5niia5tspr4@ivaldir.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 2385F831AD X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[gjunka.com]; MX_GOOD(-0.01)[cached: gjunka.com]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; IP_SCORE(-3.64)[ip: (-9.53), ipnet: 88.98.192.0/18(-4.77), asn: 56478(-3.81), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 12:25:43 -0000 On 22/05/2019 13:17, Baptiste Daroussin wrote: > On Wed, May 22, 2019 at 01:11:05PM +0100, Grzegorz Junka wrote: >> On 22/05/2019 12:51, Baptiste Daroussin wrote: >>> On Wed, May 22, 2019 at 12:43:33PM +0100, Grzegorz Junka wrote: >>>> Is there any way to reinstall a package with all its dependencies? >>>> >>>> >>>> I am getting the following error: >>>> >>>> root@someserv:~ # pkg check -d >>>> Checking all packages: 100% >>>> elinks is missing a required shared library: libjs.so >>>> >>>> >>> 2 reasons may happen for that to happen: >>> 1/ spidermonkey17 does not have a proper SONAME for the libjs.so file it >>> provides (bug 1) >>> 2/ somehow the linked port seems to not register properly spidermonkey17 as a >>> direct dependency of elinks when the option is checked (bug 2) >>> >>> I have checked the case 1 and yes libjs.so is buggy I haven't yet checked the >>> case 2, but I quite sure there is a bug there as well, resulting in a package >>> that does not have the proper dependencies registered at the creation >>> >>> Best regards, >>> Bapt >> >> Are you saying that even if elinks was reinstalled with dependencies that >> wouldn't help? >> >> We have two issues here: >> >> 1. How to reinstall a package with dependencies (as stated in the subject) >> >> 2. Would reinstalling elinks with all dependencies fix the issue mentioned >> in the email >> >> I have a couple more packages broken like elinks. I didn't include them >> because I only wanted to post an example and assumed they would be fixed if >> I reinstalled them properly. But here we go: > No I do mean the elinks packages is probably broken when build with the option > that brings in spidermonkey as a dependency >> root@someserv:~ # pkg check -d >> Checking all packages: 100% >> elinks is missing a required shared library: libjs.so >> fireflies is missing a required shared library: libgfx.so >> py27-exiv2 is missing a required shared library: libexiv2.so.26 >> >> There was also virtuoso but I deinstalled it assuming it's an old version >> (the new version doesn't build due to openssl 1.1.0 issue). >> >> So now I have two questions: Is it possible to reinstall a package with it's >> dependencies? And what to do with those broken packages above, should I >> report a bug? > > I don't know for the specific case of the broken packages above, pkg check will > try to reinstall the missing dependency if any is found. If not, it just report > the broken packages and one has to figure out why those packages are broken. > > I could easily guess for the elinks case. there might be similar reasons for > other packages. > > For example reading at the MOVED file I can easily figure out that py27-exiv2 is > a package that no longer exists. > > For fireflies I don't know, one has to check. Thanks Bapt.  From what you wrote I infer that an option to reinstall a package with all dependencies doesn't exist, e.g. pkg install -D pkg-name (Force reinstallation of package dependencies if already installed) I will raise a bug for elinks when I am done with upgrading packages.