From owner-freebsd-current@FreeBSD.ORG Sun Nov 2 09:25:01 2014 Return-Path: Delivered-To: current@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 0F5F49F3 for ; Sun, 2 Nov 2014 09:25:01 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98DD2DFB for ; Sun, 2 Nov 2014 09:25:00 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id m15so3747215wgh.35 for ; Sun, 02 Nov 2014 01:24:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:date:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=RGvZvyf0+uR3BMWrgrxZ9JQiMfvP6uyDXJPHc3z+pug=; b=aCjx62NtYVOlNZhOqzn1YLjAISjwLC6vxbYJ5xkjBNA4aeqfhwqWqfdedOAM/wa+ba uWHa/BvfBoF5xkI3nvbSvPVPe26Zli/ZBuLS5HE7xFpaVobFyEF/OGeiftc9FHQ7t+2j /cNKCpe6TUEIEsuVNF9DH5vfNGWRHuZoWjuQG+CqbORYizodQe/L9FZMNW8RbtRE8qCC RRV8oAOhnwEKjbHLYESDJT80iX+KN6g0uChfzSNCEVoIiBb7Twr1wOOjOY9lH8W5+dQZ GV7GoFecMBOE0L3Fffy4M+r6L9D0fCxfCk4wZogST33nr3T/WnKum1+JYrp/cxoYU+Sg 9fpA== X-Received: by 10.194.143.7 with SMTP id sa7mr907937wjb.110.1414920298303; Sun, 02 Nov 2014 01:24:58 -0800 (PST) Received: from ubm.strangled.net (ipb219cb25.dynamic.kabel-deutschland.de. [178.25.203.37]) by mx.google.com with ESMTPSA id q9sm4566379wix.6.2014.11.02.01.24.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Nov 2014 01:24:57 -0800 (PST) From: Marc UBM X-Google-Original-From: Marc "UBM" Bocklet Date: Sun, 2 Nov 2014 10:24:55 +0100 To: current@FreeBSD.org Subject: Re: pkg 1.4 freeze please test test test! Message-Id: <20141102102455.30d42f85ff81e079788eae06@gmail.com> In-Reply-To: <20141101224549.GG15967@ivaldir.etoilebsd.net> References: <20141028231933.GG26796@ivaldir.etoilebsd.net> <20141101161332.b9c8fc19bf9fc54f73bc5c00@gmail.com> <20141101224549.GG15967@ivaldir.etoilebsd.net> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 02 Nov 2014 09:25:01 -0000 On Sat, 1 Nov 2014 23:45:49 +0100 Baptiste Daroussin wrote: Thanks for the quick reply! :-) [...] > > > > The update is failing for me with: > > > > .../usr/ports/ports-mgmt/pkg-devel# make all install clean > > ===> Installing for pkg-1.4.0.a3 > > ===> Checking if pkg already installed > > pkg-static: sqlite error while executing DROP INDEX > > packages_unique;CREATE UNIQUE INDEX packages_unique ON packages(name); > > in file pkgdb.c:2246: UNIQUE constraint failed: packages.name *** Error > > code 74 > > > > Stop. > > make[1]: stopped in /usr/ports/ports-mgmt/pkg-devel > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/ports/ports-mgmt/pkg-devel > > > > > > > > portmaster fails with: > > root@ubm:/usr/ports/ports-mgmt/pkg-devel# portmaster -d pkg > > ===>>> No ORIGIN in /var/db/pkg/pkgconf-0.9.7/+CONTENTS > > > > > > ===>>> Cannot continue > > ===>>> Aborting update > > > > ===>>> Killing background jobs > > Terminated > > ===>>> Exiting > > > > make.conf related options: > > > > #enable pkgng (might be superfluous) > > WITH_PKGNG=yes > > #enable PKGNG devel > > WITH_PKGNG=devel > > > > Am I doing something wrong? > > You are doing nothing wrong but that probably means you have ancient packages > that never got upgraded (in the old time it was allowed to have 2 packages > installed with the same name) we have fixed that over the time and that is why > we had unicity set to origin as a hack for a while, we are now moving to unique > name so you have to make sure that all your installed packages are up to date > before moving to new pkg. Hmm, that seems highly unlikely. I'm upgrading my ports pretty regularily (maybe lagging two or three months behind at the worst). I also was running with pkg 1.4.a16 before the upgrade failed. Bootstrapping the stable version works (just tried that) - but if I try going from pkg-1.3.8_3 to pkg-devel, it fails with exactly the same error. Even if by chance there is a single ancient package on my system that was never upgraded (something discontinued with no dependencies like e.g. multimedia/xmms comes to mind) - should that really stop users from upgrading to 1.4? And if yes, shouldn't there be a way to tell the users what the offending package is? > At least make sure you do not have 2 packages with the same name. > > Concerning portmaster I have no idea why it now thinks you are not using > pkg :( Once pkg-1.3.8_3 is bootstrapped, portmaster tries using pkg again, but then (predictably) fails with: ===> An older version of pkg is already installed (pkg-1.3.8_3) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of pkg without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 So I guess the portmaster script checks if any version of pkg is installed and if none is found, it falls back to the pre-pkg ports management. Bye Marc