You are not logged in.

#1 2022-06-27 10:59:39

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

[SOLVED] Cannot build packages in AUR, (with yay helper)

My error message is this: https://paste.uguu.se/?8a7d2e89859983f6 … 6V62UkkvRM

I whole-heartedly do not have a clue why this could be happening. I did a little research, yet found nothing that fixed my problem. Yay used to work, not sure what made it not work.

Last edited by mrowkiuq (2022-06-27 13:32:28)

Offline

#2 2022-06-27 11:11:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Rule out yay by manually building the thing with makepkg. I suspect this is the only package that doesn't work?

Offline

#3 2022-06-27 11:27:02

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Still didn't work, looks like it's the same error msg
https://paste.uguu.se/?5ca82054999374cf … uEQZsr5ov6

Also no, I also had problems with PolyMC, and a few others.

Offline

#4 2022-06-27 11:44:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

To rule out yay, redownload the tarball from the AUR in something other than the yay cache folder and try again.

Offline

#5 2022-06-27 11:54:21

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Online

#6 2022-06-27 12:13:56

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

loqs wrote:

No, I did not

How would I add "-DRS_SETID=OFF" to pkgbuild? I do not have a clue, I tried "makepkg -DRS_SETID=OFF" but that spewed out a invalid option error.

Last edited by mrowkiuq (2022-06-27 12:20:39)

Offline

#7 2022-06-27 12:16:46

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Awebb wrote:

To rule out yay, redownload the tarball from the AUR in something other than the yay cache folder and try again.

Nope, exact same error message, I will look into what user loqs posted in this thread though.

Offline

#8 2022-06-27 12:20:06

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

You also mentioned polymc not working.  I was able to build that package without issue in a clean chroot.  If you still have an issue building polymc with makepkg,  please post the output from makepkg for the failure.

Online

#9 2022-06-27 12:24:30

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

loqs wrote:

You also mentioned polymc not working.  I was able to build that package without issue in a clean chroot.  If you still have an issue building polymc with makepkg,  please post the output from makepkg for the failure.

Yes, it does return a different error though.
https://paste.uguu.se/?8f49054b841d7f17 … FmD8JbztQs

Offline

#10 2022-06-27 12:27:45

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Where do I put the parameter "-DRS_SETID=OFF" in the PKGBUILD file?

Offline

#11 2022-06-27 12:40:04

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

mrowkiuq wrote:

Where do I put the parameter "-DRS_SETID=OFF" in the PKGBUILD file?

That will not fix the build issue with replay-sorcery.

melvyn2 wrote:

Upstream is unmaintained/looking for someone to adopt the package: https://github.com/matanui159/ReplaySorcery/issues/146
In the -git package I've manually added a patch to include the needed FFmpeg header, for now this package should too.

So applying the patch from replay-sorcery-git requires changes such as

