[med-svn] [Git][med-team/gmap][master] 2 commits: Add patch supposedly fixing builds on mips and arm architectures
Alexandre Mestiashvili
gitlab at salsa.debian.org
Thu Oct 4 16:20:48 BST 2018
Alexandre Mestiashvili pushed to branch master at Debian Med / gmap
Commits:
fc274614 by Alexandre Mestiashvili at 2018-10-04T14:33:04Z
Add patch supposedly fixing builds on mips and arm architectures
- - - - -
42942a2e by Alexandre Mestiashvili at 2018-10-04T14:44:08Z
Update changelog
Gbp-Dch: Ignore
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/bigendian.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+gmap (2018-09-27-2) experimental; urgency=medium
+
+ * Add patch supposedly fixing builds on MIPS and ARM architectures
+
+ -- Alexandre Mestiashvili <mestia at debian.org> Thu, 04 Oct 2018 14:43:27 +0000
+
gmap (2018-09-27-1) experimental; urgency=medium
* New upstream version 2018-09-27
=====================================
debian/patches/bigendian.patch
=====================================
@@ -0,0 +1,63 @@
+Subject: Update bigendian.[c,h] files in attempt to fix builds on arm and mips
+Author: Upstream
+Forwarded: not-needed
+--- gmap.orig/src/bigendian.c
++++ gmap/src/bigendian.c
+@@ -18,6 +18,45 @@
+ return;
+ }
+
++
++/************************************************************************
++ * Unsigned short
++ ************************************************************************/
++
++size_t
++Bigendian_fwrite_ushort (unsigned short value, FILE *fp) {
++ unsigned char buf[2];
++
++ buf[1] = value & 0xff;
++ buf[0] = (value >>= 8) & 0xff;
++ if (fwrite(buf,sizeof(unsigned short),2,fp) == 0) {
++ /* Should set error indicator for stream and set errno */
++ return 0;
++ } else {
++ return 1;
++ }
++}
++
++size_t
++Bigendian_fwrite_ushorts (unsigned short *array, int n, FILE *fp) {
++ unsigned char buf[4];
++ unsigned short value;
++ int i;
++
++ for (i = 0; i < n; i++) {
++ value = array[i];
++ buf[1] = value & 0xff;
++ buf[0] = (value >>= 8) & 0xff;
++ if (fwrite(buf,sizeof(unsigned short),2,fp) == 0) {
++ /* Should set error indicator for stream and set errno */
++ return 0;
++ }
++ }
++ return n;
++}
++
++
++
+ /************************************************************************
+ * Int
+ ************************************************************************/
+--- gmap.orig/src/bigendian.h
++++ gmap/src/bigendian.h
+@@ -98,6 +98,9 @@
+ #define FWRITE_UINT8S(a,n,fp) Bigendian_fwrite_uint8s(a,n,fp)
+ #endif
+
++#define FWRITE_USHORT(x,fp) Bigendian_fwrite_ushort(x,fp)
++#define FWRITE_USHORTS(a,n,fp) Bigendian_fwrite_ushorts(a,n,fp)
++
+ #define FREAD_CHARS(a,n,fp) fread(a,sizeof(char),n,fp)
+ #define FWRITE_CHARS(a,n,fp) fwrite(a,sizeof(char),n,fp)
+
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
+bigendian.patch
only-do-cpuid-on-amd64-i386.patch
install-data-local
View it on GitLab: https://salsa.debian.org/med-team/gmap/compare/e0f8e00d85afb7e62a7704bf4ad316f11c8f913d...42942a2e9d80deadf9e3bbada63219280948f7c0
--
View it on GitLab: https://salsa.debian.org/med-team/gmap/compare/e0f8e00d85afb7e62a7704bf4ad316f11c8f913d...42942a2e9d80deadf9e3bbada63219280948f7c0
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20181004/32fe7256/attachment-0001.html>
More information about the debian-med-commit
mailing list