You are not logged in.

#1 2023-06-02 14:39:59

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Error to read from external repository

hi everyone, i'm trying to upload my first package to aur, but i have some problems. I've followed instructions but on 1.3 step i have error at "git fetch"
here's the error: (sorry, 0x0 didn't work in that way)

git-upload-pack: invalid repository name: VKX
fatal: Failed to read from external repository.

Make sure you have the necessary permissions
and the repository exists.

Offline

#2 2023-06-02 14:59:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Error to read from external repository

From https://wiki.archlinux.org/title/PKGBUILD#Package_name

Package names should only consist of lowercase alphanumerics and the following characters: @._+-

But what are you trying to fetch, exactly?

Last edited by Scimmia (2023-06-02 15:02:15)

Offline

#3 2023-06-02 15:24:23

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

Scimmia wrote:

From https://wiki.archlinux.org/title/PKGBUILD#Package_name

Package names should only consist of lowercase alphanumerics and the following characters: @._+-

But what are you trying to fetch, exactly?

pkgname=Vk_X
pkgbase=VKX

Last edited by shipa_2 (2023-06-02 15:26:34)

Offline

#4 2023-06-02 15:27:40

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Error to read from external repository

Neither of which are valid

Why are you setting the pkgbase at all?

Offline

#5 2023-06-02 15:29:01

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

idk, i can delete that string

Offline

#6 2023-06-02 15:55:56

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Error to read from external repository

If you post the entire PKGBUILD it could be reviewed for other issues.

Offline

#7 2023-06-02 21:20:24

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

loqs wrote:

If you post the entire PKGBUILD it could be reviewed for other issues.

Here it is http://0x0.st/HbOq.txt

Offline

#8 2023-06-02 21:38:47

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Error to read from external repository

http://0x0.st/HbOq.txt produces the following for me

