[arch-commits] Commit in mpv/repos/community-x86_64 (4 files)
Christian Hesse
eworm at archlinux.org
Thu Oct 3 20:23:13 UTC 2019
Date: Thursday, October 3, 2019 @ 20:23:12
Author: eworm
Revision: 512559
archrelease: copy trunk to community-x86_64
Added:
mpv/repos/community-x86_64/0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch
(from rev 512558, mpv/trunk/0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch)
mpv/repos/community-x86_64/PKGBUILD
(from rev 512558, mpv/trunk/PKGBUILD)
Deleted:
mpv/repos/community-x86_64/0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch
mpv/repos/community-x86_64/PKGBUILD
----------------------------------------------------------------+
0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch | 80 +++---
PKGBUILD | 128 +++++-----
2 files changed, 104 insertions(+), 104 deletions(-)
Deleted: 0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch
===================================================================
--- 0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch 2019-10-03 20:22:53 UTC (rev 512558)
+++ 0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch 2019-10-03 20:23:12 UTC (rev 512559)
@@ -1,40 +0,0 @@
-From 037cbacb8c5081313ea65024d4305d29a47165e0 Mon Sep 17 00:00:00 2001
-From: dudemanguy <random342 at airmail.cc>
-Date: Fri, 3 May 2019 11:54:31 -0500
-Subject: [PATCH] libarchive: add fallback for systems without C.UTF-8
-
----
- osdep/io.h | 1 +
- stream/stream_libarchive.c | 7 +++++--
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/osdep/io.h b/osdep/io.h
-index 7e8a267541..2f04337288 100644
---- a/osdep/io.h
-+++ b/osdep/io.h
-@@ -196,6 +196,7 @@ int msync(void *addr, size_t length, int flags);
- // These are stubs since there is not anything that helps with this on Windows.
- #define locale_t int
- #define LC_ALL_MASK 0
-+#define LC_CTYPE_MASK 0
- locale_t newlocale(int, const char *, locale_t);
- locale_t uselocale(locale_t);
- void freelocale(locale_t);
-diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c
-index e5acad016b..ae06efb890 100644
---- a/stream/stream_libarchive.c
-+++ b/stream/stream_libarchive.c
-@@ -244,8 +244,11 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
- struct mp_archive *mpa = talloc_zero(NULL, struct mp_archive);
- mpa->log = log;
- mpa->locale = newlocale(LC_ALL_MASK, "C.UTF-8", (locale_t)0);
-- if (!mpa->locale)
-- goto err;
-+ if (!mpa->locale) {
-+ mpa->locale = newlocale(LC_CTYPE_MASK, "", (locale_t)0);
-+ if (!mpa->locale)
-+ goto err;
-+ }
- mpa->arch = archive_read_new();
- mpa->primary_src = src;
- if (!mpa->arch)
Copied: mpv/repos/community-x86_64/0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch (from rev 512558, mpv/trunk/0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch)
===================================================================
--- 0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch (rev 0)
+++ 0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch 2019-10-03 20:23:12 UTC (rev 512559)
@@ -0,0 +1,40 @@
+From 037cbacb8c5081313ea65024d4305d29a47165e0 Mon Sep 17 00:00:00 2001
+From: dudemanguy <random342 at airmail.cc>
+Date: Fri, 3 May 2019 11:54:31 -0500
+Subject: [PATCH] libarchive: add fallback for systems without C.UTF-8
+
+---
+ osdep/io.h | 1 +
+ stream/stream_libarchive.c | 7 +++++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/osdep/io.h b/osdep/io.h
+index 7e8a267541..2f04337288 100644
+--- a/osdep/io.h
++++ b/osdep/io.h
+@@ -196,6 +196,7 @@ int msync(void *addr, size_t length, int flags);
+ // These are stubs since there is not anything that helps with this on Windows.
+ #define locale_t int
+ #define LC_ALL_MASK 0
++#define LC_CTYPE_MASK 0
+ locale_t newlocale(int, const char *, locale_t);
+ locale_t uselocale(locale_t);
+ void freelocale(locale_t);
+diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c
+index e5acad016b..ae06efb890 100644
+--- a/stream/stream_libarchive.c
++++ b/stream/stream_libarchive.c
+@@ -244,8 +244,11 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
+ struct mp_archive *mpa = talloc_zero(NULL, struct mp_archive);
+ mpa->log = log;
+ mpa->locale = newlocale(LC_ALL_MASK, "C.UTF-8", (locale_t)0);
+- if (!mpa->locale)
+- goto err;
++ if (!mpa->locale) {
++ mpa->locale = newlocale(LC_CTYPE_MASK, "", (locale_t)0);
++ if (!mpa->locale)
++ goto err;
++ }
+ mpa->arch = archive_read_new();
+ mpa->primary_src = src;
+ if (!mpa->arch)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-03 20:22:53 UTC (rev 512558)
+++ PKGBUILD 2019-10-03 20:23:12 UTC (rev 512559)
@@ -1,64 +0,0 @@
-# Maintainer: Christian Hesse <mail at eworm.de>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Eivind Uggedal <eivind at uggedal.com>
-
-pkgname=mpv
-epoch=1
-pkgver=0.29.1
-pkgrel=8
-_waf_version=2.0.9
-pkgdesc='a free, open source, and cross-platform media player'
-arch=('x86_64')
-# We link against libraries that are licensed GPLv3 explicitly, libsmbclient
-# being one of these. So our package is GPLv3 only as well.
-license=('GPL3')
-url='https://mpv.io/'
-depends=('desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'jack' 'lcms2'
- 'libarchive' 'libcaca' 'libcdio-paranoia' 'libdvdnav' 'libgl' 'libva'
- 'libxinerama' 'libxkbcommon' 'libxrandr' 'libxss' 'libxv' 'lua52'
- 'rubberband' 'smbclient' 'uchardet' 'vulkan-icd-loader' 'wayland'
- 'xdg-utils' 'shaderc')
-makedepends=('mesa' 'python-docutils' 'ladspa' 'wayland-protocols'
- 'ffnvcodec-headers' 'vulkan-headers')
-optdepends=('youtube-dl: for video-sharing websites playback')
-options=('!emptydirs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
- "https://waf.io/waf-${_waf_version}"
- '0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch')
-sha256sums=('f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623'
- '2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48'
- '0f8a1ba2628a50a8637137dfff8f66fdf1e7beb6ff159309842dcb6f39363d5e')
-
-prepare() {
- cd ${pkgname}-${pkgver}
-
- patch -Np1 < ../0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch
-
- install -m755 "${srcdir}"/waf-${_waf_version} waf
-}
-
-build() {
- cd ${pkgname}-${pkgver}
-
- ./waf configure --prefix=/usr \
- --confdir=/etc/mpv \
- --enable-cdda \
- --enable-dvb \
- --enable-dvdnav \
- --enable-libarchive \
- --enable-libmpv-shared \
- --enable-libsmbclient \
- --enable-tv \
- --enable-zsh-comp
-
- ./waf build
-}
-
-package() {
- cd ${pkgname}-${pkgver}
-
- ./waf install --destdir="$pkgdir"
-
- install -m644 DOCS/{encoding.rst,tech-overview.txt} \
- "$pkgdir"/usr/share/doc/mpv
-}
Copied: mpv/repos/community-x86_64/PKGBUILD (from rev 512558, mpv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-03 20:23:12 UTC (rev 512559)
@@ -0,0 +1,64 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Eivind Uggedal <eivind at uggedal.com>
+
+pkgname=mpv
+epoch=1
+pkgver=0.29.1
+pkgrel=9
+_waf_version=2.0.9
+pkgdesc='a free, open source, and cross-platform media player'
+arch=('x86_64')
+# We link against libraries that are licensed GPLv3 explicitly, libsmbclient
+# being one of these. So our package is GPLv3 only as well.
+license=('GPL3')
+url='https://mpv.io/'
+depends=('desktop-file-utils' 'ffmpeg' 'hicolor-icon-theme' 'jack' 'lcms2'
+ 'libarchive' 'libcaca' 'libcdio-paranoia' 'libdvdnav' 'libgl' 'libva'
+ 'libxinerama' 'libxkbcommon' 'libxrandr' 'libxss' 'libxv' 'lua52'
+ 'rubberband' 'smbclient' 'uchardet' 'vulkan-icd-loader' 'wayland'
+ 'xdg-utils' 'shaderc' 'mujs')
+makedepends=('mesa' 'python-docutils' 'ladspa' 'wayland-protocols'
+ 'ffnvcodec-headers' 'vulkan-headers')
+optdepends=('youtube-dl: for video-sharing websites playback')
+options=('!emptydirs')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/v$pkgver.tar.gz"
+ "https://waf.io/waf-${_waf_version}"
+ '0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch')
+sha256sums=('f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623'
+ '2a8e0816f023995e557f79ea8940d322bec18f286917c8f9a6fa2dc3875dfa48'
+ '0f8a1ba2628a50a8637137dfff8f66fdf1e7beb6ff159309842dcb6f39363d5e')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+
+ patch -Np1 < ../0001-libarchive-add-fallback-for-systems-without-C-UTF-8.patch
+
+ install -m755 "${srcdir}"/waf-${_waf_version} waf
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./waf configure --prefix=/usr \
+ --confdir=/etc/mpv \
+ --enable-cdda \
+ --enable-dvb \
+ --enable-dvdnav \
+ --enable-libarchive \
+ --enable-libmpv-shared \
+ --enable-libsmbclient \
+ --enable-tv \
+ --enable-zsh-comp
+
+ ./waf build
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ ./waf install --destdir="$pkgdir"
+
+ install -m644 DOCS/{encoding.rst,tech-overview.txt} \
+ "$pkgdir"/usr/share/doc/mpv
+}
More information about the arch-commits
mailing list