package/vdr: reformatted patches
git-formatted patches due to the upstream repo using git: http://git.tvdr.de/?p=vdr.git Sent patches upstream and added Upstream: tags. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
parent
f3b46aa2aa
commit
c9b2e252ca
@ -1590,9 +1590,6 @@ package/vde2/0001-no-cxx.patch Upstream
|
|||||||
package/vde2/0002-fstp-Add-static-to-inline-functions.patch Upstream
|
package/vde2/0002-fstp-Add-static-to-inline-functions.patch Upstream
|
||||||
package/vde2/0003-vde_l3-Add-static-to-inline-functions.patch Upstream
|
package/vde2/0003-vde_l3-Add-static-to-inline-functions.patch Upstream
|
||||||
package/vdr/0001-getloadavg.patch Upstream
|
package/vdr/0001-getloadavg.patch Upstream
|
||||||
package/vdr/0002-musl-compat.patch Upstream
|
|
||||||
package/vdr/0003-include-missing-limits.patch Upstream
|
|
||||||
package/vdr/0004-i18n.c-_nl_msg_cat_cntr-is-an-internal-symbol-of-som.patch Upstream
|
|
||||||
package/vlc/0001-Disable-building-of-statically-linked-vlc-binary.patch Upstream
|
package/vlc/0001-Disable-building-of-statically-linked-vlc-binary.patch Upstream
|
||||||
package/vlc/0002-automake-add-subdir-objects-option.patch Upstream
|
package/vlc/0002-automake-add-subdir-objects-option.patch Upstream
|
||||||
package/vlc/0003-build-use-pkg-config-to-get-tremor-libs.patch Upstream
|
package/vlc/0003-build-use-pkg-config-to-get-tremor-libs.patch Upstream
|
||||||
|
@ -1,12 +1,28 @@
|
|||||||
Fix musl build
|
From fb44386acc2497ac250364bc08cebc26ded816cf Mon Sep 17 00:00:00 2001
|
||||||
|
From: Carlo Landmeter <clandmeter@gmail.com>
|
||||||
|
Date: Tue, 16 May 2023 19:57:39 +0200
|
||||||
|
Subject: [PATCH] Fix musl build
|
||||||
|
|
||||||
Downloaded from
|
Downloaded from
|
||||||
https://git.alpinelinux.org/aports/tree/community/vdr/musl-compat.patch
|
https://git.alpinelinux.org/aports/tree/community/vdr/musl-compat.patch
|
||||||
|
|
||||||
|
Initial commit:
|
||||||
|
https://git.alpinelinux.org/aports/commit/?id=140248605cee4a0160f80b47ce77a823be2f740a
|
||||||
|
|
||||||
|
Upstream: https://www.linuxtv.org/pipermail/vdr/2023-May/029744.html
|
||||||
|
|
||||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
|
---
|
||||||
|
i18n.h | 2 +-
|
||||||
|
osd.c | 2 +-
|
||||||
|
thread.c | 4 +++-
|
||||||
|
tools.c | 4 ++--
|
||||||
|
tools.h | 14 ++++++++++++--
|
||||||
|
vdr.c | 6 ++++++
|
||||||
|
6 files changed, 25 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
diff --git a/i18n.h b/i18n.h
|
diff --git a/i18n.h b/i18n.h
|
||||||
index f8ad9de..b002bbf 100644
|
index 03deb6f2..85ce4077 100644
|
||||||
--- a/i18n.h
|
--- a/i18n.h
|
||||||
+++ b/i18n.h
|
+++ b/i18n.h
|
||||||
@@ -46,7 +46,7 @@ const cStringList *I18nLanguages(void);
|
@@ -46,7 +46,7 @@ const cStringList *I18nLanguages(void);
|
||||||
@ -19,7 +35,7 @@ index f8ad9de..b002bbf 100644
|
|||||||
///< the current language. If no translation is available, the original
|
///< the current language. If no translation is available, the original
|
||||||
///< string will be returned.
|
///< string will be returned.
|
||||||
diff --git a/osd.c b/osd.c
|
diff --git a/osd.c b/osd.c
|
||||||
index 524700a..ef975f5 100644
|
index 47bda686..0d360c81 100644
|
||||||
--- a/osd.c
|
--- a/osd.c
|
||||||
+++ b/osd.c
|
+++ b/osd.c
|
||||||
@@ -12,7 +12,7 @@
|
@@ -12,7 +12,7 @@
|
||||||
@ -32,10 +48,10 @@ index 524700a..ef975f5 100644
|
|||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
|
|
||||||
diff --git a/thread.c b/thread.c
|
diff --git a/thread.c b/thread.c
|
||||||
index 47eb977..58dba43 100644
|
index 93eb8c0d..6e854541 100644
|
||||||
--- a/thread.c
|
--- a/thread.c
|
||||||
+++ b/thread.c
|
+++ b/thread.c
|
||||||
@@ -155,7 +155,9 @@ cRwLock::cRwLock(bool PreferWriter)
|
@@ -160,7 +160,9 @@ cRwLock::cRwLock(bool PreferWriter)
|
||||||
writeLockThreadId = 0;
|
writeLockThreadId = 0;
|
||||||
pthread_rwlockattr_t attr;
|
pthread_rwlockattr_t attr;
|
||||||
pthread_rwlockattr_init(&attr);
|
pthread_rwlockattr_init(&attr);
|
||||||
@ -45,7 +61,7 @@ index 47eb977..58dba43 100644
|
|||||||
pthread_rwlock_init(&rwlock, &attr);
|
pthread_rwlock_init(&rwlock, &attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,7 +207,7 @@ cMutex::cMutex(void)
|
@@ -210,7 +212,7 @@ cMutex::cMutex(void)
|
||||||
locked = 0;
|
locked = 0;
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
@ -55,10 +71,10 @@ index 47eb977..58dba43 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/tools.c b/tools.c
|
diff --git a/tools.c b/tools.c
|
||||||
index 754673d..fef9d2d 100644
|
index d04033b1..8b161eec 100644
|
||||||
--- a/tools.c
|
--- a/tools.c
|
||||||
+++ b/tools.c
|
+++ b/tools.c
|
||||||
@@ -640,7 +640,7 @@ char *ReadLink(const char *FileName)
|
@@ -672,7 +672,7 @@ char *ReadLink(const char *FileName)
|
||||||
{
|
{
|
||||||
if (!FileName)
|
if (!FileName)
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -67,7 +83,7 @@ index 754673d..fef9d2d 100644
|
|||||||
if (!TargetName) {
|
if (!TargetName) {
|
||||||
if (errno == ENOENT) // file doesn't exist
|
if (errno == ENOENT) // file doesn't exist
|
||||||
TargetName = strdup(FileName);
|
TargetName = strdup(FileName);
|
||||||
@@ -1528,7 +1528,7 @@
|
@@ -1562,7 +1562,7 @@ cReadDir::~cReadDir()
|
||||||
struct dirent *cReadDir::Next(void)
|
struct dirent *cReadDir::Next(void)
|
||||||
{
|
{
|
||||||
if (directory) {
|
if (directory) {
|
||||||
@ -77,7 +93,7 @@ index 754673d..fef9d2d 100644
|
|||||||
#else
|
#else
|
||||||
while ((result = readdir(directory)) != NULL) {
|
while ((result = readdir(directory)) != NULL) {
|
||||||
diff --git a/tools.h b/tools.h
|
diff --git a/tools.h b/tools.h
|
||||||
index 73cca5a..03f5fd1 100644
|
index ff6169ee..60eda179 100644
|
||||||
--- a/tools.h
|
--- a/tools.h
|
||||||
+++ b/tools.h
|
+++ b/tools.h
|
||||||
@@ -28,6 +28,16 @@
|
@@ -28,6 +28,16 @@
|
||||||
@ -97,7 +113,7 @@ index 73cca5a..03f5fd1 100644
|
|||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
|
|
||||||
extern int SysLogLevel;
|
extern int SysLogLevel;
|
||||||
@@ -400,7 +410,7 @@
|
@@ -444,7 +454,7 @@ class cReadDir {
|
||||||
private:
|
private:
|
||||||
DIR *directory;
|
DIR *directory;
|
||||||
struct dirent *result;
|
struct dirent *result;
|
||||||
@ -106,7 +122,7 @@ index 73cca5a..03f5fd1 100644
|
|||||||
union { // according to "The GNU C Library Reference Manual"
|
union { // according to "The GNU C Library Reference Manual"
|
||||||
struct dirent d;
|
struct dirent d;
|
||||||
char b[offsetof(struct dirent, d_name) + NAME_MAX + 1];
|
char b[offsetof(struct dirent, d_name) + NAME_MAX + 1];
|
||||||
@@ -738,7 +748,7 @@ public:
|
@@ -818,7 +828,7 @@ public:
|
||||||
data[i] = T(0);
|
data[i] = T(0);
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
@ -116,10 +132,10 @@ index 73cca5a..03f5fd1 100644
|
|||||||
qsort(data, size, sizeof(T), Compare);
|
qsort(data, size, sizeof(T), Compare);
|
||||||
}
|
}
|
||||||
diff --git a/vdr.c b/vdr.c
|
diff --git a/vdr.c b/vdr.c
|
||||||
index 8a49471..c2a82aa 100644
|
index 1bdc51ab..0f426e61 100644
|
||||||
--- a/vdr.c
|
--- a/vdr.c
|
||||||
+++ b/vdr.c
|
+++ b/vdr.c
|
||||||
@@ -670,12 +670,18 @@ int main(int argc, char *argv[])
|
@@ -661,12 +661,18 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Terminal) {
|
else if (Terminal) {
|
||||||
@ -137,4 +153,7 @@ index 8a49471..c2a82aa 100644
|
|||||||
+#endif
|
+#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
isyslog("VDR version %s started", VDRVERSION);
|
// Set user id in case we were started as root:
|
||||||
|
--
|
||||||
|
2.39.2
|
||||||
|
|
51
package/vdr/0003-Include-limits.h.patch
Normal file
51
package/vdr/0003-Include-limits.h.patch
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
From a4a3d9b012c12cd8aaa2526f0eacdcffcdd9f8f1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Roberto Oliveira <robertoguimaraes8@gmail.com>
|
||||||
|
Date: Tue, 16 May 2023 20:01:18 +0200
|
||||||
|
Subject: [PATCH] Include limits.h
|
||||||
|
|
||||||
|
vdr package uses some macros like HOST_NAME_MAX, NAME_MAX, which are defined
|
||||||
|
in limits.h.
|
||||||
|
Needs to be explicitly included on ppc64le and for all archs for debug build.
|
||||||
|
|
||||||
|
Downloaded from
|
||||||
|
https://git.alpinelinux.org/aports/tree/community/vdr/include-missing-limits.patch
|
||||||
|
|
||||||
|
Initial commits:
|
||||||
|
https://git.alpinelinux.org/aports/commit/?id=c9d8942ccf4825fd734b5f37157a49fc4f0b4339
|
||||||
|
https://git.alpinelinux.org/aports/commit/?id=47965644c390b1be1117769b1e08b31858267e9a
|
||||||
|
|
||||||
|
Upstream: https://www.linuxtv.org/pipermail/vdr/2023-May/029743.html
|
||||||
|
|
||||||
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||||
|
---
|
||||||
|
config.h | 1 +
|
||||||
|
tools.c | 1 +
|
||||||
|
2 files changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/config.h b/config.h
|
||||||
|
index 72dd3d2a..b9ea769f 100644
|
||||||
|
--- a/config.h
|
||||||
|
+++ b/config.h
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
#include "i18n.h"
|
||||||
|
#include "font.h"
|
||||||
|
#include "tools.h"
|
||||||
|
+#include <limits.h>
|
||||||
|
|
||||||
|
// VDR's own version number:
|
||||||
|
|
||||||
|
diff --git a/tools.c b/tools.c
|
||||||
|
index 8b161eec..56a2e0dd 100644
|
||||||
|
--- a/tools.c
|
||||||
|
+++ b/tools.c
|
||||||
|
@@ -27,6 +27,7 @@ extern "C" {
|
||||||
|
#include <utime.h>
|
||||||
|
#include "i18n.h"
|
||||||
|
#include "thread.h"
|
||||||
|
+#include <limits.h>
|
||||||
|
|
||||||
|
int SysLogLevel = 3;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.2
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
vdr package uses some macros like HOST_NAME_MAX, NAME_MAX, which are defined
|
|
||||||
in limits.h.
|
|
||||||
Needs to be explicitly included on ppc64le and for all archs for debug build.
|
|
||||||
|
|
||||||
Downloaded from
|
|
||||||
https://git.alpinelinux.org/aports/tree/community/vdr/include-missing-limits.patch
|
|
||||||
|
|
||||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
|
||||||
----
|
|
||||||
|
|
||||||
--- a/config.h
|
|
||||||
+++ b/config.h
|
|
||||||
@@ -19,6 +19,7 @@
|
|
||||||
#include "i18n.h"
|
|
||||||
#include "font.h"
|
|
||||||
#include "tools.h"
|
|
||||||
+#include <limits.h>
|
|
||||||
|
|
||||||
// VDR's own version number:
|
|
||||||
|
|
||||||
--- a/tools.c
|
|
||||||
+++ b/tools.c
|
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
#include <utime.h>
|
|
||||||
#include "i18n.h"
|
|
||||||
#include "thread.h"
|
|
||||||
+#include <limits.h>
|
|
||||||
|
|
||||||
int SysLogLevel = 3;
|
|
||||||
|
|
@ -10,6 +10,8 @@ anything because musl has a basic NLS implementation. Even
|
|||||||
gettext-tiny defines _nl_msg_cat_cntr as a dummy symbol in its stub
|
gettext-tiny defines _nl_msg_cat_cntr as a dummy symbol in its stub
|
||||||
libintl-musl implementation.
|
libintl-musl implementation.
|
||||||
|
|
||||||
|
Upstream: https://www.linuxtv.org/pipermail/vdr/2023-May/029745.html
|
||||||
|
|
||||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
---
|
---
|
||||||
i18n.c | 2 ++
|
i18n.c | 2 ++
|
||||||
|
Loading…
Reference in New Issue
Block a user