From nobody Thu Mar 28 08:41:04 2024 X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-ua0-f174.google.com (mail-ua0-f174.google.com [209.85.217.174]) by lists.alpinelinux.org (Postfix) with ESMTP id 38E555C44EE for ; Fri, 26 Aug 2016 02:15:12 +0000 (GMT) Received: by mail-ua0-f174.google.com with SMTP id m60so75304979uam.3 for ; Thu, 25 Aug 2016 19:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=MCe8w6onLFemcdsNHnRIB2W0h0/AmWEOiHoxQ8SsAxA=; b=ItO6iNTOTexsKO0RRxAV2Zr/cj2OfCu/AYrTj2l+HDlTqwpTo4yar11TigSsZqIxpg YjCtCyNHPVdQ/FlDCudUEl70QNXVN3GEt+pd1ANF+yLGaKat1e/UgFbBFz6FHAfmdNee 3sL6Uk8fwTJnPDLy77uJ8SyxmSZSfF6sHArz6LcFMCRipxoArvTzoudvLVpDrjjnYkQS BVW9dwwgHEF3qZPLyTZDq+moFZmoG0n7CHxeElal/A/wZphU+WcVOvlbAvRpw0JAF36L ucqydV6HAtMkMNc9CIrsYCz70lguH83Zhl8r5LAJMGn5GaQil0ukHfBgsB2gsGcYFyKq aD7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MCe8w6onLFemcdsNHnRIB2W0h0/AmWEOiHoxQ8SsAxA=; b=dTOTaWVUKbme+IlLaqKHGAZacMho/EjL2BNc1R3ALDNvmASc3gphjypaRtmAE5oAxH 6dJk5SgqVjp7762V3hkjNqUCRvU66pBPIesKK5Pi+mchUKU7Kfb3BGnPTymkdEFh4IMb WAxor1JzuGnKquhOclpHUp8e4esly+88iUUwp9/0OpfLPpf7Z1kUaLVD17NHxeoA/Kzq BLBc+rrFlMaOq6dgdyB9hcI/rXHlolxWfzp7dwdYQEFHab8FVwU72NdlAs1zgOrV+Epm abB6uxf9apco9+fhBqSdkuRMFl8OspyaQpCRDkaqDbqhSQQG/KGK/2toYdhI/JV6LUx7 u2iQ== X-Gm-Message-State: AE9vXwPx/+FQscfgnHciuK/pXSuaumuZIrX/D7IEqc/VRI4qjBx2Bbjs7w5x3+TD1GhrkLuqmKl9h5W9o+GPRA== X-Received: by 10.176.0.3 with SMTP id 3mr411075uai.71.1472177711600; Thu, 25 Aug 2016 19:15:11 -0700 (PDT) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.103.64.74 with HTTP; Thu, 25 Aug 2016 19:15:11 -0700 (PDT) From: Alba Pompeo Date: Thu, 25 Aug 2016 23:15:11 -0300 Message-ID: Subject: [alpine-devel] Moving packages between repositories break systems To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset=UTF-8 When a package is moved from /testing to /community or /testing to /unmaintained out of nowhere, users experience system breakage. That's because it loses the pinning. What can be done to prevent this? Post-scripts when a package is moved? ANOTHER NOTE: someone was asking on IRC today why apk suddenly showed the error that "xmlstarlet-1.6.1-r0: package mentioned in index not found" out of nowhere. It's because it moved across repositories, the same issue from above. But there's something even more weird on this one. It moved from /testing to /unmaintained! Why? The xmlstarlet package is in the latest version and has a clear maintainer (Francesco Colista). Why did it go to unmaintained instead of community? Anyway, that's a matter for another post. Let's focus on how to solve the main problem. tl;dr - how to make apk aware of packages that were moved from one repository to another. Ciao! --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org --- From nobody Thu Mar 28 08:41:04 2024 X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 8BFD95C4250 for ; Fri, 26 Aug 2016 08:04:06 +0000 (GMT) Received: by mail-lf0-f66.google.com with SMTP id 33so3413566lfw.3 for ; Fri, 26 Aug 2016 01:04:06 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=I3nBNgOf+6CQg0ADYdanGLA1Cu6rPEIK5q1DeyFkUNw=; b=fo0JdeX291vyAHmyNVlsKAmvEzMdLqozBPm9prtnpfS78EVoB7CLKeXRvoxy4gim8J DD+pSB84bgWCRd+CRVJpJSiX8N0ulj1p85ZNjlaUYa8CKXu6K2FdAvZ/XHD7oxAdAPoQ uZIhcztocDNGbTnHUJkbEyUWXhOpDC3BBqSIczBfa160caNyWj6AmTZ2tSvFK/uG531x nPWoUGOyEwcBQgAtsA/7RGe3vJsmGRVOtHi0DcPdStc64Bm7UoJgIBSveWlGaPQReZhl gMtYlNwJmLC/LiDSXHoEOo/HqZYvHGXbf+/z9WyzOGMfTRBny00zFNUzC3NR6HS1lUnx nDRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=I3nBNgOf+6CQg0ADYdanGLA1Cu6rPEIK5q1DeyFkUNw=; b=W3OURczimHtQNWga/pSCA1n0R4cQ4BsiQgND89DHQmQyOX796W1YASCuJz40B+qDlG i3Q/E97eb+EkSJgoJBi+iJK1RPcF0C8zGCfhAmqVVSqWkQ8FgEN3rFGKbxx+aBwLzhnS /aG9BnSwNCaXtnkgw/d7fz242P74GU5gb/qz6dYTOBZW05T4zT9Q+FY4wITNmbxJ9W7d fT1+ATbGpa/YExm1XjyH5LhUhA7fE7XvRnKtxGowBYJqzsHmh+hKDr8Q2jBkv5//qeEk H5GfoWn/m2H5XrnoeLHzcaFEMIDyXgCGtWG83tFo2HO0SBmcLg0erJUMG8U1AiSh7t7X 0brw== X-Gm-Message-State: AE9vXwNsafUz5UsUaDQBOR6Wk+/bTPBb3bAxDMzqVignfAkN2aZvptrJ1lkNUUH6mgyG7w== X-Received: by 10.25.17.70 with SMTP id g67mr608099lfi.145.1472198645386; Fri, 26 Aug 2016 01:04:05 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id f4sm3685115lji.41.2016.08.26.01.04.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Aug 2016 01:04:05 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Fri, 26 Aug 2016 11:04:02 +0300 From: Timo Teras To: Alba Pompeo Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Moving packages between repositories break systems Message-ID: <20160826110402.344a580f@vostro.util.wtbts.net> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; 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=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 25 Aug 2016 23:15:11 -0300 Alba Pompeo wrote: > When a package is moved from /testing to /community or /testing to > /unmaintained out of nowhere, users experience system breakage. > > That's because it loses the pinning. > > What can be done to prevent this? > Post-scripts when a package is moved? Do you have example logs? I remember seeing something similar before. And the actual cause was that abuild and/or lua-aports did not update the index when repository was updated with package removals only. This left index having stale entries. This said, lua-aports fix might be as simple as: diff --git a/buildrepo.lua b/buildrepo.lua index c665711..bf0f39a 100755 --- a/buildrepo.lua +++ b/buildrepo.lua @@ -239,7 +239,7 @@ for _,repo in pairs(args) do end -- generate new apkindex - if not opts.n and built > 0 then + if not opts.n and (built > 0 or deleted > 0) then info("Updating apk index") apkrepo.update_index(("%s/%s"):format(repodest, repo), abuild.arch, db:git_describe()) --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---