[?2004h[?1049h[22;0;0t[1;24r(B[m[4l[?7h[39;49m[?1h=[?1h=[?25l[39;49m(B[m[H[2J[22;38H(B[0;7m[ Чтение… ](B[m[22;33H(B[0;7m[ Прочитано 40 строк ](B[m[H(B[0;7m  GNU nano 7.2                           PKGBUILD                                     [1;85H(B[m
[23d(B[0;7m^G(B[m Справка    (B[0;7m^O(B[m Записать   (B[0;7m^W(B[m Поиск[43G(B[0;7m^K(B[m Вырезать   (B[0;7m^T(B[m Выполнить  (B[0;7m^C(B[m Позиция
[24d(B[0;7m^X(B[m Выход[15G(B[0;7m^R(B[m ЧитФайл    (B[0;7m^\(B[m Замена     (B[0;7m^U(B[m Вставить   (B[0;7m^J(B[m Выровнять  (B[0;7m^/(B[m К строке
[2d(B[0;1m[37m# Maintainer: iTaysonLab
[3d# Script maker: Shipa_2
[4d[36mpkgname[37m=(B[0m[36mVkX
[5d(B[0;1m[36mpkgver[37m=(B[0m[36m6.3.9
[6d(B[0;1m[36mpkgrel[37m=(B[0m[36m1
[7d(B[0;1m[36mpkgdesc[37m="(B[0m[36mМузыкальный плеер для ВК созданный хорошим человеком | VK music player creat[39m(B[0;7m>[8;1H(B[0;1m[36march[37m=('(B[0m[36many(B[0;1m[37m')
[9d[36murl[37m="(B[0m[36mhttps://vkx.app(B[0;1m[37m"
[10d[36mlicense[37m=('(B[0m[36munknown(B[0;1m[37m')
[11d[36mdepends[37m=('(B[0m[36mwaydroid(B[0;1m[37m')
[12d[36minstall[37m=
[13d#source=("NONE")
[15d(B[0m[32mVAR2(B[0;1m[37m="(B[0m[32mwayland(B[0;1m[37m"
[17d(B[0m[32mif [ (B[0;1m[37m"(B[0m[32m$XDG_SESSION_TYPE(B[0;1m[37m"(B[0m[32m (B[0;1m[37m=(B[0m[32m (B[0;1m[37m"(B[0m[32m$VAR2(B[0;1m[37m"(B[0m[32m ]; then
[18d    echo (B[0;1m[37m"(B[0m[32mWayland detected(B[0;1m[37m,(B[0m[32m continuig(B[0;1m[37m"
[20d(B[0m[32m    prepare(B[0;1m[37m()(B[0m[32m (B[0;1m[37m{[21;8H(B[0m[32m[1K sudo waydroid init -s GAPPS
[2d[39m(B[m[?12l[?25h[?25l[22;15H(B[0;7m[ line  1/41 ( 2%), col  1/25 (  4%), char   0/896 ( 0%) ](B[m[?12l[?25h
[2d[?25l[22;73H[?12l[?25h
[2d[?25l[22;73H[?12l[?25h
[2d[?25l[22;73H[?12l[?25h
[2d[?25l[22;73H[?12l[?25h
[2d[?25l[22;30H[1K (B[0;1m[37m[41m[ To suspend, type ^T^Z ][39;49m(B[m[K[?12l[?25h
[2d[?25l[22d[J[24d[?12l[?25h[24;1H[?1049l[23;0;0t
[?1l>[?2004l

Edit:
Did you copy from a terminal which has ANSI color escapes or other escape sequences embedded in the output?

Last edited by loqs (2023-06-02 21:52:00)

Offline

#9 2023-06-02 22:06:02

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

oh, i'm sorry, here's the normal file http://0x0.st/HbOa.txt

(before i've used wrong command)

Last edited by shipa_2 (2023-06-02 22:07:56)

Offline

#10 2023-06-02 22:22:31

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Error to read from external repository

#source=("NONE")

Without VKX_6.3.9_pub_20039.apk being listed in the source array how does the following work

waydroid app install VKX_6.3.9_pub_20039.apk

Do not use sudo in a PKGBUILD

	sudo waydroid init -s GAPPS

Do not change the state of the host

	sudo systemctl enable waydroid-container.service

The PKGBUILD seems to be operating on the host install entirely throughout the PKGBUILD?

Offline

#11 2023-06-02 22:32:50

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

Re: Error to read from external repository

That is not a PKGBUILD at all.  It is a script that hijacks makepkg to run some arbitrary commands that have absolutely nothing to do with making a package.  The only virtue is that it fails to do anything at all if it isn't run from within a wayland session.


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

Offline

#12 2023-06-02 22:47:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Error to read from external repository

Take the resulting package (VkX-6.3.9-1-any.pkg.tar.zst) and install it on another machine. Does the program work? If not, you have not made a usable package. It's lucky that the AUR rejected this PKGBUILD.

Offline

#13 2023-06-02 22:56:06

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

Fixed all of that, anything else ?
http://0x0.st/HbO9.txt

and yes, that ... works on other machines

Offline

#14 2023-06-02 22:57:04

shipa_2
Member
Registered: 2023-05-01
Posts: 22

Re: Error to read from external repository

Trilby wrote:

It is a script that hijacks makepkg to run some arbitrary commands that have absolutely nothing to do with making a package.

yes

Offline

#15 2023-06-02 22:58:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Error to read from external repository

shipa_2 wrote:

and yes, that ... works on other machines

No. No it doesn't.

You do NOT run makepkg on the other machine, you install the package only. In this case, there's no way there's anything valid in the package.

Offline

#16 2023-06-03 06:43:10

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Error to read from external repository

shipa_2 wrote:

Fixed all of that, anything else ?

shipa_2 wrote:
Trilby wrote:

It is a script that hijacks makepkg to run some arbitrary commands that have absolutely nothing to do with making a package.

yes

That doesn't give you any pause?

Also

loqs wrote:

The PKGBUILD seems to be operating on the host install entirely throughout the PKGBUILD?

makepkg/a PKGBUILD creates a tarball that gets extracted onto the client system, manipulating the build system (eg. enabling services) is wrong, there're https://man.archlinux.org/man/PKGBUILD. … _SCRIPTING for that purpose to be exectuted on the target system when the package is installed/updated/removed.

Offline

#17 2023-06-03 06:46:48

Fuxino
Member
From: Slovakia
Registered: 2014-09-26
Posts: 167

Re: Error to read from external repository

shipa_2 wrote:

anything else ?

Basically everything else? There's nothing that makes sense in this "PKGBUILD", I wouldn't even know where to start. I suggest you read carefully the relevant articles on the wiki* about creating packages and then start over.

*At least these: https://wiki.archlinux.org/title/Creating_packages
https://wiki.archlinux.org/title/PKGBUILD
https://wiki.archlinux.org/title/Makepkg

Offline

#18 2023-06-03 12:00:48

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

Re: Error to read from external repository

To be fair I think there is a language barrier here (compounding the lack of experience).

While everything about that "PKGBUILD" is all wrong, I'm not sure there is anyway to do it "right".  The software in question is an android .apk to be used on waydroid.  There is no need to "package" this as it 1) would never be a system package to install via pacman, and 2) it already is packaged - as an android package, which is precisely what waydroid requires.

Anyone who wants to use this .apk can download it and run it via waydroid.  "Installing" an .apk via pacman makes about as much sense as "installing" a word document so you can open it in libreoffice - you install libreoffice, then you can open any downloaded document you want (notwithstanding the absolute suck of document formats such that in reality this might often fail).

EDIT: game emulators (e.g., fceux) and individual game ROMs are a much better analogy that word processors and documents, but the point holds.  Only the emulator itself is packaged as a system (pacman) package.  ROMs are just user data to be downloaded and run in the emulator.

Last edited by Trilby (2023-06-03 12:11:59)


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

Offline

Board footer

Powered by FluxBB