From 826edee3ee348bf1537f7b888b82833df3a81d8a Mon Sep 17 00:00:00 2001 From: wenyuzifang Date: Wed, 17 Sep 2025 19:11:08 +0800 Subject: [PATCH] Update code from upstream --- ...al-0.4.0-respect-environment-ldflags.patch | 12 +++++++ libvisual-c99.patch | 33 +++++++++++++++++++ libvisual.spec | 14 +++++--- 3 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 libvisual-0.4.0-respect-environment-ldflags.patch create mode 100644 libvisual-c99.patch diff --git a/libvisual-0.4.0-respect-environment-ldflags.patch b/libvisual-0.4.0-respect-environment-ldflags.patch new file mode 100644 index 0000000..06b2634 --- /dev/null +++ b/libvisual-0.4.0-respect-environment-ldflags.patch @@ -0,0 +1,12 @@ +diff -ruN libvisual-0.4.0/libvisual/Makefile.am libvisual-0.4.0.orig/libvisual/Makefile.am +--- libvisual-0.4.0/libvisual/Makefile.am 2006-02-20 09:20:58.000000000 +0100 ++++ libvisual-0.4.0.orig/libvisual/Makefile.am 2021-09-23 11:00:27.137930658 +0200 +@@ -29,7 +29,7 @@ AM_CFLAGS = -DPLUGPATH="\"$(LIBVISUAL_PLUGINS_BASE_DIR)\"" \ + INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libvisual \ + -I$(top_builddir) -I$(top_builddir)/libvisual + +-libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_LDFLAGS = -export-dynamic -no-undefined ++libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_LDFLAGS = $(LDFLAGS) -export-dynamic -no-undefined + + libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_SOURCES = lv_actor.c lv_input.c lv_event.c \ + lv_bin.c lv_plugin.c lv_video.c lv_video_simd.c lv_mem.c \ diff --git a/libvisual-c99.patch b/libvisual-c99.patch new file mode 100644 index 0000000..9499ea7 --- /dev/null +++ b/libvisual-c99.patch @@ -0,0 +1,33 @@ +Include "lv_cpu.h" for the visual_cpu_initialize, visual_cpu_get_sse, +visual_cpu_get_3dnow functions. Add a prototype for +visual_transform_init, so that it can be called before it is defined. + +Submitted upstream to the 0.4.x branch: + + + +diff --git a/libvisual/lv_libvisual.c b/libvisual/lv_libvisual.c +index 8de03ebad7d499bb..e7ef768d421aa7fa 100644 +--- a/libvisual/lv_libvisual.c ++++ b/libvisual/lv_libvisual.c +@@ -30,6 +30,7 @@ + #include + + #include "lvconfig.h" ++#include "lv_cpu.h" + #include "lv_plugin.h" + #include "lv_actor.h" + #include "lv_input.h" +diff --git a/libvisual/lv_transform.c b/libvisual/lv_transform.c +index c763768c0fbb757a..58fe15fa57d2e783 100644 +--- a/libvisual/lv_transform.c ++++ b/libvisual/lv_transform.c +@@ -35,6 +35,8 @@ + #include "lv_transform.h" + #include "lv_mem.h" + ++int visual_transform_init (VisTransform *transform, const char *transformname); ++ + extern VisList *__lv_plugins_transform; + + static int transform_dtor (VisObject *object); diff --git a/libvisual.spec b/libvisual.spec index ca15400..6911520 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -1,16 +1,21 @@ -%define anolis_release 2 +%define anolis_release 3 %global smallversion 0.4 Name: libvisual -Version: 0.4.1 +Version: 0.4.1 Release: %{anolis_release}%{?dist} Epoch: 1 Summary: Abstraction library for audio visualisation plugins License: LGPLv2+ URL: http://libvisual.sf.net -Source0: https://sourceforge.net/projects/libvisual/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2 +Source0: https://sourceforge.net/projects/libvisual/files/libvisual/libvisual-0.4.1/libvisual-0.4.1.tar.bz2 +Patch1: libvisual-c99.patch +Patch2: libvisual-0.4.0-respect-environment-ldflags.patch BuildRequires: gcc-c++ BuildRequires: make +BuildRequires: automake +BuildRequires: sdl12-compat-devel +BuildRequires: xorg-x11-proto-devel %description Libvisual is an abstraction library that comes between applications and @@ -70,6 +75,8 @@ This package contains the files needed to build an application with libvisual. %changelog +* Wed Sep 17 2025 wenyuzifang - 1:0.4.1-3 +- Improve code safety, ensure proper function declarations, and prevent implicit declaration warnings. * Fri Dec 22 2023 mgb01105731 - 1:0.4.1-2 - rebuild @@ -84,4 +91,3 @@ This package contains the files needed to build an application with libvisual. * Fri Apr 15 2022 mgb01105731 - 1:0.4.0-1 - Init from upstream version 0.4.0 - -- Gitee