[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

CVS:libhnj-deb/debian/patches 00list,NONE,1.1 03_no_const.dpatch,NONE,1.1



Update of /cvs/debian-openoffice/libhnj-deb/debian/patches
In directory gluck:/tmp/cvs-serv4967/patches

Added Files:
	00list 03_no_const.dpatch 
Log Message:
* check for sparc-linux instead of sparc when setting the compiler
  to sparc-linux-*, thanks Robert Millan
* relibtoolize to "use a libtool from this century" (for mips*),
  thanks Ryan Murray  - do it in debian/rules; add
  libtool, autoconf and automake1.4 to Build-Depends:
* remove bogus const making building fail with newer gcc-3.3's
* actually add a 00list file to actually apply the patches *blushes*


--- NEW FILE: 03_no_const.dpatch ---
#! /bin/sh -e
## 03_no_const.dpatch by Rene Engelhard <rene@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"

case "$1" in
    -patch) patch -p1 ${patch_opts} < $0;;
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
    *)
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
        exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /home/rene/Debian/Pakete/libhnj/libhnj-0.1.1/hsjust.c libhnj-0.1.1/hsjust.c
--- /home/rene/Debian/Pakete/libhnj/libhnj-0.1.1/hsjust.c	1999-02-11 22:40:26.000000000 +0100
+++ libhnj-0.1.1/hsjust.c	2004-04-10 22:21:23.000000000 +0200
@@ -42,7 +42,7 @@
    */
 
 int
-hnj_hs_just (const HnjBreak *breaks, int n_breaks,
+hnj_hs_just (HnjBreak *breaks, int n_breaks,
 	     const HnjParams *params, int *result)
 {
   int set_width = params->set_width;
diff -urNad /home/rene/Debian/Pakete/libhnj/libhnj-0.1.1/hsjust.h libhnj-0.1.1/hsjust.h
--- /home/rene/Debian/Pakete/libhnj/libhnj-0.1.1/hsjust.h	1999-02-11 16:52:30.000000000 +0100
+++ libhnj-0.1.1/hsjust.h	2004-04-10 22:21:17.000000000 +0200
@@ -43,7 +43,7 @@
 #endif /* __cplusplus */
 
 /* Return value is number of breaks in result. */
-int hnj_hs_just (const HnjBreak *breaks, int n_breaks,
+int hnj_hs_just (HnjBreak *breaks, int n_breaks,
 		 const HnjParams *params, int *result);
 
 #ifdef __cplusplus

--- NEW FILE: 00list ---
02_std_includes
03_no_const



Reply to: