You are not logged in.

#1 2024-11-09 18:20:34

sczsne
Member
Registered: 2021-10-04
Posts: 10

can't build AUR emacs-evil - gnu.org package 404

I want to install evil emacs off the AUR. when I do, the pkgbuilds try to pull https://elpa.gnu.org/packages/queue-0.2.el, which no longer exists.

however, a queue-0.2.tar now seems to exist in its place. I didn't want to be naiive and assume that doing a find-replace on the build files to grab this .tar instead would be the fix, i have zero experience modifying build files. Is it that simple? or is this going to be more involved?

404 during make via yay:

yay -S emacs-evil                                              
AUR Explicit (1): emacs-evil-1.14.0-1
AUR Dependency (2): emacs-undo-tree-0.8.1-1, emacs-queue-0.2-1
:: PKGBUILD up to date, skipping download: emacs-evil
:: PKGBUILD up to date, skipping download: emacs-undo-tree
:: PKGBUILD up to date, skipping download: emacs-queue
  3 emacs-evil                               (Build Files Exist)
  2 emacs-undo-tree                          (Build Files Exist)
  1 emacs-queue                              (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  3 emacs-evil                               (Build Files Exist)
  2 emacs-undo-tree                          (Build Files Exist)
  1 emacs-queue                              (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: emacs-undo-tree 0.8.1-1 (Sat 09 Nov 2024 09:38:57 AM PST)
==> Retrieving sources...
==> Making package: emacs-evil 1.14.0-1 (Sat 09 Nov 2024 09:38:57 AM PST)
==> Making package: emacs-queue 0.2-1 (Sat 09 Nov 2024 09:38:57 AM PST)
  -> Updating emacs-undo-tree git repo...
==> Retrieving sources...
==> Retrieving sources...
  -> Found 1.14.0.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
  -> Downloading queue-0.2.el...
    1.14.0.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 --:--:-- --:--:-- --:--:--     0Passed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://elpa.gnu.org/packages/queue-0.2.el
    Aborting...
warning: redirecting to https://gitlab.com/tsc25/undo-tree.git/
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    emacs-undo-tree ... Skipped
 -> error downloading sources: /home/ciel/.cache/yay/emacs-queue 
	context: error downloading sources: /home/ciel/.cache/yay/emacs-queue 
	context: exit status 1 
	
 
	

:: (1/3) Parsing SRCINFO: emacs-evil
:: (2/3) Parsing SRCINFO: emacs-undo-tree
:: (3/3) Parsing SRCINFO: emacs-queue
==> Making package: emacs-queue 0.2-1 (Sat 09 Nov 2024 09:38:59 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading queue-0.2.el...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://elpa.gnu.org/packages/queue-0.2.el
    Aborting...
 -> Failed to install layer, rolling up to next layer.error:error making: emacs-queue - exit status 1
==> Making package: emacs-queue 0.2-1 (Sat 09 Nov 2024 09:39:00 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading queue-0.2.el...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://elpa.gnu.org/packages/queue-0.2.el
    Aborting...
 -> Failed to install layer, rolling up to next layer.error:error making: emacs-queue - exit status 1
==> Making package: emacs-queue 0.2-1 (Sat 09 Nov 2024 09:39:01 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading queue-0.2.el...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://elpa.gnu.org/packages/queue-0.2.el
    Aborting...
 -> error making: emacs-queue-exit status 1
==> Making package: emacs-undo-tree 0.8.1-1 (Sat 09 Nov 2024 09:39:02 AM PST)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> emacs-queue
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: emacs-undo-tree-exit status 8
==> Making package: emacs-evil 1.14.0-1 (Sat 09 Nov 2024 09:39:02 AM PST)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> emacs-undo-tree
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: emacs-evil-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
emacs-queue - exit status 1
emacs-undo-tree - exit status 8
emacs-evil - exit status 8

the pkgbuild:

# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

_pkgsrcname=queue
_pkgdestdirname=queue
pkgver=0.2
pkgrel=1
pkgdesc="Queue data structure"
pkgname=emacs-${_pkgdestdirname}
arch=(any)
url="https://elpa.gnu.org/packages/${_pkgsrcname}.html"
license=('GPL3')
depends=('emacs')
source=("https://elpa.gnu.org/packages/${_pkgsrcname}-${pkgver}.el")
sha256sums=('6be60aa5f429e0e3e2c000563356855e3edb7f5378ebf8499ed35aac1141a233')

build() {
  mv ${_pkgsrcname}-${pkgver}.el ${_pkgsrcname}.el
  emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}

package() {
  mkdir -p "$pkgdir"/usr/share/emacs/site-lisp/${_pkgdestdirname}/
  install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/${_pkgdestdirname}/
}

Offline

#2 2024-11-09 20:13:16

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: can't build AUR emacs-evil - gnu.org package 404

The problem is https://aur.archlinux.org/cgit/aur.git/ … macs-queue
The actual download link can be found here: https://elpa.gnu.org/packages/queue.html

Edit: you actually figured that…

cd "${srcdir}/evil-${pkgver}"

at the beginning of the build() and package() functions should do, the tar gets extracted automatically.

Last edited by seth (2024-11-09 20:19:15)

Offline

Board footer

Powered by FluxBB