Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
6.16k stars 236 forks source link

Error detecting complex URLs into PKGBUILDs #978

Closed dakataca closed 1 year ago

dakataca commented 1 year ago

Affected Version

paru v1.11.1 - libalpm v13.0.2

Description

The URL inside the PKGBUILD file of the package in aur intel-opencl is not correctly detected by paru, but using makepkg and yay the error does not happen. Most likely, you are needlessly redirecting to the http protocol internal url.

Output

~/.cargo/config
 ## wiki: https://wiki.archlinux.org/title/Rust#Optimizing_for_native_CPU_platform
   5   │ #Optimize for native CPU platform.
   6   │ [target.x86_64-unknown-linux-gnu]
   7   │ rustflags = ["-C", "target-cpu=native"]
   8   │
   9   │ [source.crates-io]
  10   │ registry = "https://github.com/rust-lang/crates.io-index"
  11   │
  12   │ #Replace it with your preferred mirror source.
  13   │ replace-with = 'ustc'
  14   │ #replace-with = 'tuna'
  15   │ #replace-with = 'sjtu'
  16   │ #replace-with = 'rustcc'
  17   │
  18   │ #University of science and technology of China.
  19   │ [source.ustc]
  20   │ registry = "git://mirrors.ustc.edu.cn/crates.io-index"
  21   │
  22   │ #Tsinghua University.
  23   │ #[source.tuna]
  24   │ #registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"
  25   │
  26   │ #Shanghai Jiaotong University.
  27   │ #[source.sjtu]
  28   │ #registry = "https://mirrors.sjtug.sjtu.edu.cn/git/crates.io-index"
  29   │
  30   │ #Rustcc community.
  31   │ #[source.rustcc]
  32   │ #registry = "git://crates.rustcc.cn/crates.io-index"
  33   │
  34   │ ### Autor: https://t.me/dakataca ###

Error using paru

paru -S intel-opencl
:: Resolviendo dependencias...
:: Calculando conflictos...
:: Calculando conflictos internos...

Aur (1) intel-opencl-5.0.r63503-2

:: ¿Editar ahora? [S/n]:

:: Descargando PKGBUILDs...
 PKGBUILDs actualizados
 nada nuevo para revisar
obteniendo info de desarrollo....
==> Creando el paquete: intel-opencl 5.0.r63503-2 (mié 19 abr 2023 18:04:51)
==> Recibiendo las fuentes...
  -> Descargando intel-opencl-5.0.r63503-linux64.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   145    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
curl: (22) The requested URL returned error: 403
==> ERROR: Hubo fallos durante la descarga de http://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip
    Cancelando...
error: no se pudieron descargar fuentes para 'intel-opencl-5.0.r63503-2':
error: no se pudieron construir los siguientes paquetes: intel-opencl-5.0.r63503-2
grep '^source' PKGBUILD
source=("${pkgname}-${pkgver}-linux64.zip::https://web.archive.org/web/20190526190814if_/https://registrationcenter-download.intel.com/akdlm/irc_nas/11396/SRB5.0_linux64.zip")

package intel-opencl on Archlinux AUR. https://aur.archlinux.org/packages/intel-opencl

Morganamilo commented 1 year ago

Worked for me when i tried. Assuming something has changed.