~alpine/devel

4 3

how to maintain a set of local packages, probably a feature request

Details
Message ID
<82a82852-43fc-4336-9037-4ba8fd7241b7@gmail.com>
DKIM signature
missing
Download raw message
Hi,

I am planing to build/maintain a small set of packages locally,
(after some experimental changes),
below is a versioning method I was thinking to do,

For packages that are already in aports,
a. have same version as in aports, so as to keep in track/update with 
upstream alpine-aports version.
b. add some sort to policy marker in version, eg. package
    abc-xyz-1.2.3-r0-vkr

Entry in APKBUILD would look like:
-------------
pkgname=abc-xyz
pkgver=1.2.3
pkgrel=0
brand=vkr
-------------

Here "brand" value is a keyword for apk-tools to sort and handle both 
original package and custom package.

Make an entry in /etc/conf.d/apk(default), /etc/apk/policy

eg, policy configs

[brand]
vkr >= ""
vkr >= pmo
deb <= alp
sel >= ""

so, based on brand apk-tool should be able sort and install the package 
if both version is same.

Any guide and suggestion on other approaches would be helpful.

-- 
Regards,
V.Krishn
Details
Message ID
<DLX2HO92F5PE.1DPDIGN4MVIF9@posteo.net>
In-Reply-To
<82a82852-43fc-4336-9037-4ba8fd7241b7@gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Mon Oct 5, 2026 at 7:29 PM CEST, V.Krishn wrote:
>
> Hi,
>
> I am planing to build/maintain a small set of packages locally,
> (after some experimental changes),
> below is a versioning method I was thinking to do,
>
> For packages that are already in aports,
> a. have same version as in aports, so as to keep in track/update with 
> upstream alpine-aports version.
> b. add some sort to policy marker in version, eg. package
>     abc-xyz-1.2.3-r0-vkr
>
> Entry in APKBUILD would look like:
> -------------
> pkgname=abc-xyz
> pkgver=1.2.3
> pkgrel=0
> brand=vkr
> -------------
>
> Here "brand" value is a keyword for apk-tools to sort and handle both 
> original package and custom package.
>
> Make an entry in /etc/conf.d/apk(default), /etc/apk/policy
>
> eg, policy configs
>
> [brand]
> vkr >= ""
> vkr >= pmo
> deb <= alp
> sel >= ""
>
> so, based on brand apk-tool should be able sort and install the package 
> if both version is same.
>
> Any guide and suggestion on other approaches would be helpful.


For maintaing local packages in my experience the easiest option is to
package it under a different name and have provides that meet
dependencies when necessary. Sometimes people also use very-hight version
numbers.

In many cases tagged repositories can also help with managing local
packages as one wants.
Details
Message ID
<aed3b030-1513-421b-b7c1-29d1b3048609@gmail.com>
In-Reply-To
<DLX2HO92F5PE.1DPDIGN4MVIF9@posteo.net> (view parent)
DKIM signature
missing
Download raw message
On 10/5/26 17:06, Sertonix wrote:
> On Mon Oct 5, 2026 at 7:29 PM CEST, V.Krishn wrote:
>>
>> Hi,
>>
>> I am planing to build/maintain a small set of packages locally,
>> (after some experimental changes),
>> below is a versioning method I was thinking to do,
>>
>> For packages that are already in aports,
>> a. have same version as in aports, so as to keep in track/update with
>> upstream alpine-aports version.
>> b. add some sort to policy marker in version, eg. package
>>      abc-xyz-1.2.3-r0-vkr
>>
>> Entry in APKBUILD would look like:
>> -------------
>> pkgname=abc-xyz
>> pkgver=1.2.3
>> pkgrel=0
>> brand=vkr
>> -------------
>>
>> Here "brand" value is a keyword for apk-tools to sort and handle both
>> original package and custom package.
>>
>> Make an entry in /etc/conf.d/apk(default), /etc/apk/policy
>>
>> eg, policy configs
>>
>> [brand]
>> vkr >= ""
>> vkr >= pmo
>> deb <= alp
>> sel >= ""
>>
>> so, based on brand apk-tool should be able sort and install the package
>> if both version is same.
>>
>> Any guide and suggestion on other approaches would be helpful.
> 
> 
> For maintaing local packages in my experience the easiest option is to
> package it under a different name and have provides that meet
> dependencies when necessary. Sometimes people also use very-hight version
> numbers.
> 
> In many cases tagged repositories can also help with managing local
> packages as one wants.

I am trying to avoid different name and tagging or pinning explicitly,
but may have to resort to it :(.

Another reason apart from easy maintenance of aports, would be, then I 
can change the policy from eg.

[brand]
pmo >= ""

[brand]
pmo >= ""
nur >= pmo

and switch to different a brand, without lots of changes.


-- 
Regards,
V.Krishn
Hugo Osvaldo Barrera <hugo@whynothugo.nl>
Details
Message ID
<376650b2-93e6-4470-b5f8-8b7d87e7d9c2@app.fastmail.com>
In-Reply-To
<82a82852-43fc-4336-9037-4ba8fd7241b7@gmail.com> (view parent)
DKIM signature
missing
Download raw message

On Mon, 5 Oct 2026, at 19:29, V.Krishn wrote:
> Hi,
>
> I am planing to build/maintain a small set of packages locally,
> (after some experimental changes),
> below is a versioning method I was thinking to do,
>
> For packages that are already in aports,
> a. have same version as in aports, so as to keep in track/update with 
> upstream alpine-aports version.
> b. add some sort to policy marker in version, eg. package
>     abc-xyz-1.2.3-r0-vkr
>
> Entry in APKBUILD would look like:
> -------------
> pkgname=abc-xyz
> pkgver=1.2.3
> pkgrel=0
> brand=vkr
> -------------

abuild has no awareness of this "brand" field. It won't
be included in the package, nor in the index. apk is
oblivious to this value being set here.

-- 
Hugo
Details
Message ID
<3f660cec-5df1-486f-9165-04656e1d6f75@gmail.com>
In-Reply-To
<376650b2-93e6-4470-b5f8-8b7d87e7d9c2@app.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On 10/5/26 17:35, Hugo Osvaldo Barrera wrote:
> 
> 
> On Mon, 5 Oct 2026, at 19:29, V.Krishn wrote:
>> Hi,
>>
>> I am planing to build/maintain a small set of packages locally,
>> (after some experimental changes),
>> below is a versioning method I was thinking to do,
>>
>> For packages that are already in aports,
>> a. have same version as in aports, so as to keep in track/update with
>> upstream alpine-aports version.
>> b. add some sort to policy marker in version, eg. package
>>      abc-xyz-1.2.3-r0-vkr
>>
>> Entry in APKBUILD would look like:
>> -------------
>> pkgname=abc-xyz
>> pkgver=1.2.3
>> pkgrel=0
>> brand=vkr
>> -------------
> 
> abuild has no awareness of this "brand" field. It won't
> be included in the package, nor in the index. apk is
> oblivious to this value being set here.
> 

I think I would do a feature request for it in gitlab, but wait for some 
comments to reason out its usability.

-- 
Regards,
V.Krishn
Reply to thread Export thread (mbox)