You are not logged in.
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
How does this make the package more versatile?
If you really need this alias, add it to provides=().
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
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
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.
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
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
The program's source code has no place in the AUR.
That includes the setup.py.
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:
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)
macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }
Offline
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
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
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
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
Yes, everything worked out. I apologize.
Offline
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