diff --git a/PKGBUILD b/PKGBUILD
index 48c1f1f..a97cd1b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,15 +8,18 @@ depends=(gcc-libs libx11 ffmpeg pulseaudio)
 makedepends=(cmake git)
 url='https://github.com/matanui159/ReplaySorcery'
 source=("${pkgname}"::git+"${url}".git#tag="${pkgver}"
-        git+https://github.com/ianlancetaylor/libbacktrace.git)
+        git+https://github.com/ianlancetaylor/libbacktrace.git
+        replay-sorcery-include-avutil-ch-layout.patch)
 sha256sums=('SKIP'
-            'SKIP')
+            'SKIP'
+            '5404e7d26db1eb8e051844d65c2182f9dfac813243d093ea8e4c4ae97bc548da')
 
 prepare() {
    cd ${pkgname}
    git submodule init
    git config submodule."dep/libbacktrace".url ../libbacktrace
    git submodule update
+   patch -Np1 -i ../replay-sorcery-include-avutil-ch-layout.patch
 }
 
 build() {
diff --git a/replay-sorcery-include-avutil-ch-layout.patch b/replay-sorcery-include-avutil-ch-layout.patch
new file mode 100644
index 0000000..56fcf7b
--- /dev/null
+++ b/replay-sorcery-include-avutil-ch-layout.patch
@@ -0,0 +1,12 @@
+diff --git a/src/audio/pulsedev.c b/src/audio/pulsedev.c
+index 6f6f3d0..6409227 100644
+--- a/src/audio/pulsedev.c
++++ b/src/audio/pulsedev.c
+@@ -24,6 +24,7 @@
+ #include <libavcodec/avcodec.h>
+ #include <libavutil/avutil.h>
+ #include <libavutil/bprint.h>
++#include <libavutil/channel_layout.h>
+ #include <libavutil/time.h>
+ 
+ #ifdef RS_BUILD_PULSE_FOUND

The package then builds.

For polymc what is the output of

pacman -Qi java-runtime java-environment

Online

#12 2022-06-27 12:43:14

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

loqs wrote:
mrowkiuq wrote:

Where do I put the parameter "-DRS_SETID=OFF" in the PKGBUILD file?

That will not fix the build issue with replay-sorcery.

melvyn2 wrote:

Upstream is unmaintained/looking for someone to adopt the package: https://github.com/matanui159/ReplaySorcery/issues/146
In the -git package I've manually added a patch to include the needed FFmpeg header, for now this package should too.

So applying the patch from replay-sorcery-git requires changes such as

diff --git a/PKGBUILD b/PKGBUILD
index 48c1f1f..a97cd1b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,15 +8,18 @@ depends=(gcc-libs libx11 ffmpeg pulseaudio)
 makedepends=(cmake git)
 url='https://github.com/matanui159/ReplaySorcery'
 source=("${pkgname}"::git+"${url}".git#tag="${pkgver}"
-        git+https://github.com/ianlancetaylor/libbacktrace.git)
+        git+https://github.com/ianlancetaylor/libbacktrace.git
+        replay-sorcery-include-avutil-ch-layout.patch)
 sha256sums=('SKIP'
-            'SKIP')
+            'SKIP'
+            '5404e7d26db1eb8e051844d65c2182f9dfac813243d093ea8e4c4ae97bc548da')
 
 prepare() {
    cd ${pkgname}
    git submodule init
    git config submodule."dep/libbacktrace".url ../libbacktrace
    git submodule update
+   patch -Np1 -i ../replay-sorcery-include-avutil-ch-layout.patch
 }
 
 build() {
diff --git a/replay-sorcery-include-avutil-ch-layout.patch b/replay-sorcery-include-avutil-ch-layout.patch
new file mode 100644
index 0000000..56fcf7b
--- /dev/null
+++ b/replay-sorcery-include-avutil-ch-layout.patch
@@ -0,0 +1,12 @@
+diff --git a/src/audio/pulsedev.c b/src/audio/pulsedev.c
+index 6f6f3d0..6409227 100644
+--- a/src/audio/pulsedev.c
++++ b/src/audio/pulsedev.c
+@@ -24,6 +24,7 @@
+ #include <libavcodec/avcodec.h>
+ #include <libavutil/avutil.h>
+ #include <libavutil/bprint.h>
++#include <libavutil/channel_layout.h>
+ #include <libavutil/time.h>
+ 
+ #ifdef RS_BUILD_PULSE_FOUND

The package then builds.

For polymc what is the output of

pacman -Qi java-runtime java-environment

How would I add those changes to replay-sorcery that you mentioned?

Output of pacman -Qi java-runtime java-environment:
https://paste.uguu.se/?f1ecf08ff4eaf96c … v9fQGxBVye

Last edited by mrowkiuq (2022-06-27 12:46:11)

Offline

#13 2022-06-27 12:47:41

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Thank you for helping me, I figured i'd bring that up

Last edited by mrowkiuq (2022-06-27 12:49:08)

Offline

#14 2022-06-27 12:51:16

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

If it's a cmake argument, then it might go well with one of the cmake lines.

Offline

#15 2022-06-27 12:53:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,358
Website

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

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

#16 2022-06-27 12:56:46

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

mrowkiuq wrote:

How would I add those changes to replay-sorcery that you mentioned?

curl http://ix.io/412A -o PKGBUILd.diff
git reset --hard
git apply PKGBUILD.diff

Or you could make the changes manually,  remove lines starting with a - and add lines starting with a +.

For polymc perhaps cmake is confused by both java17 and java18 being available.

Online

#17 2022-06-27 13:11:48

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

loqs wrote:
mrowkiuq wrote:

How would I add those changes to replay-sorcery that you mentioned?

curl http://ix.io/412A -o PKGBUILd.diff
git reset --hard
git apply PKGBUILD.diff

Or you could make the changes manually,  remove lines starting with a - and add lines starting with a +.

For polymc perhaps cmake is confused by both java17 and java18 being available.

New error. https://paste.uguu.se/?6e375183b82b1151 … tYrvMiTt89

Offline

#18 2022-06-27 13:15:54

loqs
Member
Registered: 2014-03-06
Posts: 18,818

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

What is the output of

pacman -Q srt

Edit:
Agreed with Scimmia old srt new ffmpeg

Last edited by loqs (2022-06-27 13:16:32)

Online

#19 2022-06-27 13:16:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,637

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

That one looks like a partial update problem. Fully update your system and try again.

Offline

#20 2022-06-27 13:18:03

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

loqs wrote:

What is the output of

pacman -Q srt

Edit:
Agreed with Scimmia old srt new ffmpeg

Output: srt 1.4.4-1

Offline

#21 2022-06-27 13:25:19

mrowkiuq
Member
Registered: 2022-06-27
Posts: 33

Re: [SOLVED] Cannot build packages in AUR, (with yay helper)

Scimmia wrote:

That one looks like a partial update problem. Fully update your system and try again.

Hallelujah, thank you! Much appreciated, adding the Solved tag now.

Offline

Board footer

Powered by FluxBB