You are not logged in.
I want to bring a Python program to Arch and I want to use aur to do this.
The following code is my "PKGBUILD" file code:
# Maintainer: manijamali <manijamali2003@gmail.com>
pkgname=pyabr-git
pkgver=2.3.0
pkgrel=1
pkgdesc=' Pyabr lightweight OS with Python and Qt '
url='https://pyabr.ir'
arch=('any')
license=('GPL3')
depends=('xorg' 'mesa' 'qt5' 'python-wheel' 'python-pyqt5' 'breeze' 'breeze-icons' 'wget' )
makedepends=('git' 'python-pip')
optdepends=('mpv' 'chromium' 'python-pyalsa' 'python-pyaudio' 'openbox')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/PyFarsi/pyabr.git")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd ${pkgname%-git}
sudo python install.py
}I run "makepkg -si" and after installing the prerequisites with Pacman, I received the following error:
➜ aur makepkg -si
==> Making package: pyabr-git 2.3.0-1 (Wed 02 Feb 2022 10:05:03 PM +0330)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for mmdbalkhi:
:: There are 48 members in group xorg:
:: Repository extra
1) xf86-video-vesa 2) xorg-bdftopcf 3) xorg-docs 4) xorg-font-util 5) xorg-fonts-100dpi 6) xorg-fonts-75dpi 7) xorg-fonts-encodings
8) xorg-iceauth 9) xorg-mkfontscale 10) xorg-server 11) xorg-server-common 12) xorg-server-devel 13) xorg-server-xephyr 14) xorg-server-xnest
15) xorg-server-xvfb 16) xorg-sessreg 17) xorg-setxkbmap 18) xorg-smproxy 19) xorg-x11perf 20) xorg-xauth 21) xorg-xbacklight
22) xorg-xcmsdb 23) xorg-xcursorgen 24) xorg-xdpyinfo 25) xorg-xdriinfo 26) xorg-xev 27) xorg-xgamma 28) xorg-xhost 29) xorg-xinput
30) xorg-xkbcomp 31) xorg-xkbevd 32) xorg-xkbutils 33) xorg-xkill 34) xorg-xlsatoms 35) xorg-xlsclients 36) xorg-xmodmap 37) xorg-xpr
38) xorg-xprop 39) xorg-xrandr 40) xorg-xrdb 41) xorg-xrefresh 42) xorg-xset 43) xorg-xsetroot 44) xorg-xvinfo 45) xorg-xwayland
46) xorg-xwd 47) xorg-xwininfo 48) xorg-xwud
Enter a selection (default=all):
warning: xf86-video-vesa-2.5.0-2 is up to date -- reinstalling
warning: xorg-bdftopcf-1.1-2 is up to date -- reinstalling
warning: xorg-docs-1.7.1-3 is up to date -- reinstalling
warning: xorg-font-util-1.3.2-2 is up to date -- reinstalling
warning: xorg-fonts-100dpi-1.0.3-7 is up to date -- reinstalling
warning: xorg-fonts-75dpi-1.0.3-7 is up to date -- reinstalling
warning: xorg-fonts-encodings-1.0.5-2 is up to date -- reinstalling
warning: xorg-iceauth-1.0.8-2 is up to date -- reinstalling
warning: xorg-mkfontscale-1.2.1-2 is up to date -- reinstalling
warning: xorg-server-21.1.3-1 is up to date -- reinstalling
warning: xorg-server-common-21.1.3-1 is up to date -- reinstalling
warning: xorg-server-devel-21.1.3-1 is up to date -- reinstalling
warning: xorg-server-xephyr-21.1.3-1 is up to date -- reinstalling
warning: xorg-server-xnest-21.1.3-1 is up to date -- reinstalling
warning: xorg-server-xvfb-21.1.3-1 is up to date -- reinstalling
warning: xorg-sessreg-1.1.2-2 is up to date -- reinstalling
warning: xorg-setxkbmap-1.3.2-2 is up to date -- reinstalling
warning: xorg-smproxy-1.0.6-3 is up to date -- reinstalling
warning: xorg-x11perf-1.6.1-2 is up to date -- reinstalling
warning: xorg-xauth-1.1.1-1 is up to date -- reinstalling
warning: xorg-xbacklight-1.2.3-2 is up to date -- reinstalling
warning: xorg-xcmsdb-1.0.5-3 is up to date -- reinstalling
warning: xorg-xcursorgen-1.0.7-2 is up to date -- reinstalling
warning: xorg-xdpyinfo-1.3.2-4 is up to date -- reinstalling
warning: xorg-xdriinfo-1.0.6-2 is up to date -- reinstalling
warning: xorg-xev-1.2.4-1 is up to date -- reinstalling
warning: xorg-xgamma-1.0.6-3 is up to date -- reinstalling
warning: xorg-xhost-1.0.8-2 is up to date -- reinstalling
warning: xorg-xinput-1.6.3-2 is up to date -- reinstalling
warning: xorg-xkbcomp-1.4.5-1 is up to date -- reinstalling
warning: xorg-xkbevd-1.1.4-3 is up to date -- reinstalling
warning: xorg-xkbutils-1.0.4-4 is up to date -- reinstalling
warning: xorg-xkill-1.0.5-2 is up to date -- reinstalling
warning: xorg-xlsatoms-1.1.3-2 is up to date -- reinstalling
warning: xorg-xlsclients-1.1.4-2 is up to date -- reinstalling
warning: xorg-xmodmap-1.0.10-2 is up to date -- reinstalling
warning: xorg-xpr-1.0.5-2 is up to date -- reinstalling
warning: xorg-xprop-1.2.5-1 is up to date -- reinstalling
warning: xorg-xrandr-1.5.1-2 is up to date -- reinstalling
warning: xorg-xrdb-1.2.1-1 is up to date -- reinstalling
warning: xorg-xrefresh-1.0.6-2 is up to date -- reinstalling
warning: xorg-xset-1.2.4-2 is up to date -- reinstalling
warning: xorg-xsetroot-1.1.2-2 is up to date -- reinstalling
warning: xorg-xvinfo-1.1.4-2 is up to date -- reinstalling
warning: xorg-xwayland-21.1.4-1 is up to date -- reinstalling
warning: xorg-xwd-1.0.8-1 is up to date -- reinstalling
warning: xorg-xwininfo-1.1.5-2 is up to date -- reinstalling
warning: xorg-xwud-1.0.5-2 is up to date -- reinstalling
:: There are 40 members in group qt5:
:: Repository extra
1) pyside2 2) qt5-3d 3) qt5-base 4) qt5-charts 5) qt5-connectivity 6) qt5-datavis3d 7) qt5-declarative 8) qt5-doc 9) qt5-examples
10) qt5-gamepad 11) qt5-graphicaleffects 12) qt5-imageformats 13) qt5-location 14) qt5-lottie 15) qt5-multimedia 16) qt5-networkauth
17) qt5-purchasing 18) qt5-quick3d 19) qt5-quickcontrols 20) qt5-quickcontrols2 21) qt5-quicktimeline 22) qt5-remoteobjects 23) qt5-script
24) qt5-scxml 25) qt5-sensors 26) qt5-serialbus 27) qt5-serialport 28) qt5-speech 29) qt5-svg 30) qt5-tools 31) qt5-translations
32) qt5-virtualkeyboard 33) qt5-wayland 34) qt5-webchannel 35) qt5-webengine 36) qt5-webglplugin 37) qt5-websockets 38) qt5-webview
39) qt5-x11extras 40) qt5-xmlpatterns
Enter a selection (default=all):
warning: pyside2-5.15.2.1-1 is up to date -- reinstalling
warning: qt5-3d-5.15.2+kde+r39-2 is up to date -- reinstalling
warning: qt5-base-5.15.2+kde+r296-2 is up to date -- reinstalling
warning: qt5-charts-5.15.2-2 is up to date -- reinstalling
warning: qt5-connectivity-5.15.2+kde+r5-2 is up to date -- reinstalling
warning: qt5-datavis3d-5.15.2-2 is up to date -- reinstalling
warning: qt5-declarative-5.15.2+kde+r44-1 is up to date -- reinstalling
warning: qt5-doc-5.15.2-2 is up to date -- reinstalling
warning: qt5-examples-5.15.2-2 is up to date -- reinstalling
warning: qt5-gamepad-5.15.2-2 is up to date -- reinstalling
warning: qt5-graphicaleffects-5.15.2-2 is up to date -- reinstalling
warning: qt5-imageformats-5.15.2-2 is up to date -- reinstalling
warning: qt5-location-5.15.2-5 is up to date -- reinstalling
warning: qt5-lottie-5.15.2-2 is up to date -- reinstalling
warning: qt5-multimedia-5.15.2-2 is up to date -- reinstalling
warning: qt5-networkauth-5.15.2-2 is up to date -- reinstalling
warning: qt5-purchasing-5.15.2-2 is up to date -- reinstalling
warning: qt5-quick3d-5.15.2+kde+r19-4 is up to date -- reinstalling
warning: qt5-quickcontrols-5.15.2-2 is up to date -- reinstalling
warning: qt5-quickcontrols2-5.15.2+kde+r11-2 is up to date -- reinstalling
warning: qt5-quicktimeline-5.15.2-2 is up to date -- reinstalling
warning: qt5-remoteobjects-5.15.2-2 is up to date -- reinstalling
warning: qt5-script-5.15.8-3 is up to date -- reinstalling
warning: qt5-scxml-5.15.2-2 is up to date -- reinstalling
warning: qt5-sensors-5.15.2-2 is up to date -- reinstalling
warning: qt5-serialbus-5.15.2-2 is up to date -- reinstalling
warning: qt5-serialport-5.15.2-2 is up to date -- reinstalling
warning: qt5-speech-5.15.2-2 is up to date -- reinstalling
warning: qt5-svg-5.15.2+kde+r16-2 is up to date -- reinstalling
warning: qt5-tools-5.15.2+kde+r17-5 is up to date -- reinstalling
warning: qt5-translations-5.15.2+kde+r20-2 is up to date -- reinstalling
warning: qt5-virtualkeyboard-5.15.2+kde+r6-2 is up to date -- reinstalling
warning: qt5-wayland-5.15.2+kde+r46-2 is up to date -- reinstalling
warning: qt5-webchannel-5.15.2+kde+r5-2 is up to date -- reinstalling
warning: qt5-webengine-5.15.8-7 is up to date -- reinstalling
warning: qt5-webglplugin-5.15.2-2 is up to date -- reinstalling
warning: qt5-websockets-5.15.2+kde+r7-2 is up to date -- reinstalling
warning: qt5-webview-5.15.2-2 is up to date -- reinstalling
warning: qt5-x11extras-5.15.2-2 is up to date -- reinstalling
warning: qt5-xmlpatterns-5.15.2-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (88) pyside2-5.15.2.1-1 qt5-3d-5.15.2+kde+r39-2 qt5-base-5.15.2+kde+r296-2 qt5-charts-5.15.2-2 qt5-connectivity-5.15.2+kde+r5-2
qt5-datavis3d-5.15.2-2 qt5-declarative-5.15.2+kde+r44-1 qt5-doc-5.15.2-2 qt5-examples-5.15.2-2 qt5-gamepad-5.15.2-2
qt5-graphicaleffects-5.15.2-2 qt5-imageformats-5.15.2-2 qt5-location-5.15.2-5 qt5-lottie-5.15.2-2 qt5-multimedia-5.15.2-2
qt5-networkauth-5.15.2-2 qt5-purchasing-5.15.2-2 qt5-quick3d-5.15.2+kde+r19-4 qt5-quickcontrols-5.15.2-2
qt5-quickcontrols2-5.15.2+kde+r11-2 qt5-quicktimeline-5.15.2-2 qt5-remoteobjects-5.15.2-2 qt5-script-5.15.8-3 qt5-scxml-5.15.2-2
qt5-sensors-5.15.2-2 qt5-serialbus-5.15.2-2 qt5-serialport-5.15.2-2 qt5-speech-5.15.2-2 qt5-svg-5.15.2+kde+r16-2
qt5-tools-5.15.2+kde+r17-5 qt5-translations-5.15.2+kde+r20-2 qt5-virtualkeyboard-5.15.2+kde+r6-2 qt5-wayland-5.15.2+kde+r46-2
qt5-webchannel-5.15.2+kde+r5-2 qt5-webengine-5.15.8-7 qt5-webglplugin-5.15.2-2 qt5-websockets-5.15.2+kde+r7-2 qt5-webview-5.15.2-2
qt5-x11extras-5.15.2-2 qt5-xmlpatterns-5.15.2-2 xf86-video-vesa-2.5.0-2 xorg-bdftopcf-1.1-2 xorg-docs-1.7.1-3
xorg-font-util-1.3.2-2 xorg-fonts-100dpi-1.0.3-7 xorg-fonts-75dpi-1.0.3-7 xorg-fonts-encodings-1.0.5-2 xorg-iceauth-1.0.8-2
xorg-mkfontscale-1.2.1-2 xorg-server-21.1.3-1 xorg-server-common-21.1.3-1 xorg-server-devel-21.1.3-1 xorg-server-xephyr-21.1.3-1
xorg-server-xnest-21.1.3-1 xorg-server-xvfb-21.1.3-1 xorg-sessreg-1.1.2-2 xorg-setxkbmap-1.3.2-2 xorg-smproxy-1.0.6-3
xorg-x11perf-1.6.1-2 xorg-xauth-1.1.1-1 xorg-xbacklight-1.2.3-2 xorg-xcmsdb-1.0.5-3 xorg-xcursorgen-1.0.7-2 xorg-xdpyinfo-1.3.2-4
xorg-xdriinfo-1.0.6-2 xorg-xev-1.2.4-1 xorg-xgamma-1.0.6-3 xorg-xhost-1.0.8-2 xorg-xinput-1.6.3-2 xorg-xkbcomp-1.4.5-1
xorg-xkbevd-1.1.4-3 xorg-xkbutils-1.0.4-4 xorg-xkill-1.0.5-2 xorg-xlsatoms-1.1.3-2 xorg-xlsclients-1.1.4-2 xorg-xmodmap-1.0.10-2
xorg-xpr-1.0.5-2 xorg-xprop-1.2.5-1 xorg-xrandr-1.5.1-2 xorg-xrdb-1.2.1-1 xorg-xrefresh-1.0.6-2 xorg-xset-1.2.4-2
xorg-xsetroot-1.1.2-2 xorg-xvinfo-1.1.4-2 xorg-xwayland-21.1.4-1 xorg-xwd-1.0.8-1 xorg-xwininfo-1.1.5-2 xorg-xwud-1.0.5-2
Total Installed Size: 1063.26 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(88/88) checking keys in keyring [-----------------------------------------------------] 100%
(88/88) checking package integrity [-----------------------------------------------------] 100%
(88/88) loading package files [-----------------------------------------------------] 100%
(88/88) checking for file conflicts [-----------------------------------------------------] 100%
(88/88) checking available disk space [-----------------------------------------------------] 100%
:: Processing package changes...
( 1/88) reinstalling xf86-video-vesa [-----------------------------------------------------] 100%
( 2/88) reinstalling xorg-bdftopcf [-----------------------------------------------------] 100%
( 3/88) reinstalling xorg-docs [-----------------------------------------------------] 100%
( 4/88) reinstalling xorg-font-util [-----------------------------------------------------] 100%
( 5/88) reinstalling xorg-fonts-100dpi [-----------------------------------------------------] 100%
( 6/88) reinstalling xorg-fonts-75dpi [-----------------------------------------------------] 100%
( 7/88) reinstalling xorg-fonts-encodings [-----------------------------------------------------] 100%
( 8/88) reinstalling xorg-iceauth [-----------------------------------------------------] 100%
( 9/88) reinstalling xorg-mkfontscale [-----------------------------------------------------] 100%
(10/88) reinstalling xorg-xkbcomp [-----------------------------------------------------] 100%
(11/88) reinstalling xorg-setxkbmap [-----------------------------------------------------] 100%
(12/88) reinstalling xorg-server-common [-----------------------------------------------------] 100%
(13/88) reinstalling xorg-server [-----------------------------------------------------] 100%
(14/88) reinstalling xorg-server-devel [-----------------------------------------------------] 100%
(15/88) reinstalling xorg-server-xephyr [-----------------------------------------------------] 100%
(16/88) reinstalling xorg-server-xnest [-----------------------------------------------------] 100%
(17/88) reinstalling xorg-xauth [-----------------------------------------------------] 100%
(18/88) reinstalling xorg-server-xvfb [-----------------------------------------------------] 100%
(19/88) reinstalling xorg-sessreg [-----------------------------------------------------] 100%
(20/88) reinstalling xorg-smproxy [-----------------------------------------------------] 100%
(21/88) reinstalling xorg-x11perf [-----------------------------------------------------] 100%
(22/88) reinstalling xorg-xbacklight [-----------------------------------------------------] 100%
(23/88) reinstalling xorg-xcmsdb [-----------------------------------------------------] 100%
(24/88) reinstalling xorg-xcursorgen [-----------------------------------------------------] 100%
(25/88) reinstalling Xorg-xdpyinfo [-----------------------------------------------------] 100%
(26/88) reinstalling xorg-xdriinfo [-----------------------------------------------------] 100%
(27/88) reinstalling xorg-xev [-----------------------------------------------------] 100%
(28/88) reinstalling xorg-xgamma [-----------------------------------------------------] 100%
(29/88) reinstalling xorg-xhost [-----------------------------------------------------] 100%
(30/88) reinstalling xorg-xrandr [-----------------------------------------------------] 100%
(31/88) reinstalling xorg-xinput [-----------------------------------------------------] 100%
(32/88) reinstalling xorg-xkbevd [-----------------------------------------------------] 100%
(33/88) reinstalling xorg-xkbutils [-----------------------------------------------------] 100%
(34/88) reinstalling xorg-xkill [-----------------------------------------------------] 100%
(35/88) reinstalling xorg-xlsatoms [-----------------------------------------------------] 100%
(36/88) reinstalling xorg-xlsclients [-----------------------------------------------------] 100%
(37/88) reinstalling xorg-xmodmap [-----------------------------------------------------] 100%
(38/88) reinstalling xorg-xpr [-----------------------------------------------------] 100%
(39/88) reinstalling xorg-xprop [-----------------------------------------------------] 100%
(40/88) reinstalling xorg-xrdb [-----------------------------------------------------] 100%
(41/88) reinstalling xorg-xrefresh [-----------------------------------------------------] 100%
(42/88) reinstalling xorg-xset [-----------------------------------------------------] 100%
(43/88) reinstalling xorg-xsetroot [-----------------------------------------------------] 100%
(44/88) reinstalling xorg-xvinfo [-----------------------------------------------------] 100%
(45/88) reinstalling xorg-xwayland [-----------------------------------------------------] 100%
(46/88) reinstalling xorg-xwd [-----------------------------------------------------] 100%
(47/88) reinstalling xorg-xwininfo [-----------------------------------------------------] 100%
(48/88) reinstalling xorg-xwud [-----------------------------------------------------] 100%
(49/88) reinstalling qt5-translations [-----------------------------------------------------] 100%
(50/88) reinstalling qt5-base [-----------------------------------------------------] 100%
(51/88) reinstalling qt5-declarative [-----------------------------------------------------] 100%
(52/88) reinstalling pyside2 [-----------------------------------------------------] 100%
(53/88) reinstalling qt5-3d [-----------------------------------------------------] 100%
(54/88) reinstalling qt5-charts [-----------------------------------------------------] 100%
(55/88) reinstalling qt5-connectivity [-----------------------------------------------------] 100%
(56/88) reinstalling qt5-datavis3d [-----------------------------------------------------] 100%
(57/88) reinstalling qt5-doc [-----------------------------------------------------] 100%
(58/88) reinstalling qt5-examples [-----------------------------------------------------] 100%
(59/88) reinstalling qt5-gamepad [-----------------------------------------------------] 100%
(60/88) reinstalling qt5-graphicaleffects [-----------------------------------------------------] 100%
(61/88) reinstalling qt5-imageformats [-----------------------------------------------------] 100%
(62/88) reinstalling qt5-location [-----------------------------------------------------] 100%
(63/88) reinstalling qt5-lottie [-----------------------------------------------------] 100%
(64/88) reinstalling qt5-multimedia [-----------------------------------------------------] 100%
(65/88) reinstalling qt5-networkauth [-----------------------------------------------------] 100%
(66/88) reinstalling qt5-purchasing [-----------------------------------------------------] 100%
(67/88) reinstalling qt5-quick3d [-----------------------------------------------------] 100%
(68/88) reinstalling qt5-quickcontrols [-----------------------------------------------------] 100%
(69/88) reinstalling qt5-quickcontrols2 [-----------------------------------------------------] 100%
(70/88) reinstalling qt5-quicktimeline [-----------------------------------------------------] 100%
(71/88) reinstalling qt5-remoteobjects [-----------------------------------------------------] 100%
(72/88) reinstalling qt5-script [-----------------------------------------------------] 100%
(73/88) reinstalling qt5-scxml [-----------------------------------------------------] 100%
(74/88) reinstalling qt5-sensors [-----------------------------------------------------] 100%
(75/88) reinstalling qt5-serialport [-----------------------------------------------------] 100%
(76/88) reinstalling qt5-serialbus [-----------------------------------------------------] 100%
(77/88) reinstalling qt5-speech [-----------------------------------------------------] 100%
(78/88) reinstalling qt5-svg [-----------------------------------------------------] 100%
(79/88) reinstalling qt5-tools [-----------------------------------------------------] 100%
(80/88) reinstalling qt5-virtualkeyboard [-----------------------------------------------------] 100%
(81/88) reinstalling qt5-wayland [-----------------------------------------------------] 100%
(82/88) reinstalling qt5-webchannel [-----------------------------------------------------] 100%
(83/88) reinstalling qt5-webengine [-----------------------------------------------------] 100%
(84/88) reinstalling qt5-websockets [-----------------------------------------------------] 100%
(85/88) reinstalling qt5-webglplugin [-----------------------------------------------------] 100%
(86/88) reinstalling qt5-webview [-----------------------------------------------------] 100%
(87/88) reinstalling qt5-x11extras [-----------------------------------------------------] 100%
(88/88) reinstalling qt5-xmlpatterns [-----------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating fontconfig cache...
(3/5) Updating icon theme caches...
(4/5) Updating the desktop file MIME type cache...
(5/5) Updating X fontdir indices...
==> Missing dependencies:
-> xorg
-> qt5
-> qt5
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.Please help me how to solve this problem (:
Last edited by mmdbalkhi (2022-11-06 15:11:35)
Offline
Get rid of the sudo.
Then follow the guidelines here.
EDIT: I also highly doubt your program needs the whole xorg group.
Last edited by Trilby (2022-02-02 18:57:13)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Get rid of the sudo.
Then follow the guidelines here.
EDIT: I also highly doubt your program needs the whole xorg group.
Thankful. The problem was the same group of Xorg and qt5 packages. I deleted it and used the really needed packages instead.
My only question is why not use sudo there? Because this script in / user creates a directory called the store and the program is located there.
Offline
Because a PKGBUILD is not supposed to need root rights, it needs to replicate the normal filesystem structure into the $pkgdir directory which will be set by makepkg, which will then be relevantly populated for the actual package on install. If you stick to the linked guidelines and in normal "user" mode you will create a correct package.
Last edited by V1del (2022-02-03 09:39:35)
Offline
Because a PKGBUILD is not supposed to need root rights, it needs to replicate the normal filesystem structure into the $pkgdir directory which will be set by makepkg, which will then be relevantly populated for the actual package on install. If you stick to the linked guidelines and in normal "user" mode you will create a correct package.
thanks
Offline