~ubuntu-branches/ubuntu/wily/libjna-java/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/20-set-library-path-for-tests.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-11-02 14:14:51 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091102141451-j5hdwzzq5zwxrp4n
* New upstream release.
* Fixed debian/repack-source.sh to correctly use mktemp.
* Make libjna-java Depends on *-headless packages.
* Moved package under pkg-java control.
* Added debian/README.source to describe quilt.
* Added myself as Uploader.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 02-set-library-path-for-tests.dpatch by Tiago Saboga <tiagosaboga@gmail.com>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Set library path for junit tests.
 
6
 
 
7
@DPATCH@
 
8
diff -urNad libjna-java-3.0.4~/build.xml libjna-java-3.0.4/build.xml
 
9
--- libjna-java-3.0.4~/build.xml        2008-07-24 22:45:15.000000000 -0300
 
10
+++ libjna-java-3.0.4/build.xml 2008-07-24 22:49:56.000000000 -0300
 
11
@@ -402,6 +402,7 @@
 
12
     <property name="tests.platform" value=""/>
 
13
     <junit printsummary="yes" fork="${test.fork}" failureproperty="testfailure">
 
14
       <jvmarg value="-Djna.library.path=${build.native}"/>
 
15
+      <jvmarg value="-Djava.library.path=${build.native}:${java.library.path}"/>
 
16
       <!-- Avoid VM crashes, if possible -->
 
17
       <jvmarg value="-Djna.protected=true"/>
 
18
       <jvmarg value="-Ddir.build.suffix=${dir.build.suffix}"/>