Adds dependency to system installed dnsjava library, removes patches.

cusax-fix
Damian Minkov 13 years ago
parent a7e1c0847e
commit 94f7a76b0e

@ -1838,8 +1838,8 @@
tofile="${debianize.dir}/${package.name}.lintian-overrides"
overwrite="true"/>
<copy file="${inst.resrc}/debian/README.libraries"
tofile="${debianize.dir}/README.libraries"
<copy file="${inst.resrc}/debian/README.embedded-libraries"
tofile="${debianize.dir}/README.embedded-libraries"
overwrite="true"/>
<!-- Prepare man page file -->
@ -1915,9 +1915,9 @@
<copy todir="${debianize.dir}/source">
<fileset dir="${inst.resrc}/debian/source"/>
</copy>
<copy todir="${debianize.dir}/patches">
<!--copy todir="${debianize.dir}/patches">
<fileset dir="${inst.resrc}/debian/patches"/>
</copy>
</copy-->
</target>
<!-- sets custom build target or a custom one -->
@ -2331,15 +2331,6 @@
<mkdir dir="${debian.src.dir}/lib/src/jnsapi/classes"/>
<mkdir dir="${debian.src.dir}/lib/src/jnsapi/lib"/>
<!-- dns java -->
<unzip src="${sc.basedir}/../libsrc/dnsjava-2.1.3.zip"
dest="${debian.src.dir}/lib/src">
<patternset>
<exclude name="**/*.jar"/>
<exclude name="**/*.class"/>
</patternset>
</unzip>
<!-- java-jml-->
<unzip src="${sc.basedir}/../libsrc/java-jml.zip"
dest="${debian.src.dir}/lib/src"/>
@ -2680,12 +2671,7 @@
overwrite="true"
link="${debian.src.dir}/lib/installer-exclude"/>
<!-- dnsjava -->
<ant dir="${debian.src.dir}/lib/src/dnsjava-2.1.3"
inheritAll="false"
target="jar">
</ant>
<symlink resource="../src/dnsjava-2.1.3/dnsjava-2.1.3.jar"
<symlink resource="/usr/share/java/dnsjava.jar "
overwrite="true"
link="${debian.src.dir}/lib/installer-exclude/dnsjava.jar"/>
@ -3016,6 +3002,7 @@
<property name="x264" value=""/>
<property name="lame" value=""/>
<property name="libvpx" value=""/>
<property name="LIBAV" value=""/>
</ant>
<!-- video4linux -->
@ -3139,10 +3126,8 @@
</unzip>
<delete file="${debian.bundles.dest}/util.jar"/>
<mkdir dir="${debian.bundles.dest}/util.jar/META-INF"/>
<symlink resource="../../../../share/java/laf-widget.jar"
link="${debian.bundles.dest}/util.jar/laf-widget.jar"/>
<copy file="${lib.noinst}/dnsjava.jar"
todir="${debian.bundles.dest}/util.jar"/>
<symlink resource="../../../../share/java/dnsjava.jar"
link="${debian.bundles.dest}/util.jar/dnsjava.jar"/>
<!-- Create the util.jar-->
<jar compress="false"
@ -3179,7 +3164,44 @@
destfile="${debian.bundles.dest}/util.jar/META-INF/MANIFEST.MF"
append="true"
eol="crlf"
fixlastline="true">Bundle-ClassPath: .,util.jar,dnsjava.jar,laf-widget.jar&#013;&#010;&#013;&#010;</concat>
fixlastline="true">Bundle-ClassPath: .,util.jar,dnsjava.jar&#013;&#010;&#013;&#010;</concat>
</target>
<!-- target to rebuild the util bundle reusing debian package -->
<target name="deb-bundle-desktoputil">
<unzip src="${debian.bundles.dest}/desktoputil.jar"
dest="${debian.bundles.dest}">
<patternset>
<include name="META-INF/MANIFEST.MF"/>
</patternset>
</unzip>
<delete file="${debian.bundles.dest}/desktoputil.jar"/>
<mkdir dir="${debian.bundles.dest}/desktoputil.jar/META-INF"/>
<symlink resource="../../../../share/java/laf-widget.jar"
link="${debian.bundles.dest}/util.jar/laf-widget.jar"/>
<!-- Create the desktoputil.jar-->
<jar compress="false"
destfile="${debian.bundles.dest}/desktoputil.jar/desktoputil.jar">
<zipfileset dir="${dest}/net/java/sip/communicator/plugin/desktoputil"
prefix="net/java/sip/communicator/plugin/desktoputil">
<exclude name="dns/**"/>
</zipfileset>
</jar>
<move file="${debian.bundles.dest}/META-INF/MANIFEST.MF"
todir="${debian.bundles.dest}/desktoputil.jar/META-INF"/>
<delete dir="${debian.bundles.dest}/META-INF"/>
<!-- Removes the last empty line -->
<replaceregexp
file="${debian.bundles.dest}/desktoputil.jar/META-INF/MANIFEST.MF"
match="^\r\n$"
flags="m"
replace=""/>
<concat
destfile="${debian.bundles.dest}/desktoputil.jar/META-INF/MANIFEST.MF"
append="true"
eol="crlf"
fixlastline="true">Bundle-ClassPath: .,desktoputil.jar,laf-widget.jar&#013;&#010;&#013;&#010;</concat>
</target>
<!-- target to rebuild the sysactivitynotifications bundle reusing

