From owner-freebsd-current@FreeBSD.ORG Sat Jun 20 16:01:46 2015 Return-Path: Delivered-To: current@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3F95BAD for ; Sat, 20 Jun 2015 16:01:46 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46AE83DF for ; Sat, 20 Jun 2015 16:01:46 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wgez8 with SMTP id z8so110468942wge.0 for ; Sat, 20 Jun 2015 09:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=kgBf/kroCmXH3GerNnZMoymyCr/Qlvgu4vghNcAouk4=; b=1BXFOrkBgJWL03BwBxdmc3pt/Q31KRVz/BUdntCumeOcagFxO7dvvBWpOARSbDS2Y4 9sX1YrXdUyErHgr8jtKZsdKeXsv1OebGW/UhIADuPWnxtipI+n/WjtO5B5lYXupmK5My +1o/1Pp4g4cFxpvn7rE5atEteNjQZlSlHFFThF+pyUG5enjHJidIBhMqpuootusPOK+M /6pGvW3nlO09j/8JJb7ffCjcMdqco7INdoYTq2pAP1JwIOEkRrtP4EnjCnLT5jjf3ny8 3Y5aWNi4Iv+M3IWmcORdyCPH2Ui7mH7DHMHo4BHv/h6vhtd6mDVPPYHoGtaO0zhP6zNg 0GtQ== X-Received: by 10.194.110.100 with SMTP id hz4mr26337085wjb.6.1434816104821; Sat, 20 Jun 2015 09:01:44 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id xa9sm17352477wjc.43.2015.06.20.09.01.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Jun 2015 09:01:44 -0700 (PDT) Sender: Baptiste Daroussin Date: Sat, 20 Jun 2015 18:01:42 +0200 From: Baptiste Daroussin To: "Eggert, Lars" Cc: "current@freebsd.org" Subject: Re: Difference between pkg 1.5.2 and 1.5.4 Message-ID: <20150620160141.GF55891@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zs/RYxT/hKAHzkfQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jun 2015 16:01:46 -0000 --Zs/RYxT/hKAHzkfQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 18, 2015 at 03:34:46PM +0000, Eggert, Lars wrote: > Hi, >=20 > I'm netbooting with a read-only rootfs. Up until version 1.5.2 of pkg, th= at sometimes caused some errors when installing various packages, but the i= nstall continued even if some files couldn't be written. >=20 > That seems to have changed with 1.5.4. Specifically, upgrading ca_root_ns= s from 3.19 to 3.19.1_1 now aborts in archive_read_extract () as shown belo= w. >=20 > This regression makes it difficult to run read-only; any chance this abor= t can be turned into a warning instead? >=20 > Lars >=20 >=20 > Updating FreeBSD repository catalogue... > FreeBSD repository is up-to-date. > All repositories are up-to-date. > Checking integrity... done (0 conflicting) > The following 1 package(s) will be affected (of 0 checked): >=20 > Installed packages to be UPGRADED: > ca_root_nss: 3.19 -> 3.19.1_1 >=20 > The process will require 42 B more space. >=20 > Proceed with this action? [y/N]: y > [1/1] Upgrading ca_root_nss from 3.19 to 3.19.1_1... > You may need to manually remove /usr/local/etc/ssl/cert.pem if it's no lo= nger needed. > You may need to manually remove /usr/local/openssl/cert.pem if it's no lo= nger needed. > pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/LICENSE): No such= file or directory > pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/MPL): No such fil= e or directory > pkg: unlinkat(usr/local/share/licenses/ca_root_nss-3.19/catalog.mk): No s= uch file or directory > [1/1] Extracting ca_root_nss-3.19.1_1: 71% > pkg: archive_read_extract(): Can't create '/etc/ssl/cert.pem.pXkDjkwDtvyq' > [1/1] Extracting ca_root_nss-3.19.1_1: 100% > [1/1] Deleting files for ca_root_nss-3.19.1_1: 100% Actually this is not related to a pkg bug at all 2 this happened here: 1/ your root is readonly and the ca_root_nss package is trying to create a = file on it (the is the change in _1). Concerning the unlinkat issue is due to somehow the files being absent on t= he system before the upgrade. pkg 1.5.2 would have shown the same thing Best regards, Bapt --Zs/RYxT/hKAHzkfQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWFjmUACgkQ8kTtMUmk6EzK8QCfXkRtAfVMYlVWoYC9bgx7dA0C sacAn36Hy0m57UJy8yUW3hLfVRh786hO =FL2e -----END PGP SIGNATURE----- --Zs/RYxT/hKAHzkfQ--