From owner-freebsd-pkg@FreeBSD.ORG Sun Feb 17 12:07:44 2013 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 49A35B6A for ; Sun, 17 Feb 2013 12:07:44 +0000 (UTC) (envelope-from pawelbsd@gmail.com) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by mx1.freebsd.org (Postfix) with ESMTP id A5F663D7 for ; Sun, 17 Feb 2013 12:07:43 +0000 (UTC) Received: by mail-bk0-f50.google.com with SMTP id jg9so2139885bkc.9 for ; Sun, 17 Feb 2013 04:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:x-mailer :mime-version:content-type; bh=04ZzOD+nXmHKpZgoZNjIvEPOdA1qmxoeXAQJy/Ic8Zg=; b=tmdVwnSRgmrMe/O5v2nOQr04BKM4i+HvDS0x1Eb61H22jK+yl30hJCJ1vmXGP/sxHY r3gOqDVwl9CGzBosD070GX9chJjZX6sgn+1BSJXQbrqukskTEMUm3a0FGx57n9PwRUrU MP2SdKkI4hzDC9SwKeZjsyJhB5U01YNa/RByVguEC13wOc3UFfMAWsdcLgQXaAkn1F4B syTlaIj3oogqcVl4WaGl6epMCTj3gZGSJUrHk14evid1luYygyiUKxK8AxUFRwTOZVlT 09nwV+/yXuvujcRL8Y3VbY2cCD5L8EBu/pIPhLCJEzX9jHKaF0078JfiXk4nPSG7qXyH xARA== X-Received: by 10.204.141.17 with SMTP id k17mr3095765bku.67.1361102862333; Sun, 17 Feb 2013 04:07:42 -0800 (PST) Received: from localhost ([176.109.164.5]) by mx.google.com with ESMTPS id o2sm13067143bkv.3.2013.02.17.04.07.39 (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 17 Feb 2013 04:07:40 -0800 (PST) Sender: =?UTF-8?B?UGF3ZcWCIFDEmWthbGE=?= Date: Sun, 17 Feb 2013 13:05:34 +0100 From: Pawel Pekala To: freebsd-pkg@freebsd.org Subject: Stale vs duplicate dependencies - bug ? Message-ID: <20130217130534.7bf9fc85@FreeBSD.org> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/Z9R6X7L5tKTuN/a6Zkj8f9K" X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2013 12:07:44 -0000 --MP_/Z9R6X7L5tKTuN/a6Zkj8f9K Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello While working on my script checking for linking problems in packages I have found strange thing. Some of my packages have stale dependencies: [corn:~/backup]# pkg info -d konversation-1.1_5 | egrep "(png|pciids|cups-c= lient)" cups-client-1.5.4 pciids-20121208 png-1.5.13 [corn:~/backup]# pkg info -q png pciids cups-client png-1.5.14 pciids-20130201 cups-client-1.5.4_1 Well, I just recompile package and should fix this I thought. Thing is dependencies are not bumped and nothing is changed. One thing caught my attention:=20 =3D=3D=3D> Registering installation for konversation-1.1_5 pkg: duplicate dependency listing: cups-client-1.5.4_1, ignoring pkg: duplicate dependency listing: pciids-20130201, ignoring pkg: duplicate dependency listing: png-1.5.14, ignoring Installing konversation-1.1_5... done After quick hack session I've created attached patch which seems to fix this issue for me. After patching pkg and recompiling konversation: =3D=3D=3D> Registering installation for konversation-1.1_5 pkg: stale dependency: cups-client-1.5.4, bumping to 1.5.4_1 pkg: stale dependency: pciids-20121208, bumping to 20130201 pkg: stale dependency: png-1.5.13, bumping to 1.5.14 Installing konversation-1.1_5... done [corn:~/backup]# pkg info -d konversation-1.1_5 | egrep "(png|pciids|cups-c= lient)" cups-client-1.5.4_1 pciids-20130201 png-1.5.14 This is on my development machine where there is a lot going on, so my ques= tion is - can anyone reproduce this ? --=20 pozdrawiam / with regards Pawe=B3 P=EAkala --MP_/Z9R6X7L5tKTuN/a6Zkj8f9K Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=stale-dep-bump.diff --- ./libpkg/pkg.c.orig 2013-01-28 19:13:23.000000000 +0100 +++ ./libpkg/pkg.c 2013-02-16 18:52:08.000000000 +0100 @@ -584,6 +584,13 @@ while (pkg_deps(pkg, &d) != EPKG_END) { if (!strcmp(origin, pkg_dep_origin(d))) { + if (pkg_version_cmp(version, pkg_dep_version(d)) == 1) { + pkg_emit_error("stale dependency: %s-%s, bumping to %s", + name, pkg_dep_version(d), version); + sbuf_set(&d->version, version); + return (EPKG_OK); + } + pkg_emit_error("duplicate dependency listing: %s-%s, ignoring", name, version); return (EPKG_OK); } --MP_/Z9R6X7L5tKTuN/a6Zkj8f9K-- From owner-freebsd-pkg@FreeBSD.ORG Wed Feb 20 17:39:26 2013 Return-Path: Delivered-To: pkg@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C023FFB for ; Wed, 20 Feb 2013 17:39:26 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mail.egr.msu.edu (hill.egr.msu.edu [35.9.37.162]) by mx1.freebsd.org (Postfix) with ESMTP id 989B96C2 for ; Wed, 20 Feb 2013 17:39:26 +0000 (UTC) Received: from hill (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id 8B73329EF4 for ; Wed, 20 Feb 2013 12:31:02 -0500 (EST) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by hill (hill.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b8OKpAEpSSiF for ; Wed, 20 Feb 2013 12:31:02 -0500 (EST) Received: from EGR authenticated sender Message-ID: <51250856.5060302@egr.msu.edu> Date: Wed, 20 Feb 2013 12:31:02 -0500 From: Adam McDougall User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130220 Thunderbird/17.0.3 MIME-Version: 1.0 To: pkg@freebsd.org Subject: Chromium dies when pkg updates packages? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2013 17:39:26 -0000 Anyone seen chromium die when pkg upgrades or installs packages? I don't see it every time, but for example: Upgrading nspr: 4.9.4 -> 4.9.5 Upgrading nss: 3.14.1 -> 3.14.3 Upgrading ca_root_nss: 3.14.1 -> 3.14.3 Upgrading thunderbird: 17.0.2 -> 17.0.3 Upgrading firefox: 18.0.2,1 -> 19.0,1 -rw------- 1 mcdouga9 wheel 313397248 Feb 20 12:27 chrome.core It happens every single time my co-worker uses pkg to install something, even a new package that has nothing to do with chromium. I haven't had time to dig into this.