diff options
author | Friedrich Oslage <bluebird@gentoo.org> | 2008-09-14 16:56:22 +0000 |
---|---|---|
committer | Friedrich Oslage <bluebird@gentoo.org> | 2008-09-14 16:56:22 +0000 |
commit | a7ab84c650074c83b484829fa39a16c236a2266e (patch) | |
tree | e2c96ff471510c7785d276d8e77f112353f952cb /media-sound/jack-audio-connection-kit/files | |
parent | Initial import of split gnome-python-desktop. This package installs bindings ... (diff) | |
download | gentoo-2-a7ab84c650074c83b484829fa39a16c236a2266e.tar.gz gentoo-2-a7ab84c650074c83b484829fa39a16c236a2266e.tar.bz2 gentoo-2-a7ab84c650074c83b484829fa39a16c236a2266e.zip |
Stable on sparc, also add a patch to make /proc/cpuinfo parsing work with recent kernels, bug #236230
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-sound/jack-audio-connection-kit/files')
-rw-r--r-- | media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch b/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch new file mode 100644 index 000000000000..8017f90ebe93 --- /dev/null +++ b/media-sound/jack-audio-connection-kit/files/jack-audio-connection-kit-sparc-cpuinfo.patch @@ -0,0 +1,17 @@ +On Linux/SPARC, /proc/cpuinfo doesn't include "Cpu0Bogo" anymore, +use "Cpu0ClkTck" instead to determine the processor speed. + +linux upstream commit 8b99cfb8cc51adae7f5294c8962a026c63100959 + +--- old/config/os/gnu-linux/time.c ++++ new/config/os/gnu-linux/time.c +@@ -152,7 +152,8 @@ + defined(__x86_64__) + ret = sscanf(buf, "cpu MHz : %" SCNu64, &mhz); + #elif defined( __sparc__ ) +- ret = sscanf(buf, "Cpu0Bogo : %" SCNu64, &mhz); ++ ret = sscanf(buf, "Cpu0ClkTck : %" PRIx16, &mhz); ++ mhz = mhz / 1000 / 1000; // hz -> mhz + #elif defined( __mc68000__ ) + ret = sscanf(buf, "Clocking: %" SCNu64, &mhz); + #elif defined( __s390__ ) |