From owner-freebsd-questions@freebsd.org Thu Jan 2 02:46:06 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A6781E8736 for ; Thu, 2 Jan 2020 02:46:06 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47pC8Y2ytmz3CG3 for ; Thu, 2 Jan 2020 02:46:05 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id 392CF138A30 for ; Thu, 2 Jan 2020 02:45:59 +0000 (UTC) Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Lk8pk_xcP5T8 for ; Thu, 2 Jan 2020 02:45:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id CCE59138A3E for ; Thu, 2 Jan 2020 02:45:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.antonovs.family CCE59138A3E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=D65AA412-CB7F-11E9-A561-802C9D403B77; t=1577933158; bh=cE1b3hzu+GPBXxTrGdNSzHDrTfgUjDRWuETm69SWbPY=; h=From:To:Date:Message-ID:MIME-Version; b=hSjqHwVnw1TFqlwh0GoEKPS8XV9fQJB9WrpA/oogxn0uSqaDIu7BsTglj1/aqZUIA HUKr5qsXXpWnaYVLqKAMk/LpcwmJZKgq0Vc9IGq0edwGA4zQu6yssdHeaKm9+azKUC nN4eZL2CUvLewz+qn0Fcvgd2O4SQPlHSflC1OfSRxfL0GgYSwDkjFpa+3Dl/Hyp10f jtdc02nlibvjrNxx6f842yUwsNX+ogVjU0cZl3sl2vR+nxw36XsPW4hR14cg603jvN RgnXvYeVTIMRmyO15gDLBS4dpZbzKj1iMxJEtdaBSoKxpWbSogSu6qC9w21j5JIsO0 H44sdRnOjfOKA== X-Virus-Scanned: amavisd-new at antonovs.family Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id f6Xc4Z99yrOQ for ; Thu, 2 Jan 2020 02:45:58 +0000 (UTC) Received: from t800.localnet (c-73-169-135-10.hsd1.wa.comcast.net [73.169.135.10]) by mail.antonovs.family (Postfix) with ESMTPSA id 7E336138A30 for ; Thu, 2 Jan 2020 02:45:58 +0000 (UTC) From: Ihor Antonov To: freebsd-questions@freebsd.org Subject: Re: Getting around goofy package dependencies Date: Wed, 01 Jan 2020 18:45:56 -0800 Message-ID: <3226956.QJadu78ljV@t800> In-Reply-To: <63076.1577929869@segfault.tristatelogic.com> References: <63076.1577929869@segfault.tristatelogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Rspamd-Queue-Id: 47pC8Y2ytmz3CG3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=D65AA412-CB7F-11E9-A561-802C9D403B77 header.b=hSjqHwVn; dmarc=pass (policy=none) header.from=antonovs.family; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family X-Spamd-Result: default: False [-2.63 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=D65AA412-CB7F-11E9-A561-802C9D403B77]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[antonovs.family:+]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-0.63)[asn: 14618(-3.11), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; CTE_CASE(0.50)[]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[10.135.169.73.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2020 02:46:06 -0000 On Wednesday, January 1, 2020 5:51:09 PM PST Ronald F. Guilmette wrote: Hi, I am not familiar with Perl at all, but here is some generic advice > I am having a feeling of deja vu because I'm sure I have been here > before. > > I need to use a package named p5-Net-IDN-Encode on one of my FreeBSD 12.0 > systems. I tried to just install it with pkg add but that didn't work > becaise I had an older version of perl5 installed and p5-Net-IDN-Encode > wanted a newer one. > > So I installed the latest per5, i.e. "perl5-5.30.0". I figured that > should make me golden. > > Apparently I'm not that lucky, and p5-Net-IDN-Encode appars to want one > very specific version of perl5, i.e. perl5-5.28.2, even though I have > an even newer one. as a result, now when I try to install the > p5-Net-IDN-Encode [ackage, using "pkg install" I get the following > helpful notice: > > ======================================================================= > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 2 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > p5-Net-IDN-Encode: 2.500 > perl5.28: 5.28.2 > > Number of packages to be installed: 2 > ... > ======================================================================= > > I have tried to get around this by invoking "pkg install" with the -f > option, and separately also with the -M option, but neither one made > even the slightest bit of diofference. > > So, two questions: > > 1) Why do neither the -f nor -M options for "pkg install" do what the > corresponding man page seems to say they will do? '-f' option is "Force the reinstallation of the package if already installed." So this has nothing to do with skipping undesired packages behaviour that you probably need. '-M' also causes perl5 to be installed for me, so maybe pkg bug? (Did not check bugs) > 2) Why is the package for p5-Net-IDN-Encode configured in a way that > causes it to need *only* and *exactly* perl5-5.28.2, and why doesn't > the configuration of the and p5-Net-IDN-Encode packahe allow me to > install it when have an even newer version fo perl5 installed? > It is a good question, without knowing specifics it is hard to answer. I look at package configuration [1] and see that package wants perl5 - no specific version there. So my guess is that the dependency is somewhere in the code of the the p5-Net-IDN-Encode package I'd try 2 things: - Try contacting package maintainer and see if you can get some help. - Try building the port yourself [2] instead of using binary package [1] https://svnweb.freebsd.org/ports/head/textproc/p5-Net-IDN-Encode/Makefile? view=markup [2] https://metacpan.org/release/Net-IDN-Encode