X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E658ADC00A7 for ; Wed, 5 Dec 2012 09:54:20 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id je9so2381120bkc.13 for ; Wed, 05 Dec 2012 01:54:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=mcS8JaKKNV1fixWVG06Yu2eFB8vFseZAFfS4f/PV6cg=; b=FPZj2UNz1Sa2IWFEYXbOPn4admKvKYz+wlnohl4OYhp3gsW9mgpuAMjL96r3SdmKDs TjWn5whU36evnp2k4eGMLzjtf7wCV2QbDKrDFM1pyAuJf2oY+ntZaek2z3T2EWAYCOlX NR8fIPhklC3bsNnSGIXwy7HD3wv0NWRAnMRJ3rbds49bKWOqG3iIR4ceqLMIYluFXAXB FmavYTUwSvlU5Nb3ysaKX6/ocqDKqIrOF7pFWeAbF3TSIiktaWRyPM/XMBtvvBJnjf5g d8FjoSNQlyReiXthTEU1m/X6pqyAGYbxXXTH02GL2KCi+GKxnbnoYZhFVxcQLtp5Kjoh xW6Q== Received: by 10.204.145.217 with SMTP id e25mr5200528bkv.123.1354701258753; Wed, 05 Dec 2012 01:54:18 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21c:23ff:fefc:bf0b]) by mx.google.com with ESMTPS id o9sm3151415bko.15.2012.12.05.01.54.17 (version=SSLv3 cipher=OTHER); Wed, 05 Dec 2012 01:54:18 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Wed, 5 Dec 2012 11:53:44 +0200 From: Timo Teras To: Dubiousjim Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Some questions about apk-tools Message-ID: <20121205115344.641973d3@vostro> In-Reply-To: <20121203152017.GQ2390@vaio.jimpryor.net> References: <20121128234406.GD2390@vaio.jimpryor.net> <20121129084044.29515fc1@vostro> <20121129124028.GE2390@vaio.jimpryor.net> <20121130154404.68b4de2a@vostro> <20121130151417.GI2390@vaio.jimpryor.net> <20121130153633.GJ2390@vaio.jimpryor.net> <20121203154214.153cc8b0@vostro> <20121203152017.GQ2390@vaio.jimpryor.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.13; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 3 Dec 2012 10:20:17 -0500 Dubiousjim wrote: > Thanks Timo, except I was experimenting with these right now (before > reading your email), to verify my hypotheses, and this is not the > behavior I see. > > # apk version > Installed: Available: > linux-grsec-3.6.7-r0 < 3.6.8-r1 > cups-libs-1.6.1-r0 < 1.6.1-r1 > ghostscript-9.06-r2 < 9.06-r3 > imagemagick-6.8.0.4-r0 < 6.8.0.7-r0 > liblcms-1.19-r3 < 1.19-r4 > poppler-0.20.3-r1 < 0.20.5-r0 > poppler-gtk-0.20.3-r1 < 0.20.5-r0 > epdfview-0.1.8-r5 < 0.1.8-r6 > evince-2.32.0-r11 < 2.32.0-r12 > > Ok, so given what we've said, I'd have expected > `apk fix _` or `apk fix -r _` for one of the packages with an > upgrade available to only install the current version, not the > available upgrade. However: > > # apk fix cups-libs > (1/1) Upgrading cups-libs (1.6.1-r0 -> 1.6.1-r1) > Executing uclibc-utils-0.9.33.2-r14.trigger > OK: 831 MiB in 317 packages This happens because the older version is no longer available in the index. Thus it can't reinstall the same version. So it prefers to intall the new version compared to doing nothing. If you want to test the regular fix, you might take some cdrom image and add it as one source - install package from it. Then add some online repository and see if it has updated version. And then try regular fix - it should reinstall the old version from cdrom. > When the package is up-to-date, then `apk fix _` does indeed > re-install: > > # apk fix cups-libs > (1/1) Re-installing cups-libs (1.6.1-r1) > Executing uclibc-utils-0.9.33.2-r14.trigger > OK: 831 MiB in 317 packages > > But it seems like `apk fix _` is interpreted as `apk fix -u -r _`, not > as just `apk fix -r _`. Not exactly. It is more like: I want this package reinstalled. Please reinstall the one currently installed, but if not available pick best available option. (Which usually is the latest version). > Verified that `apk fix -u _` is a noop if no upgrade is available: > > # apk fix -u cups-libs > OK: 831 MiB in 317 packages > > I thought perhaps `apk fix -r _` might suppress any available > upgrades, even if `apk fix _` didn't. Nope, it installed the upgrade > and perhaps also assumed a `-d`: > > # apk fix -r evince > (1/4) Upgrading liblcms (1.19-r3 -> 1.19-r4) > (2/4) Upgrading poppler (0.20.3-r1 -> 0.20.5-r0) > (3/4) Upgrading poppler-gtk (0.20.3-r1 -> 0.20.5-r0) > (4/4) Upgrading evince (2.32.0-r11 -> 2.32.0-r12) > Executing busybox-1.20.2-r3.trigger > Executing uclibc-utils-0.9.33.2-r14.trigger > Executing glib-2.34.2-r0.trigger > Executing gtk+2.0-2.24.13-r2.trigger > Executing desktop-file-utils-0.20-r0.trigger > OK: 831 MiB in 317 packages > > Hmm, so now I'm confused. It looks like the absence of a `-u` in > `apk fix _` and `apk fix -r _` is not being honored. And maybe a `-d` > is sometimes being tacitly assumed, too... unless the upgraded > dependencies of evince were tagged with versions because they were > auto-detected library dependencies. That wouldn't explain why the > liblcms upgrade was applied, though. I'm not sure about why this would happen. This could be a bug. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---