@silverhikari
true, commenting out that line instead of manually adding the patch seemed to have done the trick.
Git Clone URL: | https://aur.archlinux.org/lib32-gst-bad-ugly.git (read-only, click to copy) |
---|---|
Package Base: | lib32-gst-bad-ugly |
Description: | Multimedia graph framework (32-bit) - libav plugin |
Upstream URL: | https://gstreamer.freedesktop.org/ |
Licenses: | LGPL |
Provides: | lib32-gst-ffmpeg |
Replaces: | lib32-gst-libav-latest |
Submitter: | ahmubashshir |
Maintainer: | ahmubashshir (MarsSeed) |
Last Packager: | ahmubashshir |
Votes: | 46 |
Popularity: | 0.087441 |
First Submitted: | 2023-01-07 17:47 (UTC) |
Last Updated: | 2024-08-26 05:01 (UTC) |
@silverhikari
true, commenting out that line instead of manually adding the patch seemed to have done the trick.
package fails to build as the prepare function still has the line "git apply -3 ../0003-libav-Fix-compatibility-with-ffmpeg-7.patch" which is a patch that is no longer included in the package and is no longer needed.
Also, does this mean these packages were previously on the official repos and got moved to the aur?
makepkg -fsriC --needed
==> Making package: lib32-gst-plugins-bad 1.18.5-2 (Sun 18 Aug 2024 02:07:58 PM -04)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for user:
error: target not found: lib32-chromaprint
error: target not found: lib32-libkate
error: target not found: lib32-libmms
error: target not found: lib32-libmpcdec
error: target not found: lib32-libnice
error: target not found: lib32-libofa
error: target not found: lib32-lilv
error: target not found: lib32-mjpegtools
error: target not found: lib32-spandsp
error: target not found: lib32-webrtc-audio-processing
error: target not found: lib32-zbar
error: target not found: lib32-zvbi
==> ERROR: 'pacman' failed to install missing dependencies.
@gfurst what is the proper url? I get error 404
Ok, this was a nightmarish thing to take on, but I managed to build every other dependency over this package, had to manually go about and pre-install most of them.
But actually building the package it self fails in the preliminary checks, got the patch from below but still fails at:
Applied patch to 'subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c' with conflicts.
Applied patch to 'subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsplugin.c' cleanly.
Applied patch to 'subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsplugin.h' with conflicts.
Applied patch to 'subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsriff.c' cleanly.
Applied patch to 'subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c' with conflicts.
U subprojects/gst-libav/ext/libav/gstavauddec.c
U subprojects/gst-libav/ext/libav/gstavcodecmap.c
U subprojects/gst-libav/ext/libav/gstavviddec.c
U subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c
U subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsplugin.h
U subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctionsstartwith.c
==> ERROR: A failure occurred in prepare().
Aborting...
No clear reason why.
@zwastik you need to download the patch below manually and add it to PKGBUILD (plus SHA256 sum).
==> ERROR: Failure while downloading https://gitlab.archlinux.org/archlinux/packaging/packages/gstreamer/-/raw/main/
0002-libav-Fix-compatibility-with-ffmpeg-7.patch
Guys, lib32-x265 is outdated, so the build is failing.
@zepar Thanks, the patch also worked for me.
also adding the compiler flag to the meson options fixed the other error for me -D c_args="-Wno-error=incompatible-pointer-types"
@NeWolf to bypass that error i added this to the PKGBUILD:
export CFLAGS="${CFLAGS} -Wno-error=incompatible-pointer-types"
I'm now using the patch below and seems that line is no longer nedded:
package fails to build with this error
[1092/1461] Compiling C object subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o
FAILED: subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o
gcc -m32 -Isubprojects/gst-libav/ext/libav/libgstlibav.so.p -Isubprojects/gst-libav/ext/libav -I../gstreamer/subprojects/gst-libav/ext/libav -Isubprojects/gst-libav -I../gstreamer/subprojects/gst-libav -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -fvisibility=hidden -fno-strict-aliasing -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Waggregate-return -Wvla -Wpointer-arith -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o -MF subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o.d -o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o -c ../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c
../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c: In function ‘gst_ffmpegdata_open’:
../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c:272:28: error: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
272 | gst_ffmpegdata_read, gst_ffmpegdata_write, gst_ffmpegdata_seek);
| ^~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, uint8_t *, int) {aka int (*)(void *, unsigned char *, int)}
In file included from /usr/include/libavformat/avformat.h:319,
from ../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c:27:
/usr/include/libavformat/avio.h:404:25: note: expected ‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’} but argument is of type ‘int (*)(void *, uint8_t *, int)’ {aka ‘int (*)(void *, unsigned char *, int)’}
404 | int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1101/1461] Compiling C object subprojects/gst-plugin...tests/check/elements_dash_mpd.p/elements_dash_mpd.c.o
In file included from ../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:52:
../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:6012:17: warning: ‘dash_mpdparser_xlink_period’ defined but not used [-Wunused-function]
6012 | GST_START_TEST (dash_mpdparser_xlink_period)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gstreamer-1.0/gst/check/gstcheck.h:240:13: note: in definition of macro ‘GST_START_TEST’
240 | static void __testname (int G_GNUC_UNUSED __i__) \
| ^~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
ahmubashshir commented on 2023-11-18 14:43 (UTC) (edited on 2023-11-18 14:44 (UTC) by ahmubashshir)
If you have any improvements/suggestions for the pkgbuilds I maintain, please create an issue/pr on github.com/ahmubashshir/pkgbuilds or send the patches to ahmubashshir+pkgbuilds@gmail.com
p.s. sorry for being late, I was busy with my mid and part-time job last three months... it was truly chaotic...