[arch-commits] Commit in opal/trunk (PKGBUILD opal-gcc7.patch)

Antonio Rojas arojas at archlinux.org
Wed Jul 12 19:54:34 UTC 2017


    Date: Wednesday, July 12, 2017 @ 19:54:33
  Author: arojas
Revision: 300198

PIE rebuild

Added:
  opal/trunk/opal-gcc7.patch
Modified:
  opal/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    9 ++++++---
 opal-gcc7.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-12 19:50:31 UTC (rev 300197)
+++ PKGBUILD	2017-07-12 19:54:33 UTC (rev 300198)
@@ -3,7 +3,7 @@
 # Contributor: Tom K <tomk at runbox.com>
 pkgname=opal
 pkgver=3.10.11
-pkgrel=13
+pkgrel=14
 pkgdesc="Open Phone Abstraction Library"
 arch=(i686 x86_64)
 url="http://www.opalvoip.org"
@@ -16,12 +16,14 @@
         disable-samples-ftbfs.diff
         libav9.patch
         libav10.patch
-        ffmpeg_2.9.patch)
+        ffmpeg_2.9.patch
+        opal-gcc7.patch)
 sha256sums=('f38e7969e88a28dd9a10a6051315aceecde79d0bbd1a35676868dc5787aed706'
             'f6497c74bbfd47fac036ff97dd74e8c87e6040d686944d29a926ccf3b7525be2'
             '460e5c814aaedc8573b14b2096930464d669f7dcd884f9fce7188533927ae968'
             'a47ca14dd5f04b63fda7a3d0481692ae01340b84b65b693ad43cfacf778a6534'
-            '0d4392ce9688cf576ae864605d48ed58427a2a281ad88028ff5bd7016341d276')
+            '0d4392ce9688cf576ae864605d48ed58427a2a281ad88028ff5bd7016341d276'
+            'cb7270055f1f2a29dec19ecab398ce0e75b1e440312e17df8a893308bfb3732c')
 
 prepare() {
   cd $pkgname-$pkgver
@@ -29,6 +31,7 @@
   patch -Np1 -i ../libav9.patch
   patch -Np1 -i ../libav10.patch
   patch -Np1 -i ../ffmpeg_2.9.patch
+  patch -Np1 -i ../opal-gcc7.patch # Fix build with GCC 7
   sed -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' -i src/im/msrp.cxx
 }
 

Added: opal-gcc7.patch
===================================================================
--- opal-gcc7.patch	                        (rev 0)
+++ opal-gcc7.patch	2017-07-12 19:54:33 UTC (rev 300198)
@@ -0,0 +1,13 @@
+--- opal-3.10.11/plugins/video/common/mpi.cxx.orig	2017-07-12 19:15:10.396689138 +0000
++++ opal-3.10.11/plugins/video/common/mpi.cxx	2017-07-12 19:18:02.036496397 +0000
+@@ -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  - desiredWidth) ) *
++                 abs((int)(MPIs[i].height - desiredHeight) ) );
+ 
+     if (distance < minDistance) {
+       minDistance = distance;



More information about the arch-commits mailing list