@ -66,15 +66,11 @@ Weupnp is a lightweight Java library implements the UPnP protocol.
Jitsis Sebastien Vincent is contributor and has commit right in the project.
Reason: No Debian package.
- dnsjava-2.1.3 http://dnsjava.org/
dnsjava is an implementation of DNS in Java.
Using version 2.1.3.
Reason: A Debian package exists only for version 2.0.8.
- gdata-java-client http://code.google.com/p/gdata-java-client/
The Google Data Java client library.
Using version 1.43.0.
Reason: A Debian package exist only for version 1.30.0.
Reason: The package was removed from Debian (package with version 1.30.0
exist only in squeeze).
- java-jml http://sourceforge.net/apps/trac/java-jml
JML is a Java API for communication with Windows Live Messenger/

@ -25,6 +25,7 @@ Build-Depends: debhelper (>= 9), javahelper,
liblog4j1.2-java,
libjgoodies-forms-java,
libjmdns-java,
libdnsjava-java,
libmac-widgets-java,
libfelix-main-java,
libfelix-framework-java,
@ -64,11 +65,12 @@ Package: _PACKAGE_NAME_
Architecture: all
Depends: ${misc:Depends},
_PACKAGE_NAME_-jni (>= ${source:Version}),
sun-java6-jre | openjdk-6-jre | default-jre | openjdk-7-jre,
default-jre | java6-runtime,
libunixsocket-java,
libhttpcore-java,
liblog4j1.2-java,
libjmdns-java,
libdnsjava-java,
libmac-widgets-java,
libfelix-main-java,
libfelix-framework-java,
@ -85,7 +87,6 @@ Depends: ${misc:Depends},
libjgoodies-forms-java,
libjson-simple-java
Recommends: ${java:Recommends}
Homepage: _APP_WEB_
Description: Java VoIP and Instant Messaging client
_APP_NAME_ is an application that allows you to do audio/video
conversations over the Internet through the SIP and XMPP/Jabber protocol,
@ -96,7 +97,6 @@ Package: _PACKAGE_NAME_-jni
Section: libs
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Homepage: _APP_WEB_
Description: _APP_NAME_ JNI library
These are the jni bindings for _APP_NAME_ the Java VoIP
and Instant Messaging client. Libraries to access audio and video devices.

@ -62,8 +62,7 @@ Standards-Version: 3.9.3
Package: _PACKAGE_NAME_
Architecture: i386 amd64
Depends: sun-java6-jre | openjdk-6-jre | default-jre | openjdk-7-jre, libxss1
Homepage: _APP_WEB_
Depends: default-jre | java6-runtime, libxss1
Description: the Java VoIP and Instant Messaging client
_APP_NAME_ is an application that allows you to do audio/video
conversations over the Internet through the SIP and XMPP/Jabber protocol,

@ -174,30 +174,6 @@ License: Apache-2.0
License version 2 can be found in the file
'/usr/share/common-licenses/Apache-2.0'.
License: BSD-3-clause
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
.
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of the <ORGANIZATION> nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: BSD-2-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions

