buildpkg cannot sync package databases

I'm trying to build a package in a clean chroot to double-check I have all the dependencies right for a PKGBUILD I wrote. However, it seems buildpkg isn't creating a mirrorlist.

Also, what is going on with the find command? Why is it digging in yay's cache folder and Trash?

$ buildpkg -p vgrive -cwn
find: '/home/yochanan/.cache/yay/powerline-go/pkg': Permission denied
find: '/home/yochanan/.cache/yay/swift-language/pkg': Permission denied
find: '/home/yochanan/.cache/yay/gnome-firmware-updater-git/pkg': Permission denied
find: '/home/yochanan/.cache/yay/gpmdp-git/pkg': Permission denied
find: '/home/yochanan/.cache/yay/mosaic-ck/pkg': Permission denied
find: '/home/yochanan/.cache/yay/polo-git/pkg': Permission denied
find: '/home/yochanan/.local/share/Trash/expunged/1073405905/avd/Full_Android_Pie_For_PC.avd/snapshots/default_boot': Permission denied
 --> Loading compiler settings: x86_64
==> Cleaning up ...
  -> Cleaning [/var/cache/manjaro-tools/pkg/testing/x86_64]
  -> Cleaning [source files]
==> Cleaning chroot for [testing] (x86_64)...
  -> Deleting chroot copy root ...
==> Creating chroot for [testing] (x86_64)...
 --> mirror: https://mirror.netzspielplatz.de/manjaro/packages/testing/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildpkg/testing/x86_64/root
  -> Installing packages to /var/lib/manjaro-tools/buildpkg/testing/x86_64/root
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.netzspielplatz.de : The requested URL returned error: 502
error: failed to update core (failed to retrieve some files)
error: failed retrieving file 'extra.db' from mirror.netzspielplatz.de : The requested URL returned error: 502
error: failed to update extra (failed to retrieve some files)
error: failed retrieving file 'community.db' from mirror.netzspielplatz.de : The requested URL returned error: 502
error: failed to update community (failed to retrieve some files)
error: failed to synchronize all databases
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
==> ERROR: Aborting...
$ buildpkg -q
find: '/home/yochanan/.cache/yay/powerline-go/pkg': Permission denied
find: '/home/yochanan/.cache/yay/swift-language/pkg': Permission denied
find: '/home/yochanan/.cache/yay/gnome-firmware-updater-git/pkg': Permission denied
find: '/home/yochanan/.cache/yay/gpmdp-git/pkg': Permission denied
find: '/home/yochanan/.cache/yay/mosaic-ck/pkg': Permission denied
find: '/home/yochanan/.cache/yay/polo-git/pkg': Permission denied
find: '/home/yochanan/.local/share/Trash/expunged/1073405905/avd/Full_Android_Pie_For_PC.avd/snapshots/default_boot': Permission denied
 --> Loading compiler settings: x86_64
==> manjaro-tools
  -> version: 0.15.9
  -> config: ~/.config/manjaro-tools/manjaro-tools.conf
==> PROFILE:
  -> build_lists: default
  -> build_list_pkg: default
  -> is_build_list: true
==> OPTIONS:
  -> arch: x86_64
  -> branch: testing
  -> chroots_pkg: /var/lib/manjaro-tools/buildpkg
==> ARGS:
  -> clean_first: false
  -> wipe_clean: false
  -> namcap: false
  -> sign: false
==> PATHS:
  -> pkg_dir: /var/cache/manjaro-tools/pkg/testing/x86_64
==> BUILD QUEUE:
==> ERROR: manjaro-system is not a valid package or build list!
$ tree /var/lib/manjaro-tools/
/var/lib/manjaro-tools/
└── buildpkg
    └── testing
        └── x86_64
            ├── root
            │   ├── dev
            │   ├── etc
            │   ├── pacman-basestrap.conf
            │   ├── proc
            │   ├── run
            │   ├── sys
            │   ├── tmp
            │   └── var
            │       ├── cache
            │       │   └── pacman
            │       │       └── pkg
            │       ├── lib
            │       │   └── pacman
            │       │       ├── local
            │       │       │   └── ALPM_DB_VERSION
            │       │       └── sync
            │       └── log
            │           └── pacman.log
            └── root.lock

19 directories, 4 files

5xx is server errors.

The mirror is default and is set in your manjaro-tools.conf.

Example from my config.

# custom build mirror server
# build_mirror=https://mirror.netzspielplatz.de/manjaro/packages
build_mirror=https://uex.dk/public/manjaro

Try changing this to same mirror as the one you use in your systems mirrorlist or use another mirror known to be available e.g. manjaro.moson.eu or uex.dk.

At least verify using a browser that the netzspielplatz mirror is responding.

You are correct - a mirrorlist is not necessary as all dependencies needs to be defined in the PGKBUILD and they are installed using your systems configuration.

This is because - unlike makepkg which requires you to be in the same folder as the PGKBUILD - buildpkg requires you to be in the package's parent folder.

This is because buildpkg is searching your ~/ for the folder with the package name provided by -p argument.

It cannot find that folder (because you are inside it) so buildpkg goes on looking for a list with the package name. That does not exist either so finally buildpkg executes the default list - which contains a non-existent package manjaro-system (that package is probably a remnant from long ago) and thus returns the message ==> ERROR: manjaro-system is not a valid package or build list!.

In the example below - using your commandline - to build the vgrive package using buildpkg you execute buildpkg in packages folder.

~ >>> tree packages
packages
└── vgrive
    └── PKGBUILD

1 directory, 1 file
~ >>> cd packages
~/packages >>> buildpkg -p vgrive -cwn
...
2 Likes

Ah, derp. I knew it was something simple. I added an updated mirror and it worked. It turned out I was in my personal PKGBUILD directory instead of my AUR directory.

1 Like

Forum kindly sponsored by