Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 225B5782D1A for <~alpine/devel@lists.alpinelinux.org>; Thu, 8 Apr 2021 06:41:51 +0000 (UTC) Received: by mail-lf1-f48.google.com with SMTP id h19so2082023lfu.9 for <~alpine/devel@lists.alpinelinux.org>; Wed, 07 Apr 2021 23:41:51 -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=rYkjcKcMsvmYVqSw4LoqmAQspUdsbPXsyJuec3pWmpw=; b=FxELv6gjxOSUqtMWiclB5b+S8w/Gq7xa14QJ+9LM1C6d94nczHlxcSg9byNSSRWUeP bN3aAKJtgSmvA83M7l61q4R5hrS9IGUi3jeEMAP4nrNQ7KI2Lz75pRlWko1BJ1i9d95B bhDYgZt1jwV8VDdFU7IBKC81dersbWfAQNz9BLIW5qjS/HMLrrfxavjifNOv7Ztw9xER 35NJOkF7qJWF1+RNWPWgjcV5C2sa650f4dRHAoH2xEtJdxurtOvs4L536FqUTcrDQ4iG YckeQTrhjdrGWyI95amBVphP7ogz1S3qJNKfbWOvmCz3pmh0nyHU8UWJAi5TLW9I4GOD 9YnA== X-Gm-Message-State: AOAM5304Xk+K+iFDRiTXFXbuaNweBkDjJH8lrXtGPmt4xBHHU3LUEGRL H0S77KMk6MivFa/PFRlVloc= X-Google-Smtp-Source: ABdhPJwpgeiyCJIsco6/U/VaJSy78ZRFuIvbt9c2X5jXrP0ZrSU6z+BndhxZJ0CpU6faDXT14GBKqg== X-Received: by 2002:a19:7e97:: with SMTP id z145mr5427499lfc.280.1617864110862; Wed, 07 Apr 2021 23:41:50 -0700 (PDT) Received: from vostro (87-92-226-249.rev.dnainternet.fi. [87.92.226.249]) by smtp.gmail.com with ESMTPSA id g6sm2725787lfh.232.2021.04.07.23.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 23:41:50 -0700 (PDT) Date: Thu, 8 Apr 2021 09:41:48 +0300 From: Timo Teras To: Ariadne Conill Cc: Wolf , ~alpine/devel@lists.alpinelinux.org Subject: Re: Why does apk fail to install packages with 0 size? Message-ID: <20210408094148.734c4091@vostro> In-Reply-To: References: <20210407225006.thogaepvkqq2ytbx@wolfsden.cz> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Wed, 7 Apr 2021 18:08:25 -0600 (MDT) Ariadne Conill wrote: > On Thu, 8 Apr 2021, Wolf wrote: > > > So, my question is: Is this behaviour intentional? If so, why? And > > if it is not, what would be nice way to fix this? I can work on > > patch, however I'm not sure what would be the best angle. > > I didn't think about the 0 installed-size at first. Yes, this is > intentional: packages with a 0 installed-size are treated as virtuals. Same here. And yes, intentional. What normally happens is that 'abuild' will stat all files disk-allocation size in the package and sum them to installed size. Even zero files usually have "IO Blocks" size of 4k or whatever is the smallest size on disk. But apparently there are file systems where this can be zero. This does remind me of similar issue earlier now. I think abuild should in this case still set non-zero installed-size as the fix. > But, this can probably be fixed with a better design as part of > apk-tools 3. Yes. The problem more connected to package generation. And this will be automatically fixed in apk3 where package generation happens by apk itself. Timo