You are not logged in.

#1 2020-09-04 09:45:55

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

[SOLVED] Renaming the Aur package

Hi!

I have a package in the AUR repository, called "cine-encoder".
Tell me please how to rename it to "cine_encoder" (I need to rename it for versatility).
Thanks!

Last edited by Helg1980 (2020-09-04 12:58:55)

Offline

#2 2020-09-04 10:05:37

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [SOLVED] Renaming the Aur package

How does this make the package more versatile?
If you really need this alias, add it to provides=().

Offline

#3 2020-09-04 10:26:37

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: [SOLVED] Renaming the Aur package

I just use the same setup.py to create .deb packages,
and there is a requirement that the name does not include a dash.

Please tell me where exactly I need to write the command "  provides=()"

I added the provides=('cine-encoder') command to PKGBUILD, but it didn't help.


...
remote: error: invalid pkgbase: cine_encoder, expected cine-encoder
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/cine-encoder.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'
[helg@Houston cine-encoder]$ 

Last edited by Helg1980 (2020-09-04 10:53:16)

Offline

#4 2020-09-04 11:22:21

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [SOLVED] Renaming the Aur package

The AUR has nothing to do with Debian. In fact, the Arch Linux package name is completely irrelevant to your problem.
It is however, indeed, a Python convetion, that package and unit names do not include dashes, but should be named using the snake_case style.
This, however, seems to be a trivial programming issue and you just need to adjust the upstream code accordingly.

Offline

#5 2020-09-04 11:31:27

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: [SOLVED] Renaming the Aur package

schard wrote:

The AUR has nothing to do with Debian. In fact, the Arch Linux package name is completely irrelevant to your problem.
It is however, indeed, a Python convetion, that package and unit names do not include dashes, but should be named using the snake_case style.
This, however, seems to be a trivial programming issue and you just need to adjust the upstream code accordingly.


I have already adjusted and excluded dashes from folder and file names,
but the problem is that an error occurs when trying to send the program
to an existing AUR repository.

The question is whether it is possible or not to change the settings
so that this error does not appear.
I just don't want to create 2 different setup.py files in GitHub for .deb and for Arch.


Or, alternatively, is it possible to remove the old repository:
ssh://aur@aur.archlinux.org/cine-encoder.git
and create a new one:
ssh://aur@aur.archlinux.org/cine_encoder.git

Last edited by Helg1980 (2020-09-04 11:41:20)

Offline

#6 2020-09-04 11:56:30

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,933
Website

Re: [SOLVED] Renaming the Aur package

The program's source code has no place in the AUR.
That includes the setup.py.

Helg1980 wrote:

Or, alternatively, is it possible to remove the old repository:
ssh://aur@aur.archlinux.org/cine-encoder.git
and create a new one:
ssh://aur@aur.archlinux.org/cine_encoder.git

Again:

schard wrote:

The AUR has nothing to do with Debian. In fact, the Arch Linux package name is completely irrelevant to your problem.

Last edited by schard (2020-09-04 11:59:48)

Offline

#7 2020-09-04 12:01:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Renaming the Aur package

Helg1980 wrote:

but the problem is that an error occurs

If you want help with that error, you'll have to tell us what it is.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2020-09-04 12:28:52

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: [SOLVED] Renaming the Aur package

It all started when I decided to update the program version
in the AUR repository.
But in the new version, I changed the name
pkgname=cine-encoder to pkgname=cine_encoder in the PKGBUILD file.

When trying to update the program in the AUR repository, the following error occurs:

[helg@Houston cine-encoder]$ git push origin master
Enter passphrase for key '/home/helg/.ssh/aur': 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 826 bytes | 826.00 KiB/s, done.
Total 8 (delta 4), reused 0 (delta 0), pack-reused 0
remote: error: invalid pkgbase: cine_encoder, expected cine-encoder
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/cine-encoder.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/cine-encoder.git'

Offline

#9 2020-09-04 12:36:08

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: [SOLVED] Renaming the Aur package

Now I think maybe I shouldn't change " pkgname"
I haven't "woken up" yet, apparently....

Last edited by Helg1980 (2020-09-04 12:37:03)

Offline

#10 2020-09-04 12:42:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Renaming the Aur package

No you shouldn't change the pkgname.

It sounded like you were saying there was an error uploading the PKGBUILD, so you wanted to change the name to address that error, when in fact, the only error seems to be from you changing the pkgname!

There are ways of changing the name of an AUR package - but I just don't see any reason here to do so.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2020-09-04 12:47:09

Helg1980
Member
From: Königsberg
Registered: 2020-07-23
Posts: 37

Re: [SOLVED] Renaming the Aur package

Yes, everything worked out. I apologize.

Offline

#12 2020-09-04 12:51:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Renaming the Aur package

No worries - we all have undercaffenated moments.  As this is resolved, please mark the thread as [SOLVED] by editing your first post.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB