public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/vlc] epel9-next: Fix lua web interface
Date: Mon, 20 Jul 2026 18:05:55 GMT [thread overview]
Message-ID: <178457075517.1.9309308077526635842.rpms-vlc-9ff5b8688cab@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/vlc
Branch : epel9-next
Commit : 9ff5b8688cab281f22d1aae4be73e286aae943d8
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2024-06-02T23:40:01-04:00
Stats : +14/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/vlc/c/9ff5b8688cab281f22d1aae4be73e286aae943d8?branch=epel9-next
Log:
Fix lua web interface
math.pow was deprecated in lua-5.3 in favour of the ^ operator:
https://www.lua.org/manual/5.3/manual.html#8.2
Resolves: rhbz#2280091
---
diff --git a/lua-math.patch b/lua-math.patch
new file mode 100644
index 0000000..3972717
--- /dev/null
+++ b/lua-math.patch
@@ -0,0 +1,11 @@
+--- ./share/lua/intf/modules/httprequests.lua.Orig 2023-08-05 06:03:51.000000000 -0400
++++ ./share/lua/intf/modules/httprequests.lua 2024-05-28 14:02:41.569002601 -0400
+@@ -34,7 +34,7 @@
+ what = common.us_tonumber(what)
+ end
+ if type(what) == "number" then
+- return math.floor(what*math.pow(10,precision)+0.5) / math.pow(10,precision)
++ return math.floor(what*(10^precision)+0.5) / (10^precision)
+ end
+ return nil
+ end
diff --git a/vlc.spec b/vlc.spec
index ee3dfe9..4dc909b 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -27,7 +27,7 @@
Name: vlc
Epoch: 1
Version: 3.0.20
-Release: %autorelease -b 3
+Release: %autorelease
Summary: The cross-platform open-source multimedia framework, player and server
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause
URL: https://www.videolan.org
@@ -48,6 +48,8 @@ Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/4645.patch
Patch: https://code.videolan.org/videolan/vlc/-/merge_requests/4665.patch
# port from libidn to libidn2
Patch: libidn2.patch
+# fix deprecated lua math functions (rhbz#2280091)
+Patch: lua-math.patch
%{load:%{S:1}}
%global __provides_exclude_from ^%{vlc_plugindir}/.*$
reply other threads:[~2026-07-20 18:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178457075517.1.9309308077526635842.rpms-vlc-9ff5b8688cab@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox