Oct 2017
At your own risk.
diff -urN opal-3.10.10~dfsg2.orig/plugins/video/common/mpi.cxx opal-3.10.10~dfsg2/plugins/video/common/mpi.cxx --- opal-3.10.10~dfsg2.orig/plugins/video/common/mpi.cxx 2013-02-20 11:18:05.000000000 +0900 +++ opal-3.10.10~dfsg2/plugins/video/common/mpi.cxx 2017-10-17 08:59:07.742989787 +0900 @@ -132,8 +132,8 @@ // to the desired one or matches it for (i=0; i < MPIs.size(); i++) { // we square the value in order to get absolute distances - distance = ( abs(MPIs[i].width - desiredWidth ) * - abs(MPIs[i].height - desiredHeight) ); + distance = ( abs((int)MPIs[i].width - (int)desiredWidth ) * + abs((int)MPIs[i].height - (int)desiredHeight) ); if (distance < minDistance) { minDistance = distance;
$ dpkg-source -x opal_3.10.10~dfsg2-2.dsc
$ cd opal-3.10.10~dfsg2/ $ cp $DISTDIR/fixed_ambiguous_argument_of_abs.patch debian/patches/ $ echo fixed_ambiguous_argument_of_abs.patch >> debian/patches/series $ quilt push debian/patches/fixed_ambiguous_argument_of_abs.patch
opal (3.10.10~dfsg2-3) unstable; urgency=low * Fix ambiguous argument of abs() for mpi.cxx -- Your Name <youremail@domain> Tue, 17 Oct 2017 10:58:00 +0900
$ dpkg-buildpackage -us -ucor
$ debian/rules build $ fakeroot debian/rules binary
$ cd .. $ dpkg -i libopal-dev_3.10.10~dfsg2-3_amd64.deb libopal3.10.10_3.10.10~dfsg2-3_amd64.deb
libx264-dev:amd64 3:0.152.2851+gitba24899-d libx264-152:amd64 3:0.152.2851+gitba24899-d libavcodec-dev:amd64 10:3.3.4-dmo1+deb9u1 libavcodec57:amd64 10:3.3.4-dmo1+deb9u1 libavutil-dev:amd64 10:3.3.4-dmo1+deb9u1 libavutil55:amd64 10:3.3.4-dmo1+deb9u1 ffmpeg 10:3.3.4-dmo1+deb9u1ちなみにこの時点のstretchのlibx264は「libx264-150」だ...。