diff options
author | maya <maya@pkgsrc.org> | 2017-05-13 07:51:08 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2017-05-13 07:51:08 +0000 |
commit | 78c0edf75ab936f177158177987f431642958bca (patch) | |
tree | a4e5f6b435d912b977c031ca08c8df0b5ceaee25 /audio | |
parent | f9f09eb7177575a123f489ecdfe584b7f125b5f5 (diff) | |
download | pkgsrc-78c0edf75ab936f177158177987f431642958bca.tar.gz |
don't fail the build just because we don't know how to check for cpu
features on ARM. it doesn't seem to be a problem if /cpu/procinfo is
empty as in netbsd/arm nor if procfs is unmounted.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libopus/distinfo | 3 | ||||
-rw-r--r-- | audio/libopus/patches/patch-celt_arm_armcpu.c | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/audio/libopus/distinfo b/audio/libopus/distinfo index 1fe953f95ce..d079e4d7de0 100644 --- a/audio/libopus/distinfo +++ b/audio/libopus/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.8 2017/01/22 13:04:55 wiz Exp $ +$NetBSD: distinfo,v 1.9 2017/05/13 07:51:08 maya Exp $ SHA1 (opus-1.1.4.tar.gz) = c7ecd67321c0e72c928ffc1013d725fc537e633f RMD160 (opus-1.1.4.tar.gz) = a5cb4400e6e41be23d522cfffb04f14e1ac555f1 SHA512 (opus-1.1.4.tar.gz) = 57f14b9e8037eaa02a4d86535d3bbcceca249310fbc9ef1a452cc19dd442d4cf338d5db241d20605c236e22549df2c8266b7486c5f1666b80c532afd52cb3585 Size (opus-1.1.4.tar.gz) = 978830 bytes +SHA1 (patch-celt_arm_armcpu.c) = 2698814d7f204c8ff82ac86b4b6d54f32ba0afb7 diff --git a/audio/libopus/patches/patch-celt_arm_armcpu.c b/audio/libopus/patches/patch-celt_arm_armcpu.c new file mode 100644 index 00000000000..3874c771ae6 --- /dev/null +++ b/audio/libopus/patches/patch-celt_arm_armcpu.c @@ -0,0 +1,33 @@ +$NetBSD: patch-celt_arm_armcpu.c,v 1.1 2017/05/13 07:51:08 maya Exp $ + +Don't error on ARM if we're not on linux or MSVC. +Currently the code attempts to open /proc/cpuinfo, and tests for +failure - if that doesn't contain useful info or doesn't exist, +it still behaves correctly. + +--- celt/arm/armcpu.c.orig 2017-01-16 20:50:20.000000000 +0000 ++++ celt/arm/armcpu.c +@@ -91,7 +91,7 @@ static OPUS_INLINE opus_uint32 opus_cpu_ + return flags; + } + +-#elif defined(__linux__) ++#else + /* Linux based */ + opus_uint32 opus_cpu_capabilities(void) + { +@@ -146,11 +146,12 @@ opus_uint32 opus_cpu_capabilities(void) + } + return flags; + } +-#else ++#endif ++#if !(defined(__linux__) || defined(_MSC_VER)) + /* The feature registers which can tell us what the processor supports are + * accessible in priveleged modes only, so we can't have a general user-space + * detection method like on x86.*/ +-# error "Configured to use ARM asm but no CPU detection method available for " \ ++# warning "Configured to use ARM asm but no CPU detection method available for " \ + "your platform. Reconfigure with --disable-rtcd (or send patches)." + #endif + |