You are not logged in.

#1 2024-08-26 20:36:27

Andrei Korshikov
Member
Registered: 2024-02-10
Posts: 6
Website

[SOLVED] How to rename an aur package properly ?

Five years later… So, how to rename a package properly?

Merging is clear enough. What about PKGBUILD variables?

I have this advice, and I don't understand it totally:

1. Should I use replaces? As far as understand (see here for example), replaces does nothing for AUR.

2. What is the point of using ${pkgver} in provides? Is it really needed? If I don't use package version in provides, what bad things could happen?

(Side note) I would like to post an appropriate section somewhere on the Arch Wiki. If you know the answer — please, share, or edit the Wiki and post a link here.


Moderator Note:
Split off from https://bbs.archlinux.org/viewtopic.php?id=246117

Last edited by Andrei Korshikov (2024-09-05 03:58:06)

Offline

#2 2024-08-31 13:53:54

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] How to rename an aur package properly ?

Keep in mind that the advise given by dreieck is not backed by Package Maintainers(TUs)  as far as I know.
That makes this a decision to be made by the maintainer of  a package, you in this case.

1. Should I use replaces? As far as understand (see here for example), replaces does nothing for AUR.

If an aur package is in an unofficial user repo using replaces may make make the work of the repo maintainers a bit easier.
The aur maintainer would be doing the repo maintainer a courtesy.

IF those unofficial repo maintainers showed courtesy towards the aur package maintainer it could be considered.


2. What is the point of using ${pkgver} in provides? Is it really needed? If I don't use package version in provides, what bad things could happen?

I have used it in the past because it felt cleaner but no longer do.
The repo xorg-server is a case that does use it for a reason. Apart from versioned so-provides I am not aware of other usecases.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-08-31 14:01:14

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,084

Re: [SOLVED] How to rename an aur package properly ?

Versions are necessary if something depends on a version, ie depends=(package>2). If you don't include a version in the provides, it can never satisfy this requirement.

Offline

Board footer

Powered by FluxBB