summaryrefslogtreecommitdiffstats
path: root/dilos/tdemultimedia/debian/patches
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2020-01-30 22:13:12 +0300
committerSlávek Banko <slavek.banko@axis.cz>2020-03-03 01:02:00 +0100
commit2d431168ce0d6256971009b09939bb2d4152b1cc (patch)
tree3c1e06b0c2c1eaf4775986938e4793b769817106 /dilos/tdemultimedia/debian/patches
parentde8843364b5ebfedb42b2c03aa8307fdec96f025 (diff)
downloadtde-packaging-2d431168ce0d6256971009b09939bb2d4152b1cc.tar.gz
tde-packaging-2d431168ce0d6256971009b09939bb2d4152b1cc.zip
DilOS: tdemultimedia build pack
Signed-off-by: Denis Kozadaev <denis@dilos.org> (cherry picked from commit afc1d293760dc8a0dc3ab2e69a2638dcc87d83fb)
Diffstat (limited to 'dilos/tdemultimedia/debian/patches')
-rw-r--r--dilos/tdemultimedia/debian/patches/common/04_am_maintainer_mode.diff11
-rw-r--r--dilos/tdemultimedia/debian/patches/common/06_disable_no_undefined.diff18
-rw-r--r--dilos/tdemultimedia/debian/patches/common/kubuntu_01_kdepot.diff26
-rw-r--r--dilos/tdemultimedia/debian/patches/dilos.patch253
-rw-r--r--dilos/tdemultimedia/debian/patches/series4
5 files changed, 312 insertions, 0 deletions
diff --git a/dilos/tdemultimedia/debian/patches/common/04_am_maintainer_mode.diff b/dilos/tdemultimedia/debian/patches/common/04_am_maintainer_mode.diff
new file mode 100644
index 000000000..391a80285
--- /dev/null
+++ b/dilos/tdemultimedia/debian/patches/common/04_am_maintainer_mode.diff
@@ -0,0 +1,11 @@
+--- a/admin/configure.in.min
++++ b/admin/configure.in.min
+@@ -38,6 +38,8 @@
+ dnl Automake doc recommends to do this only here. (Janos)
+ AM_INIT_AUTOMAKE(@MODULENAME@, @VERSION@) dnl searches for some needed programs
+
++AM_MAINTAINER_MODE
++
+ KDE_SET_PREFIX
+
+ dnl generate the config header
diff --git a/dilos/tdemultimedia/debian/patches/common/06_disable_no_undefined.diff b/dilos/tdemultimedia/debian/patches/common/06_disable_no_undefined.diff
new file mode 100644
index 000000000..05c932c3c
--- /dev/null
+++ b/dilos/tdemultimedia/debian/patches/common/06_disable_no_undefined.diff
@@ -0,0 +1,18 @@
+--- a/admin/acinclude.m4.in
++++ b/admin/acinclude.m4.in
+@@ -1689,15 +1689,6 @@
+ KDE_USE_CLOSURE_TRUE="#"
+ KDE_USE_CLOSURE_FALSE=""
+ KDE_NO_UNDEFINED=""
+- case $host in
+- *-*-linux-gnu)
+- KDE_CHECK_COMPILER_FLAG([Wl,--no-undefined],
+- [KDE_CHECK_COMPILER_FLAG([Wl,--allow-shlib-undefined],
+- [KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"],
+- [KDE_NO_UNDEFINED=""])],
+- [KDE_NO_UNDEFINED=""])
+- ;;
+- esac
+ fi
+ AC_SUBST(KDE_USE_CLOSURE_TRUE)
+ AC_SUBST(KDE_USE_CLOSURE_FALSE)
diff --git a/dilos/tdemultimedia/debian/patches/common/kubuntu_01_kdepot.diff b/dilos/tdemultimedia/debian/patches/common/kubuntu_01_kdepot.diff
new file mode 100644
index 000000000..28c95742b
--- /dev/null
+++ b/dilos/tdemultimedia/debian/patches/common/kubuntu_01_kdepot.diff
@@ -0,0 +1,26 @@
+--- kde/admin/cvs.sh 2005-11-26 02:42:02.000000000 +0000
++++ kde/admin/cvs.sh 2005-11-26 02:42:26.000000000 +0000
+@@ -537,6 +537,8 @@
+ if test -z "$PREPARETIPS"; then PREPARETIPS=preparetips ; fi
+ export EXTRACTRC PREPARETIPS
+
++kdepotpath=/usr/include/tde/tde.pot
++
+ for subdir in $dirs; do
+ test -z "$VERBOSE" || echo "Making messages in $subdir"
+ (cd $subdir
+@@ -554,10 +556,10 @@
+ fi
+ perl -e '$mes=0; while (<STDIN>) { next if (/^(if\s|else\s|endif)/); if (/^messages:/) { $mes=1; print $_; next; } if ($mes) { if (/$\\(XGETTEXT\)/ && / -o/) { s/ -o \$\(podir\)/ _translatorinfo.cpp -o \$\(podir\)/ } print $_; } else { print $_; } }' < Makefile.am | egrep -v '^include ' > _transMakefile
+
+- kdepotpath=${includedir:-`tde-config --expandvars --install include`}/tde.pot
+- if ! test -f $kdepotpath; then
+- kdepotpath=`tde-config --expandvars --prefix`/include/tde.pot
+- fi
++# kdepotpath=${includedir:-`tde-config --expandvars --install include`}/tde.pot
++# if ! test -f $kdepotpath; then
++# kdepotpath=`tde-config --expandvars --prefix`/include/tde.pot
++# fi
+
+ $MAKE -s -f _transMakefile podir=$podir EXTRACTRC="$EXTRACTRC" PREPARETIPS="$PREPARETIPS" srcdir=. \
+ XGETTEXT="${XGETTEXT:-xgettext} --foreign-user -C -ci18n -ki18n -ktr2i18n -kI18N_NOOP -kI18N_NOOP2 -kaliasLocale -x $kdepotpath" messages
diff --git a/dilos/tdemultimedia/debian/patches/dilos.patch b/dilos/tdemultimedia/debian/patches/dilos.patch
new file mode 100644
index 000000000..ec4f0b163
--- /dev/null
+++ b/dilos/tdemultimedia/debian/patches/dilos.patch
@@ -0,0 +1,253 @@
+Index: tdemultimedia/mpeglib/lib/util/audio/audioIO_SunOS.cpp
+===================================================================
+--- tdemultimedia.orig/mpeglib/lib/util/audio/audioIO_SunOS.cpp
++++ tdemultimedia/mpeglib/lib/util/audio/audioIO_SunOS.cpp
+@@ -14,7 +14,7 @@
+ #include <stdio.h>
+ #include <sys/audioio.h>
+ #include "audioIO.h"
+-#include <iostream.h>
++#include <iostream>
+
+ /* declare these static to effectively isolate the audio device */
+
+Index: tdemultimedia/cmake/modules/TDEMacros.cmake
+===================================================================
+--- tdemultimedia.orig/cmake/modules/TDEMacros.cmake
++++ tdemultimedia/cmake/modules/TDEMacros.cmake
+@@ -833,7 +833,7 @@ macro( tde_add_library _arg_target )
+
+ # set embedded archives
+ if( _embed )
+- list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
++ list( INSERT _link 0 -Wl,-zallextract ${_embed} -Wl,-zdefaultextract )
+ endif( _embed )
+
+ # set link libraries
+Index: tdemultimedia/xine_artsplugin/tools/thumbnail/videoscaler.cpp
+===================================================================
+--- tdemultimedia.orig/xine_artsplugin/tools/thumbnail/videoscaler.cpp
++++ tdemultimedia/xine_artsplugin/tools/thumbnail/videoscaler.cpp
+@@ -16,6 +16,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <pthread.h>
++#include <alloca.h>
+
+ #include <config.h>
+
+Index: tdemultimedia/kscd/libwm/plat_sun_cdda.c
+===================================================================
+--- tdemultimedia.orig/kscd/libwm/plat_sun_cdda.c
++++ tdemultimedia/kscd/libwm/plat_sun_cdda.c
+@@ -39,6 +39,8 @@
+ #include <sys/ioctl.h>
+ #include <malloc.h>
+ #include <errno.h>
++#include <fcntl.h>
++#include <unistd.h>
+
+ #define WM_MSG_CLASS WM_MSG_CLASS_PLATFORM
+
+@@ -94,7 +96,7 @@ static long wmcdda_normalize(struct cdda
+ * need to exit right away so the UI doesn't show the user any CDDA controls.
+ */
+ int
+-wmcdda_init(struct cdda_device* pdev, struct cdda_block *block)
++wmcdda_init(struct cdda_device* pdev)
+ {
+ struct cdrom_cdda cdda;
+ int i;
+@@ -123,14 +125,14 @@ wmcdda_init(struct cdda_device* pdev, st
+
+ if (ioctl(pdev->fd, CDROMCDDA, &cdda) < 0)
+ {
+- block->status = WM_CDM_STOPPED;
++ pdev->status = WM_CDM_STOPPED;
+ return -1;
+ } else {
+- block->status = WM_CDM_STOPPED;
++ pdev->status = WM_CDM_STOPPED;
+ return 0;
+ }
+ } else {
+- block->status = WM_CDM_EJECTED;
++ pdev->status = WM_CDM_EJECTED;
+ return -1;
+ }
+ }
+@@ -189,10 +191,12 @@ wmcdda_read(struct cdda_device* pdev, st
+ struct cdrom_cdda cdda;
+ int blk;
+ unsigned char *q;
++#ifndef __dilos__
+ extern int speed;
++#endif /* __dilos__ */
+ unsigned char* rawbuf = block->buf;
+
+- if(pdev->fd < 0 && (wmcdda_init(pdev, block) < 0)) {
++ if(pdev->fd < 0 && (wmcdda_init(pdev) < 0)) {
+ return -1;
+ }
+
+@@ -237,6 +241,7 @@ wmcdda_read(struct cdda_device* pdev, st
+ }
+ }
+
++#ifndef __dilos__
+ if (speed > 148)
+ {
+ /*
+@@ -247,6 +252,7 @@ wmcdda_read(struct cdda_device* pdev, st
+ (cdda.cdda_length * direction * (speed - 112)) / 36;
+ }
+ else
++#endif /* __dilos__ */
+ current_position = current_position + cdda.cdda_length * direction;
+
+ for (blk = 0; blk < numblocks; blk++)
+Index: tdemultimedia/kscd/libwm/plat_sun.c
+===================================================================
+--- tdemultimedia.orig/kscd/libwm/plat_sun.c
++++ tdemultimedia/kscd/libwm/plat_sun.c
+@@ -88,6 +88,9 @@ void sigthawinit(void) __attribute__ ((c
+ #pragma init(sigthawinit)
+ #endif /* GNUC */
+
++static void do_nothing(int);
++static int kick_codec(void);
++
+ static int last_left, last_right;
+ static struct wm_drive *thecd = NULL;
+
+@@ -235,12 +238,12 @@ wmcd_open( struct wm_drive *d )
+ /*
+ * See if we can do digital audio.
+ */
+-#if defined(BUILD_CDDA)
++#if defined(BUILD_CDDA) && !defined(__dilos__)
+ if(d->cdda) {
+ if (!gen_cdda_init(d))
+ /* WARNING: Old GUI call. How could this survive? */
+ enable_cdda_controls(1);
+- else {
++ } else {
+ wm_lib_message(WM_MSG_LEVEL_DEBUG|WM_MSG_CLASS, "wmcd_open(): failed in gen_cdda_init\n");
+ gen_close(d);
+ return -1;
+@@ -341,7 +344,7 @@ gen_close( struct wm_drive *d )
+ }
+
+ /* Alarm signal handler. */
+-static void do_nothing( int x ) { x++; }
++void do_nothing( int x ) { (void)x; }
+
+ /*
+ * Get the current status of the drive: the current play mode, the absolute
+@@ -608,7 +611,7 @@ gen_eject( struct wm_drive *d )
+ return (-2);
+
+ /* Is this a mounted filesystem? */
+- if (fstatfs(d->fd, &sfsbuf) == 0)
++ if (fstatvfs(d->fd, &sfsbuf) == 0)
+ return (-3);
+
+ IFCDDA(d) {
+@@ -628,7 +631,9 @@ gen_eject( struct wm_drive *d )
+ if (d->cdda_slave > -1)
+ {
+ write(d->cdda_slave, "E", 1);
++#ifndef __dilos__
+ cdda_get_ack(d->cdda_slave);
++#endif /* __dilos__ */
+ }
+ }
+
+@@ -699,7 +704,7 @@ gen_get_volume( struct wm_drive *d, int
+ return (wm_scsi2_get_volume(d, left, right));
+ } /* gen_get_volume() */
+
+-#ifdef BUILD_CDDA
++#if defined(BUILD_CDDA) && !defined(__dilos__)
+
+ /*
+ * Try to initialize the CDDA slave. Returns 0 on success.
+@@ -743,17 +748,19 @@ gen_cdda_init( struct wm_drive *d )
+ close(slavefds[1]);
+ d->cdda_slave = slavefds[0];
+
++#ifndef __dilos__
+ if (!cdda_get_ack(d->cdda_slave))
+ {
+ d->cdda_slave = -1;
+ codec_start();
+ return (-3);
+ }
++#endif /* __dilos__ */
+
+ return (0);
+ }
+
+-#endif /* BUILD_CDDA */
++#endif /* BUILD_CDDA && !__dilos__ */
+
+ /*
+ * The following code activates the internal CD audio passthrough on
+@@ -790,9 +797,9 @@ typedef int audio_device_t;
+ * Also, don't do anything real if it's not Solaris.
+ */
+ #if !defined(AUDIO_ENCODING_LINEAR) || !defined(CODEC) || !defined(SYSV) /* { */
+-codec_init() { return 0; }
+-codec_start() { return 0; }
+-codec_stop() { return 0; }
++int codec_init() { return 0; }
++int codec_start() { return 0; }
++int codec_stop() { return 0; }
+ #else
+
+ #ifndef AUDIO_INTERNAL_CD_IN
+@@ -805,6 +812,7 @@ static int ctl_fd = -1;
+ static int port = AUDIO_LINE_IN;
+ int internal_audio = 1;
+
++int
+ codec_init( void )
+ {
+ register int i;
+@@ -873,9 +881,9 @@ codec_init( void )
+ foo.record.port = port;
+ foo.record.balance = foo.play.balance = AUDIO_MID_BALANCE;
+ #ifdef BUILD_CDDA
+- if (d->cdda_slave > -1)
++/* if (d->cdda_slave > -1)
+ foo.monitor_gain = 0;
+- else
++ else*/
+ #endif
+ foo.monitor_gain = AUDIO_MAX_GAIN;
+ /*
+@@ -893,7 +901,7 @@ codec_init( void )
+ return 0;
+ }
+
+-static int
++int
+ kick_codec( void )
+ {
+ audio_info_t foo;
+@@ -928,6 +936,7 @@ kick_codec( void )
+ return retval;
+ } /* kick_codec() */
+
++int
+ codec_start( void )
+ {
+ audio_info_t foo;
+@@ -954,6 +963,7 @@ codec_start( void )
+ return 0;
+ } /* codec_start() */
+
++int
+ codec_stop( void ) { return 0; }
+
+ #endif /* CODEC } */
diff --git a/dilos/tdemultimedia/debian/patches/series b/dilos/tdemultimedia/debian/patches/series
new file mode 100644
index 000000000..8e96568f3
--- /dev/null
+++ b/dilos/tdemultimedia/debian/patches/series
@@ -0,0 +1,4 @@
+common/04_am_maintainer_mode.diff
+common/06_disable_no_undefined.diff
+common/kubuntu_01_kdepot.diff
+dilos.patch