[med-svn] [Git][med-team/megahit][master] 2 commits: Patch to fix field unpacking within source

Shayan Doust gitlab at salsa.debian.org
Mon Oct 14 00:04:17 BST 2019



Shayan Doust pushed to branch master at Debian Med / megahit


Commits:
dedb3d8f by Shayan Doust at 2019-10-11T07:38:39Z
Patch to fix field unpacking within source
This issue happens when using pbuilder

- - - - -
0ce2e994 by Shayan Doust at 2019-10-11T07:39:19Z
Push createmanpages that was missed out in the previous commits

- - - - -


3 changed files:

- + debian/createmanpages
- + debian/patches/fix_src_packed_field.patch
- + debian/patches/series


Changes:

=====================================
debian/createmanpages
=====================================
@@ -0,0 +1,49 @@
+#!/bin/sh
+MANDIR=debian/mans
+mkdir -p $MANDIR
+
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
+NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
+PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
+
+AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and
+can be used for any other usage of the program.
+"
+
+progname=megahit
+help2man --no-info --no-discard-stderr --help-option="-h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+progname=megahit_core
+help2man --no-info --no-discard-stderr --help-option="-h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+progname=megahit_core_popcnt
+help2man --no-info --no-discard-stderr --help-option="-h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+progname=megahit_core_no_hw_accel
+help2man --no-info --no-discard-stderr --help-option="-h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+progname=megahit_toolkit
+help2man --no-info --no-discard-stderr --help-option="-h" \
+         --name="$NAME" \
+            --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
+echo $AUTHOR >> $MANDIR/${progname}.1
+
+echo "$MANDIR/*.1" > debian/manpages
+
+cat <<EOT
+Please enhance the help2man output.
+The following web page might be helpful in doing so:
+    http://liw.fi/manpages/
+EOT


=====================================
debian/patches/fix_src_packed_field.patch
=====================================
@@ -0,0 +1,15 @@
+Index: megahit/src/sequence/kmer.h
+===================================================================
+--- megahit.orig/src/sequence/kmer.h	2019-10-11 08:23:05.000000000 +0100
++++ megahit/src/sequence/kmer.h	2019-10-11 08:25:54.274610194 +0100
+@@ -113,7 +113,9 @@
+     }
+ 
+     for (unsigned i = 0; i + i < used_words; ++i) {
+-      std::swap(data_[i], data_[used_words - 1 - i]);
++      auto a = data_[i];
++      auto b = data_[used_words - 1 - i];
++      std::swap(a, b);
+     }
+ 
+     if ((k % kCharsPerWord) != 0) {


=====================================
debian/patches/series
=====================================
@@ -0,0 +1,2 @@
+
+fix_src_packed_field.patch



View it on GitLab: https://salsa.debian.org/med-team/megahit/compare/d72c2a0808ddcc96a2fe8a26e80d6b03c2133bb0...0ce2e994fd9a10dc895c2692f4bf2a0f767527b1

-- 
View it on GitLab: https://salsa.debian.org/med-team/megahit/compare/d72c2a0808ddcc96a2fe8a26e80d6b03c2133bb0...0ce2e994fd9a10dc895c2692f4bf2a0f767527b1
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/20191013/e053dc6d/attachment-0001.html>


More information about the debian-med-commit mailing list