From c19fcdd08ed0700bcea432a2fc6e9906b80835d6 Mon Sep 17 00:00:00 2001 From: wenyuzifang Date: Thu, 18 Sep 2025 12:37:21 +0800 Subject: [PATCH] Update code from upstream --- libvisual-c99.patch | 33 +++++++++++++++++++++++++++++++++ libvisual.spec | 13 +++++++++---- 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 libvisual-c99.patch 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..c8731f1 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -1,16 +1,20 @@ -%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 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 +74,8 @@ This package contains the files needed to build an application with libvisual. %changelog +* Thu Sep 18 2025 wenyuzifang - 1:0.4.1-3 +- Ensure proper function declarations and improve code robustness to prevent compilation issues. * Fri Dec 22 2023 mgb01105731 - 1:0.4.1-2 - rebuild @@ -84,4 +90,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