Subject: [alpine-devel] Possible documentation mistake in APKBUILD reference

From: Martin Galvan <[email-masked]>
Date: Wed, 24 Jan 2018 16:14:03 -0300

Hi all,

I saw that http://wiki.alpinelinux.org/wiki/APKBUILD_Reference#install says:

"Note: When using install scripts, $install should be included in
source so that checksums can be generated and used for the install
scripts specified in install. For example:

install="$pkgname.pre-install $pkgname.post-install"
source="http://....
       $install"
"

However, if I do that, abuild -r says:

>>> WARNING: myPackage: You should not have $install in source

Is this a mistake in the docs, or I didn't understand how it works?

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Jakub Jirutka <[email-masked]>
Date: Wed, 24 Jan 2018 22:26:10 +0100

Hi,

it’s a mistake in the docs.

Jakub

> On 24. Jan 2018, at 20:14, Martin Galvan <[email-masked]> wrote:
> 
> Hi all,
> 

---

---

From: Martin Galvan <[email-masked]>
Date: Wed, 24 Jan 2018 18:27:18 -0300

In that case, should I still add $install to source just for abuild
checksums, then remove it for abuild -r?

---

---

From: Kiyoshi Aman <[email-masked]>
Date: Wed, 24 Jan 2018 21:34:18 +0000

No, the contents of $install do go into $source, just not $install itself.

-- 
-- Kiyoshi Aman

---

From: Jakub Jirutka <[email-masked]>
Date: Wed, 24 Jan 2018 22:34:47 +0100

No, don't add it to the $source at all. I will fix the wiki page after I arrived home.

Jakub

On 24 January 2018 22:27:18 CET, Martin Galvan <[email-masked]> wrote:
>>> I saw that
>http://wiki.alpinelinux.org/wiki/APKBUILD_Reference#install says:
>>>

---

From: Martin Galvan <[email-masked]>
Date: Mon, 29 Jan 2018 14:43:43 -0300

Hi, I just checked and the mistake is still there.

---