X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by lists.alpinelinux.org (Postfix) with ESMTP id DF06FF8507C for ; Mon, 3 Jun 2019 06:45:37 +0000 (UTC) Received: by mail-lf1-f65.google.com with SMTP id q26so12663273lfc.3 for ; Sun, 02 Jun 2019 23:45:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FCae4/WpVPZ9ccfJJyh79RSdmu8jU64zS2pm1Zg9T1E=; b=MgmeV8C7rYc3U2YWM+aOSwkUjMIrj0spkqF/Rvd63Pxt1XdiCRp/0zNS8k2o/FyhGS VPjaRNK2KPEfsfgtxZuz8+me7/WBWPUSPmFBdS47bPOzeCbA9zWE/6U8GnH8PMAlUv3Z 6Igbhcb+2n9tJntlP6z6M8ai3VxavGJIp1mq/Zbzi0hiOdK+igZL403noPGlY9ITn+E/ kK48eExPJYlp3crTOD5npJQqPLtzA6Xq3OMB8b7xQNjLRA8OzqbbSleh3o92HvPq5gE0 2DNd1YPSdA56eGny7VACJNEBlcNzskM7067cN61ZPJNhwp0Japz4A9QuZyVGE/MyCpM3 MOAA== X-Gm-Message-State: APjAAAXpo71gkDBdyFgPevh7ajprf0rYJnavbmNXa+x/ESqNFdV+V/YJ bpJ5p36gmhtn6ncX6iDpA9WyiLvu X-Google-Smtp-Source: APXvYqzJtyDTYkvjzMufAsgH+P+1qcdK7dE3Wb9WdkzLih9FW3BScSqRH7VCWHAwLtfbCWChXkEJpg== X-Received: by 2002:a19:7716:: with SMTP id s22mr12722421lfc.64.1559544336982; Sun, 02 Jun 2019 23:45:36 -0700 (PDT) Received: from vostro (ip212-226-171-34.adsl.kpnqwest.fi. [212.226.171.34]) by smtp.gmail.com with ESMTPSA id 20sm375389ljf.21.2019.06.02.23.45.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 02 Jun 2019 23:45:36 -0700 (PDT) Date: Mon, 3 Jun 2019 09:45:33 +0300 From: Timo Teras To: "A. Wilcox" Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH 0/1] apk upgrade has issues when old deps still available Message-ID: <20190603094533.782ca468@vostro> In-Reply-To: <20190601042516.56133-1-AWilcox@Wilcox-Tech.com> References: <20190601042516.56133-1-AWilcox@Wilcox-Tech.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-alpine-linux-musl) 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=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, On Fri, 31 May 2019 23:25:15 -0500 "A. Wilcox" wrote: > When running `apk upgrade -al` only packages listed in the world file > are forced to upgrade. If a package in world has a dependency that > is eligible for upgrade, but the currently installed version is also > still available in the repository, it will not be considered for > upgrade. >=20 > This causes considerable breakage for at least Ad=C3=A9lie Linux; we keep > built packages around on the mirrors indefinitely. This breakage was > noticed during upgrades of 1.0-BETA2 to 1.0-BETA3, and the solver log > (using DEBUG_PRINT) can be seen at [1]. >=20 > The patch I am sending fixes this issue for us by adding an option to > the upgrade applet, '-d' or '--deep', which causes the solver to > prefer newer versions of all selected packages when available. The > difference in the solver log can be seen at [2]. >=20 > [1]: https://www.adelielinux.org/storage/apk-error.log > [2]: https://www.adelielinux.org/storage/deep.diff Thanks for the debug logs, and analysis so far. I have seen this also once or twice and been wondering what is causing it. However, instead of adding yet another switch. I'd like to fix the root cause and make this default behaviour. Furthermore, I think the patch suggested breaks at least package pinning. Was any package pinning used? Is there any cycles, or errors in the repository? E.g. does "apk dot --errors --installed" see anything problematic? Do you have an easy way for me to duplicate this setup, to further analyze the issue? It is likely related to the solver doing things in wrong order which causes some of the dependency inherited flags to not be available at the time when the dependency gets processed. Thanks, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---