You are not logged in.

#1 2024-02-06 10:16:08

atticarch
Member
From: Basement
Registered: 2024-02-04
Posts: 25

[SOLVED] AUR Helpers Not Working

Not sure why in the slightest, but AUR helpers have stopped working entirely for me. I tried to install something with yay, and got this same sort of behavior the first time. Figured it might just be something wrong with yay, so I installed paru, but paru, too, does the same thing. Pacman works just fine. Ran sudo pacman -Syu and -Syy to check for updates. Still not working.

Anyone know a solution or a work-around?

Here's a log of me trying to install 7zip:

> yay -S 7-zip-full
AUR Explicit (1): 7-zip-full-23.01-4
Sync Make Dependency (1): uasm-2.56.2-1
:: PKGBUILD up to date, skipping download: 7-zip-full
  1 7-zip-full                               (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/buoyancy/.cache/yay/7-zip-full
HEAD is now at 0d320bf Fix 7z CLI detection by Ark
  1 7-zip-full                               (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
diff --git /home/buoyancy/.cache/yay/7-zip-full/.gitignore /home/buoyancy/.cache/yay/7-zip-full/.gitignore
new file mode 100644
index 0000000..7334925
--- /dev/null
+++ /home/buoyancy/.cache/yay/7-zip-full/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
+!*.patch
diff --git /home/buoyancy/.cache/yay/7-zip-full/01-make.patch /home/buoyancy/.cache/yay/7-zip-full/01-make.patch
new file mode 100644
index 0000000..f3b11a4
--- /dev/null
+++ /home/buoyancy/.cache/yay/7-zip-full/01-make.patch
@@ -0,0 +1,14 @@
+--- a/CPP/7zip/7zip_gcc.mak    2023-05-03 13:00:00.000000000 +0000^M
++++ b/CPP/7zip/7zip_gcc.mak    2024-02-04 00:00:00.000000000 +0000^M
+@@ -10 +10 @@^M
+-MY_ASM = asmc^M
++MY_ASM = uasm^M
+@@ -99 +99 @@^M
+-^M
++LDFLAGS += $(LDFLAGS_ADD)^M
+@@ -152 +152 @@^M
+-CFLAGS = $(MY_ARCH_2) $(LOCAL_FLAGS) $(CFLAGS_BASE2) $(CFLAGS_BASE) $(FLAGS_FLTO) $(CC_SHARED) -o $@^M
++CFLAGS = $(MY_ARCH_2) $(LOCAL_FLAGS) $(CFLAGS_BASE2) $(CFLAGS_BASE) $(FLAGS_FLTO) $(CC_SHARED) $(CFLAGS_ADD) -o $@^M
+@@ -193 +193 @@^M
+-CXXFLAGS = $(MY_ARCH_2) $(LOCAL_FLAGS) $(CXXFLAGS_BASE2) $(CFLAGS_BASE) $(FLAGS_FLTO) $(CXXFLAGS_EXTRA) $(CC_SHARED) $(CXX_WARN_FLAGS) $(CXX_STD_FLAGS) -o $@^M
++CXXFLAGS = $(MY_ARCH_2) $(LOCAL_FLAGS) $(CXXFLAGS_BASE2) $(CFLAGS_BASE) $(FLAGS_FLTO) $(CXXFLAGS_EXTRA) $(CC_SHARED) $(CXX_WARN_FLAGS) $(CXX_STD_FLAGS) $(CXXFLAGS_ADD) -o $@^M
diff --git /home/buoyancy/.cache/yay/7-zip-full/02-lib-load-path.patch /home/buoyancy/.cache/yay/7-zip-full/02-lib-load-path.patch
new file mode 100644
index 0000000..51742f1
--- /dev/null
+++ /home/buoyancy/.cache/yay/7-zip-full/02-lib-load-path.patch
@@ -0,0 +1,5 @@
+--- a/CPP/7zip/UI/Common/LoadCodecs.cpp        2023-04-05 19:00:00.000000000 +0000^M
++++ b/CPP/7zip/UI/Common/LoadCodecs.cpp        2024-02-04 00:00:00.000000000 +0000^M
+@@ -830 +830 @@^M
+-    const FString baseFolder = GetBaseFolderPrefixFromRegistry();^M
++    const FString baseFolder = FString("/usr/lib/");^M
diff --git /home/buoyancy/.cache/yay/7-zip-full/03-version-string.patch /home/buoyancy/.cache/yay/7-zip-full/03-version-string.patch
new file mode 100644
index 0000000..3fc86c1
--- /dev/null
+++ /home/buoyancy/.cache/yay/7-zip-full/03-version-string.patch
@@ -0,0 +1,5 @@
+--- a/CPP/7zip/UI/Console/Main.cpp     2023-04-07 18:00:00.000000000 +0000^M
++++ b/CPP/7zip/UI/Console/Main.cpp     2024-02-04 00:00:00.000000000 +0000^M
+@@ -122 +122 @@^M
+-  #define PROG_POSTFIX_2  ""^M
++  #define PROG_POSTFIX_2  " (_)"^M
diff --git /home/buoyancy/.cache/yay/7-zip-full/PKGBUILD /home/buoyancy/.cache/yay/7-zip-full/PKGBUILD
new file mode 100644
index 0000000..583dccd
--- /dev/null
+++ /home/buoyancy/.cache/yay/7-zip-full/PKGBUILD
@@ -0,0 +1,89 @@
+_name=7-zip
+pkgname=${_name}-full
+pkgver=23.01
+pkgrel=4
+pkgdesc="File archiver with a high compression ratio (full package to replace p7zip)"
+url="https://7-zip.org/"
+license=('LGPL')
+arch=('x86_64' 'i686' 'aarch64' 'armv7h')
+provides=("${_name}" 'p7zip')
+conflicts=("${provides[@]}")
+makedepends=('uasm')
+
+_sver="${pkgver//./}"
+source=(
+    "${url}a/7z${_sver}-src.tar.xz"
+    "${url}a/7z${_sver}-linux-x64.tar.xz" # To get the manual
+    '01-make.patch'
+    '02-lib-load-path.patch'
+    '03-version-string.patch' # Fix for Ark https://invent.kde.org/utilities/ark/-/merge_requests/232
+)
+
+sha256sums=(
+    '356071007360e5a1824d9904993e8b2480b51b570e8c9faf7c0f58ebe4bf9f74'
+    '23babcab045b78016e443f862363e4ab63c77d75bc715c0b3463f6134cbcf318'
+    '3c6b0ee8ecae06a4f0ff91205989e93e22d03a33e5b7cc6982396c32041fc0a8'
+    '5b49bd8c22f2fcc4e6011adc36c2d7a3fb195ba86596b366974f7b6311d0df00'
+    '272d0d5ad64738e38f21b4596114824160318322c79a6eb1d69867c57c8f487e'
+)
+
+_msrc="${source[1]##*/}"
+noextract=("${_msrc}")
+
+prepare() {
+    chmod -R a=rw,a+X .
+
+    for p in *.patch; do
+        patch -p1 --binary -Z -i "${p}"
+    done
+}
+
+_make() {
+    echo "Building '${1}'..."
+    cd "${1}"
+    mkdir -p '_o'
+    make -sf 'makefile.gcc'
+}
+
:

I have to Ctrl+C by this point because it just sits like this. I can use the arrow keys to pan the screen if some of the text goes off the sides (and to go up and down, of course).

Last edited by atticarch (2024-02-06 10:44:21)


most things are made-up

Offline

#2 2024-02-06 10:28:18

d.ALT
Member
Registered: 2019-05-10
Posts: 943

Re: [SOLVED] AUR Helpers Not Working

Just

==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N

(NOT recommended!!)


Or exit by pressing q on your keyboard
(better: you'd always have a look at PKGBUILDs and ther diffs before installing from AUR!)



\\\
Reporting to Mods to move this discussion onto the proper sub-Forums in order to keep thing tidy


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2024-02-06 10:36:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,387

Re: [SOLVED] AUR Helpers Not Working

You need to "pan" to the end and press enter. You see a diff view and if that gets past your terminal size you can follow it along with further "Return" presses (and you should, AUR packages should get their PKGBUILDs inspected by you so that you're sure they don't do anything malicious) and press Return at the end.

Alternatively q to quit out of that and just accept whatever. In essence you're in a paged view of the git changes related to the package, which afaik defaults to more: https://man.archlinux.org/man/more.1

Technically not an AUR issue, keeping it here.

Last edited by V1del (2024-02-06 10:37:44)

Offline

#4 2024-02-06 10:44:06

atticarch
Member
From: Basement
Registered: 2024-02-04
Posts: 25

Re: [SOLVED] AUR Helpers Not Working

I see. Thank you both very much: works perfectly fine now. I thought diffs were "different possible packages", and that inputting "A" would allow me to select the ones I wanted (with N just installing the default/common). My apologies.


most things are made-up

Offline

#5 2024-02-06 11:38:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,163
Website

Re: [SOLVED] AUR Helpers Not Working

Mod note: Moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB