You are not logged in.

#1 Yesterday 02:00:26

Amodio
Member
Registered: Yesterday
Posts: 4

First PKGBUILD: some difficulties

Hello,

I have just installed Arch Linux to package a program (app launcher for Wayland) and it is very complicated. I have several questions regarding pkgctl:
- Why does WARNING: Skipping all source file integrity checks. appear while the checksum is verified priorly: Validating source files with sha256sums... [...] passed?
- Why does it end with an error and a warning while running checkpkg (error: target not found: labar + WARNING: Skipped checkpkg due to missing repo packages)?
- Why the architecture any is rejected when there is any ELF binary?
- Why pkgrel from /usr/share/pacman/PKGBUILD* starts at 1 and not 0?

Finally regarding this forum, identity is not shared with https://aur.archlinux.org and there are no buttons when writing a message to include code or a URL for example (we have to manually write every bbcode)...

Here is my current PKGBUILD file:

# Maintainer: Amodio <jacques@boscq.fr>
pkgname=labar
pkgver=1.3.3
pkgrel=3
pkgdesc='Launch bar for Wayland'
arch=('x86_64' 'aarch64' 'riscv64' 'mips64el' 'ppc64le')
url='https://github.com/Amodio/labar'
license=('GPL-3.0-or-later')
depends=(
	glibc
	librsvg
	alsa-lib
	wayland
	glib2
	cairo
	gtk4
)
makedepends=(
	meson
	cmake
	scdoc
	wayland-protocols
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('069f92a938fe6006fd29ca5545c0fbae963ba6e23bcf795e76405c4572632f05')

build() {
	arch-meson "$pkgname-$pkgver" build -Db_sanitize=none
	meson compile -C build
}

package() {
	meson install -C build --no-rebuild --destdir "$pkgdir"
	install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

The output:

$ pkgctl build
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building labar
==> WARNING: invalid architecture, not building for: aarch64
==> WARNING: invalid architecture, not building for: riscv64
==> WARNING: invalid architecture, not building for: mips64el
==> WARNING: invalid architecture, not building for: ppc64le
  ->   repo: extra
  ->   arch: x86_64
  -> worker: arch-0
==> Building labar for [extra] (x86_64)
:: Synchronizing package databases...
 core downloading...
 extra downloading...
:: Starting full system upgrade...
 there is nothing to do
==> Building in chroot for [extra] (x86_64)...
==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [arch-0]...done
==> Making package: labar 1.3.3-3 (Sun Apr 19 06:00:20 2026)
==> Retrieving sources...
  -> Downloading labar-1.3.3.tar.gz...
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
  0      0   0      0   0      0      0      0                              0
100 238.0k 100 238.0k   0      0 878.1k      0                              0
==> Validating source files with sha256sums...
    labar-1.3.3.tar.gz ... Passed
==> Making package: labar 1.3.3-3 (Sun Apr 19 06:00:25 2026)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (105)                    New Version     Net Change

extra/adwaita-cursors            50.0-1           11.41 MiB
extra/adwaita-fonts              50.0-1            7.29 MiB
extra/adwaita-icon-theme         50.0-1            1.19 MiB
extra/adwaita-icon-theme-legacy  46.2-3            2.23 MiB
extra/alsa-topology-conf         1.2.5.1-4         0.33 MiB
extra/alsa-ucm-conf              1.2.15.3-1        0.62 MiB
extra/at-spi2-core               2.60.1-1          4.02 MiB
extra/avahi                      1:0.9rc4-1        2.00 MiB
extra/bubblewrap                 0.11.1-1          0.09 MiB
extra/dav1d                      1.5.3-1           1.78 MiB
extra/dconf                      0.49.0-1          0.45 MiB
extra/default-cursors            3-1               0.00 MiB
extra/desktop-file-utils         0.28-1            0.18 MiB
extra/duktape                    2.7.0-7           0.78 MiB
extra/fontconfig                 2:2.17.1-1        1.12 MiB
extra/freetype2                  2.14.3-1          1.66 MiB
extra/fribidi                    1.0.16-2          0.24 MiB
extra/gdk-pixbuf2                2.44.6-2          2.96 MiB
extra/giflib                     6.1.3-1           0.33 MiB
extra/glib-networking            1:2.80.1-1        0.65 MiB
extra/glycin                     2.1.1-1          17.50 MiB
extra/gperftools                 2.18.1-1          2.01 MiB
extra/graphene                   1.10.8-2          0.98 MiB
extra/graphite                   1:1.3.14-6        0.20 MiB
extra/gsettings-desktop-schemas  50.1-1            6.08 MiB
extra/gsettings-system-schemas   50.1-1            0.02 MiB
extra/gssdp                      1.6.4-1           0.24 MiB
extra/gst-plugins-bad-libs       1.28.2-1         14.52 MiB
extra/gst-plugins-base-libs      1.28.2-1         12.70 MiB
extra/gstreamer                  1.28.2-1         11.81 MiB
extra/gtest                      1.17.0-2          1.63 MiB
extra/gtk-update-icon-cache      1:4.22.2-1        0.04 MiB
extra/gupnp                      1:1.6.9-1         0.70 MiB
extra/gupnp-igd                  1.6.0-2           0.11 MiB
extra/harfbuzz                   14.1.0-1          4.67 MiB
extra/hicolor-icon-theme         0.18-1            0.05 MiB
extra/highway                    1.3.0-2           9.87 MiB
extra/iso-codes                  4.20.1-1         22.30 MiB
extra/jbigkit                    2.1-8             0.16 MiB
extra/json-glib                  1.10.8-1          1.01 MiB
extra/lcms2                      2.18-1            0.68 MiB
extra/libcloudproviders          0.4.0-1           0.32 MiB
extra/libcolord                  1.4.8-1           1.24 MiB
extra/libcups                    2:2.4.17-1        0.77 MiB
extra/libdaemon                  0.14-6            0.06 MiB
extra/libdatrie                  0.2.14-1          0.49 MiB
extra/libdeflate                 1.25-1            0.14 MiB
extra/libdrm                     2.4.131-1         1.28 MiB
core/libedit                     20251016_3.1-1    0.26 MiB
extra/libepoxy                   1.5.10-3          2.64 MiB
extra/libglvnd                   1.7.0-3           3.34 MiB
extra/libgudev                   238-3             0.38 MiB
extra/libjpeg-turbo              3.1.4.1-1         2.43 MiB
extra/libjxl                     0.11.2-2          9.65 MiB
extra/libnice                    0.1.23-1          1.81 MiB
extra/libpciaccess               0.19-1            0.06 MiB
extra/libpng                     1.6.58-1          0.58 MiB
extra/libproxy                   0.5.12-1          0.10 MiB
extra/libsoup3                   3.6.6-2           1.96 MiB
extra/libstemmer                 3.0.1-1           0.60 MiB
extra/libthai                    0.1.30-1          1.24 MiB
extra/libtiff                    4.7.1-2           1.26 MiB
extra/libunwind                  1.8.2-1           0.29 MiB
extra/libva                      2.23.0-1          0.98 MiB
extra/libwebp                    1.6.0-2           1.04 MiB
extra/libx11                     1.8.13-1          9.78 MiB
extra/libxau                     1.0.12-1          0.02 MiB
extra/libxcb                     1.17.0-1          3.87 MiB
extra/libxcursor                 1.2.3-1           0.07 MiB
extra/libxdamage                 1.1.7-1           0.02 MiB
extra/libxdmcp                   1.1.5-2           0.13 MiB
extra/libxext                    1.3.7-1           0.30 MiB
extra/libxfixes                  6.0.2-1           0.04 MiB
extra/libxft                     2.3.9-1           0.13 MiB
extra/libxi                      1.8.2-1           0.48 MiB
extra/libxinerama                1.1.6-1           0.02 MiB
extra/libxkbcommon               1.13.1-1          1.03 MiB
extra/libxkbcommon-x11           1.13.1-1          0.10 MiB
extra/libxrandr                  1.5.5-1           0.07 MiB
extra/libxrender                 0.9.12-1          0.09 MiB
extra/libxshmfence               1.3.3-1           0.02 MiB
extra/libxtst                    1.2.5-1           0.11 MiB
extra/libxv                      1.0.13-1          0.06 MiB
extra/libxxf86vm                 1.1.7-1           0.03 MiB
extra/llvm-libs                  22.1.3-1        160.11 MiB
extra/lm_sensors                 1:3.6.2-1         0.48 MiB
core/lzo                         2.10-5            0.38 MiB
extra/mesa                       1:26.0.4-1       50.73 MiB
extra/orc                        0.4.42-1          1.36 MiB
extra/pango                      1:1.57.1-1        2.33 MiB
extra/pixman                     0.46.4-1          0.74 MiB
extra/shared-mime-info           2.4-3             4.58 MiB
extra/spirv-tools                1:1.4.341.0-2     7.59 MiB
extra/tinysparql                 3.11.1-1          3.88 MiB
extra/vmaf                       3.1.0-1           6.53 MiB
extra/vulkan-icd-loader          1.4.341.0-1       0.58 MiB
extra/xcb-proto                  1.17.0-4          1.03 MiB
extra/xkeyboard-config           2.47-1           10.23 MiB
extra/xorg-xprop                 1.2.8-1           0.05 MiB
extra/xorgproto                  2025.1-1          1.47 MiB
extra/alsa-lib                   1.2.15.3-2        1.72 MiB
extra/cairo                      1.18.4-1          1.59 MiB
extra/gtk4                       1:4.22.2-1       51.51 MiB
extra/librsvg                    2:2.62.1-1       10.25 MiB
extra/wayland                    1.24.0-1          0.82 MiB

Total Installed Size:  513.83 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libpng...
installing freetype2...
Optional dependencies for freetype2
    harfbuzz: Improved autohinting [pending]
installing fontconfig...
Creating fontconfig configuration...
Rebuilding fontconfig cache...
installing xcb-proto...
installing xorgproto...
installing libxdmcp...
installing libxau...
installing libxcb...
installing libx11...
installing libxext...
installing libxrender...
installing lzo...
installing pixman...
installing cairo...
installing dav1d...
Optional dependencies for dav1d
    dav1d-doc: HTML documentation
installing bubblewrap...
installing libjpeg-turbo...
Optional dependencies for libjpeg-turbo
    java-runtime>11: for TurboJPEG Java wrapper
installing jbigkit...
installing libdeflate...
installing libwebp...
Optional dependencies for libwebp
    libwebp-utils: WebP conversion and inspection tools
installing libtiff...
Optional dependencies for libtiff
    freeglut: for using tiffgt
installing lcms2...
installing giflib...
installing libunwind...
installing gperftools...
installing gtest...
Optional dependencies for gtest
    python: gmock generator
installing highway...
installing libjxl...
Optional dependencies for libjxl
    java-runtime: for JNI bindings
installing glycin...
Optional dependencies for glycin
    libheif: Load .avif, .heic and .heif
installing shared-mime-info...
installing gdk-pixbuf2...
Optional dependencies for gdk-pixbuf2
    libheif: Load .avif, .heic and .heif
    libopenraw: Load .arw, .cr2, .crw, .dng, .erf, .mrw, .nef, .orf, .pef and .raf
    libwmf: Load .apm and .wmf
installing graphite...
Optional dependencies for graphite
    graphite-docs: Documentation
installing harfbuzz...
Optional dependencies for harfbuzz
    harfbuzz-utils: utilities
installing fribidi...
installing libdatrie...
installing libthai...
installing libxft...
installing pango...
installing librsvg...
installing alsa-topology-conf...
installing alsa-ucm-conf...
installing alsa-lib...
installing default-cursors...
Optional dependencies for default-cursors
    adwaita-cursors: default cursor theme [pending]
installing wayland...
installing adwaita-fonts...
installing hicolor-icon-theme...
installing adwaita-icon-theme-legacy...
installing adwaita-cursors...
installing adwaita-icon-theme...
installing dconf...
installing gsettings-system-schemas...
installing gsettings-desktop-schemas...
installing libxfixes...
installing libxi...
installing libxtst...
installing xorg-xprop...
installing at-spi2-core...
installing desktop-file-utils...
installing graphene...
installing gstreamer...
Optional dependencies for gstreamer
    python: gst-plugins-doc-cache-generator
installing iso-codes...
installing libpciaccess...
installing libdrm...
Optional dependencies for libdrm
    cairo: needed for modetest tool [installed]
installing libxshmfence...
installing libxxf86vm...
installing libedit...
installing llvm-libs...
installing lm_sensors...
Optional dependencies for lm_sensors
    rrdtool: for logging with sensord
    perl: for sensor detection and configuration convert [installed]
installing spirv-tools...
installing mesa...
Optional dependencies for mesa
    opengl-man-pages: for the OpenGL API man pages
installing libglvnd...
installing libgudev...
installing libxv...
installing orc...
installing gst-plugins-base-libs...
installing duktape...
installing libproxy...
installing glib-networking...
installing libsoup3...
Optional dependencies for libsoup3
    samba: Windows Domain SSO
installing gssdp...
Optional dependencies for gssdp
    gtk4: gssdp-device-sniffer [pending]
installing gupnp...
Optional dependencies for gupnp
    python: gupnp-binding-tool
installing gupnp-igd...
installing libnice...
Optional dependencies for libnice
    gstreamer: "nice" GStreamer plugin [installed]
installing libva...
Optional dependencies for libva
    intel-media-driver: backend for Intel GPUs (>= Broadwell)
    libva-intel-driver: backend for Intel GPUs (<= Haswell)
    libva-mesa-driver: backend for AMD and NVIDIA GPUs [installed]
installing xkeyboard-config...
installing libxkbcommon...
Optional dependencies for libxkbcommon
    libxkbcommon-x11: xkbcli interactive-x11 [pending]
    wayland: xkbcli interactive-wayland [installed]
installing libxkbcommon-x11...
installing vulkan-icd-loader...
Optional dependencies for vulkan-icd-loader
    vulkan-driver: packaged vulkan driver
installing vmaf...
installing gst-plugins-bad-libs...
installing gtk-update-icon-cache...
installing libcloudproviders...
installing libcolord...
installing libdaemon...
installing avahi...
Optional dependencies for avahi
    gtk3: avahi-discover, avahi-discover-standalone, bshell, bssh, bvnc
    libevent: libevent bindings [installed]
    nss-mdns: NSS support for mDNS
    python-dbus: avahi-bookmarks, avahi-discover
    python-gobject: avahi-bookmarks, avahi-discover
    python-twisted: avahi-bookmarks
installing libcups...
installing libepoxy...
installing libxcursor...
installing libxdamage...
installing libxinerama...
installing libxrandr...
installing json-glib...
installing libstemmer...
installing tinysparql...
installing gtk4...
Optional dependencies for gtk4
    evince: Default print preview command
    xdg-desktop-portal-gtk: Fallback portals for various APIs
:: Running post-transaction hooks...
( 1/12) Creating system user accounts...
Creating group 'avahi' with GID 969.
Creating user 'avahi' (Avahi mDNS/DNS-SD daemon) with UID 969 and GID 969.
( 2/12) Reloading system manager configuration...
  Skipped: Current root is not booted.
( 3/12) Reloading user manager configuration...
  Skipped: Current root is not booted.
( 4/12) Updating the MIME type database...
( 5/12) Arming ConditionNeedsUpdate...
( 6/12) Updating fontconfig configuration...
( 7/12) Reloading system bus configuration...
  Skipped: Current root is not booted.
( 8/12) Updating fontconfig cache...
( 9/12) Updating GIO module cache...
(10/12) Compiling GSettings XML schema files...
(11/12) Updating icon theme caches...
(12/12) Updating the desktop file MIME type cache...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (12)             New Version  Net Change

extra/cppdap             1.58.0-3       1.61 MiB
extra/jsoncpp            1.9.6-3        0.77 MiB
extra/libuv              1.52.1-1       0.64 MiB
core/mpdecimal           4.0.1-3        0.32 MiB
extra/ninja              1.13.2-3       0.41 MiB
core/python              3.14.4-1      72.32 MiB
extra/python-tqdm        4.67.3-1       0.62 MiB
extra/rhash              1.4.6-1        0.34 MiB
extra/cmake              4.3.1-1       95.21 MiB
extra/meson              1.10.2-1      16.09 MiB
extra/scdoc              1.11.4-1       0.03 MiB
extra/wayland-protocols  1.48-1         0.98 MiB

Total Installed Size:  189.33 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing ninja...
installing mpdecimal...
installing python...
Optional dependencies for python
    python-setuptools: for building Python packages using tooling that is usually bundled with Python
    python-pip: for installing Python packages using tooling that is usually bundled with Python
    python-pipx: for installing Python software not packaged on Arch Linux
    sqlite: for a default database integration [installed]
    xz: for lzma [installed]
    tk: for tkinter
installing python-tqdm...
Optional dependencies for python-tqdm
    python-requests: telegram
installing meson...
installing cppdap...
installing jsoncpp...
Optional dependencies for jsoncpp
    jsoncpp-doc: documentation
installing libuv...
installing rhash...
installing cmake...
Optional dependencies for cmake
    make: for unix Makefile generator [installed]
    ninja: for ninja generator [installed]
    qt6-base: cmake-gui
installing scdoc...
installing wayland-protocols...
:: Running post-transaction hooks...
(1/4) Updating the MIME type database...
(2/4) Arming ConditionNeedsUpdate...
(3/4) Updating icon theme caches...
(4/4) Updating the desktop file MIME type cache...
==> Retrieving sources...
  -> Found labar-1.3.3.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting labar-1.3.3.tar.gz with bsdtar
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1 labar-1.3.3 build -Db_sanitize=none
The Meson build system
Version: 1.10.2
Source dir: /build/labar/src/labar-1.3.3
Build dir: /build/labar/src/build
Build type: native build
Project name: labar
Project version: 1.3.3
C compiler for the host machine: cc (gcc 15.2.1 "cc (GCC) 15.2.1 20260209")
C linker for the host machine: cc ld.bfd 2.46
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
Run-time dependency gtk4 found: YES 4.22.2
Message: GTK4 found — building --config window
Run-time dependency wayland-client found: YES 1.24.0
Run-time dependency wayland-protocols found: YES 1.48
Run-time dependency cairo found: YES 1.18.4
Run-time dependency librsvg-2.0 found: YES 2.62.1
Run-time dependency alsa found: YES 1.2.15.3
Library m found: YES
Library dl found: YES
Dependency wayland-protocols found: YES 1.48 (cached)
Build-time dependency wayland-scanner found: YES 1.24.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Dependency wayland-client found: YES 1.24.0 (cached)
Program scdoc found: YES (/usr/bin/scdoc)
Build targets in project: 14

labar 1.3.3

  User defined options
    auto_features     : enabled
    b_pie             : true
    b_sanitize        : none
    buildtype         : plain
    libexecdir        : lib
    prefix            : /usr
    python.bytecompile: 1
    sbindir           : bin
    wrap_mode         : nodownload

Found ninja-1.13.2 at /usr/bin/ninja
ninja: Entering directory `/build/labar/src/build'
[1/31] Generating protocols/__usr_share_wayland_protocols_staging_fractional_scale_fractional_scale_v1_xml_c with a custom command
[2/31] Generating protocols/__usr_share_wayland_protocols_unstable_xdg_output_xdg_output_unstable_v1_xml_c with a custom command
[3/31] Generating protocols/__usr_share_wayland_protocols_unstable_xdg_output_xdg_output_unstable_v1_xml_h with a custom command
[4/31] Generating protocols/__usr_share_wayland_protocols_stable_viewporter_viewporter_xml_c with a custom command
[5/31] Generating protocols/__usr_share_wayland_protocols_stable_viewporter_viewporter_xml_h with a custom command
[6/31] Generating protocols/__usr_share_wayland_protocols_staging_fractional_scale_fractional_scale_v1_xml_h with a custom command
[7/31] Generating protocols/__usr_share_wayland_protocols_stable_xdg_shell_xdg_shell_xml_c with a custom command
[8/31] Generating protocols/__usr_share_wayland_protocols_stable_xdg_shell_xdg_shell_xml_h with a custom command
[9/31] Generating protocols/wlr_layer_shell_unstable_v1_xml_c with a custom command
[10/31] Generating protocols/wlr_layer_shell_unstable_v1_xml_h with a custom command
[11/31] Compiling C object protocols/liblabar_protocols.a.p/meson-generated_.._fractional-scale-v1-protocol.c.o
[12/31] Compiling C object protocols/liblabar_protocols.a.p/meson-generated_.._xdg-output-unstable-v1-protocol.c.o
[13/31] Compiling C object protocols/liblabar_protocols.a.p/meson-generated_.._xdg-shell-protocol.c.o
[14/31] Compiling C object protocols/liblabar_protocols.a.p/meson-generated_.._wlr-layer-shell-unstable-v1-protocol.c.o
[15/31] Compiling C object protocols/liblabar_protocols.a.p/meson-generated_.._viewporter-protocol.c.o
[16/31] Compiling C object labar.p/src_cache.c.o
[17/31] Linking static target protocols/liblabar_protocols.a
[18/31] Compiling C object labar.p/src_widget-common.c.o
[19/31] Compiling C object labar.p/src_seat.c.o
[20/31] Generating doc/labar.1 with a custom command (wrapped by meson to capture output)
[21/31] Compiling C object labar.p/src_exec.c.o
[22/31] Compiling C object labar.p/src_widget-date.c.o
[23/31] Compiling C object labar.p/src_widget-volume.c.o
[24/31] Compiling C object labar.p/src_widget-net.c.o
[25/31] Compiling C object labar.p/src_widget-sysinfo.c.o
[26/31] Compiling C object labar.p/src_calendar-popup.c.o
[27/31] Compiling C object labar.p/src_config.c.o
[28/31] Compiling C object labar.p/src_main.c.o
[29/31] Compiling C object liblabar-config.so.p/src_config-window.c.o
[30/31] Linking target liblabar-config.so
[31/31] Linking target labar
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /build/labar/src/build
==> Entering fakeroot environment...
==> Starting package()...
Installing liblabar-config.so to /build/labar/pkg/labar/usr/lib/labar
Installing doc/labar.1 to /build/labar/pkg/labar/usr/share/man/man1
Installing labar to /build/labar/pkg/labar/usr/bin
Installing /build/labar/src/labar-1.3.3/pixmaps/pnmixer-muted.png to /build/labar/pkg/labar/usr/share/pixmaps/labar
Installing /build/labar/src/labar-1.3.3/pixmaps/pnmixer-off.png to /build/labar/pkg/labar/usr/share/pixmaps/labar
Installing /build/labar/src/labar-1.3.3/pixmaps/pnmixer-low.png to /build/labar/pkg/labar/usr/share/pixmaps/labar
Installing /build/labar/src/labar-1.3.3/pixmaps/pnmixer-medium.png to /build/labar/pkg/labar/usr/share/pixmaps/labar
Installing /build/labar/src/labar-1.3.3/pixmaps/pnmixer-high.png to /build/labar/pkg/labar/usr/share/pixmaps/labar
==> Tidying install...
  -> Removing libtool files...
  -> Removing static library files...
  -> Purging unwanted files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "labar"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Creating package "labar-debug"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: labar 1.3.3-3 (Sun Apr 19 06:00:40 2026)
==> Installing package labar with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (2)  New Version  Net Change

labar        1.3.3-3        0.30 MiB
labar-debug  1.3.3-3        0.91 MiB

Total Installed Size:  1.21 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing labar...
installing labar-debug...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
resolving dependencies...
looking for conflicting packages...

Package (7)                      New Version  Net Change

core/elfutils                    0.194-2        3.56 MiB
core/licenses                    20240728-1     1.54 MiB
extra/pyalpm                     0.11.1-1       0.23 MiB
extra/python-boolean.py          5.0-2          0.36 MiB
extra/python-license-expression  30.4.4-2       1.24 MiB
extra/python-pyelftools          0.32-2         2.17 MiB
extra/namcap                     3.6.0-3        1.00 MiB

Total Installed Size:  10.11 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing elfutils...
installing licenses...
installing pyalpm...
installing python-boolean.py...
installing python-license-expression...
installing python-pyelftools...
installing namcap...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Checking PKGBUILD
Checking labar-1.3.3-3-x86_64.pkg.tar.zst
Checking labar-debug-1.3.3-3-x86_64.pkg.tar.zst
==> Running checkpkg
error: target not found: labar
==> WARNING: Skipped checkpkg due to missing repo packages
==> Generating .SRCINFO...done
==> Finished building labar 1.3.3-3

ChatGPT told me to git clone ssh://aur@aur.archlinux.org/labar.git but I do not know what to do next (besides voting for it smile).

Thanks for your help.

Last edited by Amodio (Yesterday 06:11:21)

Offline

#2 Yesterday 12:02:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,907

Re: First PKGBUILD: some difficulties

Q1
The first message comes from makepkg, the 2nd from another tool used by pkgctl. not sure which one, maybe makechrootpkg.

Q2
pkgctl is designed to be used by arch devs to build repo-packages.
When building non-repo packages that message is expected behaviour .

Q3
https://wiki.archlinux.org/title/PKGBUILD#arch

Q4
https://wiki.archlinux.org/title/PKGBUILD#pkgrel

Q5
the forum software is old and was setup before aur existed. It's also minimalistic and very fast.


Your final question suggests you want to submit this package to the AUR ?


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 Yesterday 13:09:25

Amodio
Member
Registered: Yesterday
Posts: 4

Re: First PKGBUILD: some difficulties

Q1: Ok.. but I still do not get the logic about checking files twice (= why a chroot would break the integrity of files and if so, why skipping the test inside the chroot but doing it outside).
Q2: An error should end the package creation. This one is not critical and does not and is redundant with the warning: it is a bit misleading.
Q3: Ok.. did not know Arch only supports x86_64.
Q4: About pkgrel it says This is usually a positive integer number (not strictly positive!), later it says that it must be reset to 1 without any explanation, as computers start to count from 0... smile
Q5: Exactly my point.

Yes.. if I was not clear: I have installed Arch to submit a package.

The documentation page Creating packages does not explain the process. I did not find any explaining the lifecycle of packages (despite it should start from extra-testing).

A Standard Voting Procedure explains that votes are passed via a mailing-list.
But that seems to only relate to adding/removing a Package Maintainer, not a package, it does not seem to be related to voting for a package (which is accessible just by creating on account on https://aur.archlinux.org).

Offline

#4 Yesterday 14:14:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,642

Re: First PKGBUILD: some difficulties

pkgctl is the wrong tool to build/test AUR packages, you just run makepkg to build the PKGBUILD, https://wiki.archlinux.org/title/AUR_su … positories

Offline

#5 Yesterday 14:46:46

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,448

Re: First PKGBUILD: some difficulties

Amodio wrote:

The documentation page Creating packages does not explain the process.

Yes, it does, scroll down to section 5 and follow the link that's there.

I think you're under the impression that you can submit to Arch's [extra] repo, but you cannot. You (like the rest of us) submit to AUR (and maintain it) and if there's interest from a dev they can "adopt" it and maintain it in [extra]. Having many votes can help, but ultimately it's up to the dev's interest on whether or not they want to take on the extra workload to add another package to their list. It's all volunteer work, keep that in mind.

Offline

#6 Today 05:33:55

Amodio
Member
Registered: Yesterday
Posts: 4

Re: First PKGBUILD: some difficulties

seth wrote:

pkgctl is the wrong tool to build/test AUR packages, you just run makepkg to build the PKGBUILD, https://wiki.archlinux.org/title/AUR_su … positories

Ok pkgctl is reserved for official developpers, but makepkg does not use a chroot to build the package. I will stop asking about the numerous logical discrepancies at this point.

twelveeighty wrote:
Amodio wrote:

The documentation page Creating packages does not explain the process.

Yes, it does, scroll down to section 5 and follow the link that's there.

I think you're under the impression that you can submit to Arch's [extra] repo, but you cannot. You (like the rest of us) submit to AUR (and maintain it) and if there's interest from a dev they can "adopt" it and maintain it in [extra]. Having many votes can help, but ultimately it's up to the dev's interest on whether or not they want to take on the extra workload to add another package to their list. It's all volunteer work, keep that in mind.

If the page contains a link to another page explaining "submission guidelines", it does precisely not explain the process of submission to extra-testing (/life cycle) of packages...
Thanks for your explanation about how packages are integrated to Arch.

Offline

#7 Today 06:33:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,642

Re: First PKGBUILD: some difficulties

I will stop asking about the numerous logical discrepancies at this point.

I assume the logical discrepancy is

it does precisely not explain the process of submission to extra-testing

a misconception on your side that you would build a package and then submit that for inclusion in the repos? But you now understood that this is entirely not how this works?

There're multiple way to https://wiki.archlinux.org/title/Develo … ean_chroot incl. "pkgctl build -c" but this is only really relevant for distributing binaries (or to figure whether your local setup specifically conflicts w/ some package)

pkgbuild is predominantly a convenience tool for repo packagers, it by default does https://wiki.archlinux.org/title/Develo … he_package which is the last "error" you get
You of course may use it to build local AUR packages but will see artifacts from the context discrepancy. It's not an end-user tool.

Offline

#8 Today 07:22:40

Amodio
Member
Registered: Yesterday
Posts: 4

Re: First PKGBUILD: some difficulties

seth wrote:

I will stop asking about the numerous logical discrepancies at this point.

I assume the logical discrepancy is

it does precisely not explain the process of submission to extra-testing

a misconception on your side that you would build a package and then submit that for inclusion in the repos? But you now understood that this is entirely not how this works?

There're multiple way to https://wiki.archlinux.org/title/Develo … ean_chroot incl. "pkgctl build -c" but this is only really relevant for distributing binaries (or to figure whether your local setup specifically conflicts w/ some package)

pkgbuild is predominantly a convenience tool for repo packagers, it by default does https://wiki.archlinux.org/title/Develo … he_package which is the last "error" you get
You of course may use it to build local AUR packages but will see artifacts from the context discrepancy. It's not an end-user tool.

You assume wrongly: this very "helping" and "welcoming" "discussion" only supports the fact that Arch documentation is unclear/outdated, tools are fragmented/not unified/illogical (as well as the packages/community).

I will remove my package from AUR, have a good continuation.

Offline

Board footer

Powered by FluxBB