[arch-commits] Commit in djvulibre/trunk (2 files)
Gaëtan Bisson
bisson at archlinux.org
Fri Dec 6 00:05:42 UTC 2019
Date: Friday, December 6, 2019 @ 00:05:40
Author: bisson
Revision: 370449
fix https://sourceforge.net/p/djvu/bugs/293
Added:
djvulibre/trunk/0001-always-assume-that-cpuid-works-on-x86_64.patch
Modified:
djvulibre/trunk/PKGBUILD
-----------------------------------------------------+
0001-always-assume-that-cpuid-works-on-x86_64.patch | 36 ++++++++++++++++++
PKGBUILD | 13 +++++-
2 files changed, 46 insertions(+), 3 deletions(-)
Added: 0001-always-assume-that-cpuid-works-on-x86_64.patch
===================================================================
--- 0001-always-assume-that-cpuid-works-on-x86_64.patch (rev 0)
+++ 0001-always-assume-that-cpuid-works-on-x86_64.patch 2019-12-06 00:05:40 UTC (rev 370449)
@@ -0,0 +1,36 @@
+From 8407dd3421f720ab2e1a61e3f1e60e08967f98db Mon Sep 17 00:00:00 2001
+From: Leon Bottou <leon at bottou.org>
+Date: Sun, 7 Oct 2018 18:04:48 -0400
+Subject: [PATCH] always assume that cpuid works on x86_64
+
+---
+ libdjvu/MMX.cpp | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/libdjvu/MMX.cpp b/libdjvu/MMX.cpp
+index e70fdd8..c0d1a34 100644
+--- a/libdjvu/MMX.cpp
++++ b/libdjvu/MMX.cpp
+@@ -169,16 +169,10 @@ MMXControl::enable_mmx()
+ #endif
+ #if defined(MMX) && defined(__GNUC__) && defined(__x86_64__)
+ // Detection of MMX for GCC
+- __asm__ volatile (// Check that CR0:EM is clear
+- "xorl %%edx,%%edx\n\t"
+- "smsw %%ax\n\t"
+- "andl $4,%%eax\n\t"
+- "jnz 1f\n\t"
+- // Execute CPUID
++ __asm__ volatile (// Execute CPUID
+ "movl $1,%%eax\n\t"
+- "cpuid\n"
+- // Finish
+- "1:\tmovl %%edx, %0"
++ "cpuid\n\t"
++ "movl %%edx, %0"
+ : "=m" (cpuflags) :
+ : "eax","ebx","ecx","edx");
+ #endif
+--
+2.24.0
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-05 23:26:10 UTC (rev 370448)
+++ PKGBUILD 2019-12-06 00:05:40 UTC (rev 370449)
@@ -4,7 +4,7 @@
pkgname=djvulibre
pkgver=3.5.27
-pkgrel=4
+pkgrel=5
pkgdesc="Suite to create, manipulate and view DjVu ('déjà vu') documents"
url='http://djvu.sourceforge.net/'
arch=('x86_64')
@@ -11,13 +11,20 @@
license=('GPL2')
makedepends=('librsvg')
depends=('libtiff' 'hicolor-icon-theme')
-source=("https://downloads.sourceforge.net/project/djvu/DjVuLibre/${pkgver}/djvulibre-${pkgver}.tar.gz")
-sha256sums=('e69668252565603875fb88500cde02bf93d12d48a3884e472696c896e81f505f')
+source=("https://downloads.sourceforge.net/project/djvu/DjVuLibre/${pkgver}/djvulibre-${pkgver}.tar.gz"
+ '0001-always-assume-that-cpuid-works-on-x86_64.patch')
+sha256sums=('e69668252565603875fb88500cde02bf93d12d48a3884e472696c896e81f505f'
+ '35654b433a7bbf0bf7e039385a80034776d5134bc59ff82ef74170ef4bbc86ce')
conflicts=('libdjvu')
provides=("libdjvu=${pkgver}")
replaces=('libdjvu')
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i ../0001-always-assume-that-cpuid-works-on-x86_64.patch
+}
+
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh
More information about the arch-commits
mailing list