@ -1,123 +0,0 @@
--- a/lib/src/libjitsi/src/native/build.xml
+++ b/lib/src/libjitsi/src/native/build.xml
@@ -104,6 +104,18 @@
<isset property="is.running.macos"/>
</condition>
+ <!-- The path to the dpkg-buildpackage tool -->
+ <property name="dpkg-buildpackage" value="/usr/bin/dpkg-buildpackage"/>
+ <!-- The path to the dh_testdir tool -->
+ <property name="dh_testdir" value="/usr/bin/dh_testdir"/>
+ <condition property="is.running.debian">
+ <and>
+ <isset property="is.running.linux"/>
+ <available file="${dpkg-buildpackage}"/>
+ <available file="${dh_testdir}"/>
+ </and>
+ </condition>
+
<!--
<echo message="ffmpeg library: ${ffmpeg}" />
<echo message="x264 library: ${x264}" />
@@ -192,10 +204,17 @@
<linkerarg value="-ljawt" location="end" />
<!-- Linux-specific flags -->
+ <compilerarg value="-D_FORTIFY_SOURCE=2" if="is.running.debian"/>
+ <compilerarg value="-g" if="is.running.debian"/>
+ <compilerarg value="-fstack-protector" if="is.running.debian"/>
+ <compilerarg value="--param=ssp-buffer-size=4" if="is.running.debian"/>
+ <compilerarg value="-Werror=format-security" if="is.running.debian"/>
+ <compilerarg value="-Wformat" if="is.running.debian"/>
<compilerarg value="-I${system.JAVA_HOME}/include/linux" if="is.running.linux" />
<linkerarg value="-L${system.JAVA_HOME}/jre/lib/i386" if="is.running.linux" />
<linkerarg value="-L${system.JAVA_HOME}/jre/lib/amd64" if="is.running.linux" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<linkerarg value="-lXv" location="end" if="is.running.linux" />
<linkerarg value="-lX11" location="end" if="is.running.linux" />
@@ -287,6 +306,7 @@
<linkerarg value="-lswscale" location="end" />
<linkerarg value="-lmp3lame" location="end" />
<linkerarg value="-lx264" location="end" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<linkerarg value="-lvpx" location="end" />
<!-- Linux specific flags -->
@@ -379,6 +399,7 @@
<!-- Linux-specific flags -->
<compilerarg value="-I${system.JAVA_HOME}/include/linux" if="is.running.linux" />
+ <compilerarg value="-D_FORTIFY_SOURCE=2" if="is.running.debian"/>
<!-- Static libraries MUST be at the end; otherwise, they will not be
added to shared library.
@@ -392,6 +413,7 @@
<linkerarg value="-lasound" location="end" if="is.running.linux" />
<linkerarg value="-lm" location="end" if="is.running.linux" />
<linkerarg value="-lpthread" location="end" if="is.running.linux" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<!-- OS X-specific flags -->
<compilerarg value="-arch" if="is.running.macos" />
@@ -583,6 +605,7 @@
<compilerarg value="-D_JNI_IMPLEMENTATION_" />
<linkerarg value="-L${opus}/.libs" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<!-- Linux specific flags -->
<compilerarg value="-m32" if="cross_32" unless="is.running.macos" />
@@ -660,6 +683,7 @@
<linkerarg value="-m32" if="cross_32" />
<linkerarg value="-m64" if="cross_64" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<fileset dir="${src}/native/linux/video4linux2" includes="*.c"/>
</cc>
@@ -794,6 +818,7 @@
<compilerarg value="-D_REENTRANT" />
<linkerarg value="-Wl,--no-undefined" />
+ <linkerarg value="-Wl,-z,relro" if="is.running.debian"/>
<linkerarg value="-lpulse" />
<linkerarg value="-ldl" />
--- a/lib/src/libjitsi/src/native/ffmpeg/org_jitsi_impl_neomedia_codec_FFmpeg.c
+++ b/lib/src/libjitsi/src/native/ffmpeg/org_jitsi_impl_neomedia_codec_FFmpeg.c
@@ -17,8 +17,8 @@
#include <libavfilter/avfilter.h>
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/buffersrc.h>
-#include <libavfilter/formats.h> /* ff_default_query_formats, ff_make_format_list, ff_set_common_formats */
-#include <libavfilter/internal.h> /* ff_request_frame */
+//#include <libavfilter/formats.h> /* ff_default_query_formats, ff_make_format_list, ff_set_common_formats */
+//#include <libavfilter/internal.h> /* ff_request_frame */
#include <libswscale/swscale.h>
#define DEFINE_AVCODECCONTEXT_F_PROPERTY_SETTER(name, property) \
@@ -512,7 +512,7 @@
int err;
/* Find buffer. */
- while (src && src->nb_inputs && src->inputs)
+ while (src && src->inputs && src->inputs)
{
AVFilterLink *link = src->inputs[0];
@@ -527,11 +527,11 @@
{
const int pix_fmts[] = { src->outputs[0]->in_formats->formats[0], -1 };
- ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
+ avfilter_set_common_formats(ctx, ff_make_format_list(pix_fmts));
err = 0;
}
else
- err = ff_default_query_formats(ctx);
+ err = query_formats(ctx);
return err;
}

@ -21,7 +21,7 @@ override_dh_install-indep:
# make and install the debian specific bundles
# use the prebuild and installed bundles to extract/modify and use the
# exising debian java packages
$(ANT) -file build.xml -Ddebian.bundles.dest=debian/$(PACKAGE_NAME)/usr/lib/$(PACKAGE_NAME)/sc-bundles deb-bundle-jna deb-bundle-util deb-bundle-sysactivitynotifications deb-bundle-swing-ui deb-bundle-httputil deb-bundle-json deb-bundle-smacklib deb-bundle-jmdnslib
$(ANT) -file build.xml -Ddebian.bundles.dest=debian/$(PACKAGE_NAME)/usr/lib/$(PACKAGE_NAME)/sc-bundles deb-bundle-jna deb-bundle-util deb-bundle-sysactivitynotifications deb-bundle-swing-ui deb-bundle-httputil deb-bundle-json deb-bundle-smacklib deb-bundle-jmdnslib deb-bundle-desktoputil
override_dh_install-arch:
ifeq ($(DEB_HOST_ARCH),amd64)

Loading…
Cancel
Save