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: Port to libidn2
Date: Mon, 20 Jul 2026 18:05:54 GMT [thread overview]
Message-ID: <178457075425.1.7876008995934658245.rpms-vlc-8ca0cf8659a9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/vlc
Branch : epel9-next
Commit : 8ca0cf8659a93fcf4cc779eba86a0987599cf198
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2024-06-02T22:26:06-04:00
Stats : +52/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/vlc/c/8ca0cf8659a93fcf4cc779eba86a0987599cf198?branch=epel9-next
Log:
Port to libidn2
---
diff --git a/libidn2.patch b/libidn2.patch
new file mode 100644
index 0000000..0a98497
--- /dev/null
+++ b/libidn2.patch
@@ -0,0 +1,49 @@
+diff --git a/configure.ac b/configure.ac
+index 78b9ce2..b9c1563 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -910,9 +910,9 @@ AM_CONDITIONAL(HAVE_MINIZIP, [ test "${have_minizip}" = "yes" ])
+
+
+ dnl
+-dnl Domain name i18n support via GNU libidn
++dnl Domain name i18n support via GNU libidn2
+ dnl
+-PKG_CHECK_MODULES([IDN], [libidn], [
++PKG_CHECK_MODULES([IDN], [libidn2], [
+ have_libidn="yes"
+ AC_DEFINE([HAVE_IDN], 1, [Define to 1 if you have GNU libidn.])
+ ], [
+diff --git a/src/text/url.c b/src/text/url.c
+index 2eb4b8d..467b7f3 100644
+--- a/src/text/url.c
++++ b/src/text/url.c
+@@ -873,7 +873,7 @@ char *vlc_uri_fixup(const char *str)
+ }
+
+ #if defined (HAVE_IDN)
+-# include <idna.h>
++# include <idn2.h>
+ #elif defined (_WIN32)
+ # include <windows.h>
+ # include <vlc_charset.h>
+@@ -914,16 +914,13 @@ static char *vlc_idna_to_ascii (const char *idn)
+ #if defined (HAVE_IDN)
+ char *adn;
+
+- switch (idna_to_ascii_8z(idn, &adn, IDNA_ALLOW_UNASSIGNED))
++ switch (idn2_to_ascii_8z(idn, &adn, IDN2_ALLOW_UNASSIGNED|IDN2_NFC_INPUT|IDN2_NONTRANSITIONAL))
+ {
+- case IDNA_SUCCESS:
++ case IDN2_OK:
+ return adn;
+- case IDNA_MALLOC_ERROR:
++ case IDN2_MALLOC:
+ errno = ENOMEM;
+ return NULL;
+- case IDNA_DLOPEN_ERROR:
+- errno = ENOSYS;
+- return NULL;
+ default:
+ errno = EINVAL;
+ return NULL;
diff --git a/vlc.spec b/vlc.spec
index f93f962..cece37e 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -46,6 +46,8 @@ Patch: appdata.patch
# GCC 14 fixes from upstream
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
%{load:%{S:1}}
%global __provides_exclude_from ^%{vlc_plugindir}/.*$
@@ -127,7 +129,7 @@ BuildRequires: pkgconfig(libdvbpsi)
BuildRequires: pkgconfig(libebml) >= 1.3.6
BuildRequires: pkgconfig(libgme)
#BuildRequires: pkgconfig(libgoom2)
-BuildRequires: pkgconfig(libidn)
+BuildRequires: pkgconfig(libidn2)
BuildRequires: pkgconfig(libmatroska)
BuildRequires: pkgconfig(libmodplug) >= 0.8.9.0
BuildRequires: pkgconfig(libmpeg2) >= 0.3.2
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=178457075425.1.7876008995934658245.rpms-vlc-8ca0cf8659a9@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