diff options
author | Andrew Savchenko <bircoph@gentoo.org> | 2021-05-16 14:15:08 +0300 |
---|---|---|
committer | Andrew Savchenko <bircoph@gentoo.org> | 2021-05-16 14:15:08 +0300 |
commit | 69066bcc0d5d5f91d796bbc819e6c7b68a965cff (patch) | |
tree | 7c18fd122cae6e2f55ed0bb5f7bad932f79d0fc0 /media-libs/svgalib | |
parent | */*: Fix apps.kde.org HOMEPAGE entries again (diff) | |
download | gentoo-69066bcc0d5d5f91d796bbc819e6c7b68a965cff.tar.gz gentoo-69066bcc0d5d5f91d796bbc819e6c7b68a965cff.tar.bz2 gentoo-69066bcc0d5d5f91d796bbc819e6c7b68a965cff.zip |
media-libs/svgalib: fix asm arg width
rorw operates on word-width registers, specify this explicitly via %w0
Closes: https://bugs.gentoo.org/789747
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'media-libs/svgalib')
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.25-gl-asm-width.patch | 15 | ||||
-rw-r--r-- | media-libs/svgalib/svgalib-1.9.25-r8.ebuild | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/svgalib/files/svgalib-1.9.25-gl-asm-width.patch b/media-libs/svgalib/files/svgalib-1.9.25-gl-asm-width.patch new file mode 100644 index 000000000000..8204ea163bd4 --- /dev/null +++ b/media-libs/svgalib/files/svgalib-1.9.25-gl-asm-width.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/show_bug.cgi?id=789747 +--- svgalib-1.9.25/gl/driver.c.orig 2021-05-16 13:24:38.937410767 +0300 ++++ svgalib-1.9.25/gl/driver.c 2021-05-16 13:24:47.263441562 +0300 +@@ -38,9 +38,9 @@ + ((c >> 8) & 0xff) << 8 | + ((c >> 16) & 0xff) << 0; + #else +- asm("rorw $8, %0\n" /* 0RGB -> 0RBG */ ++ asm("rorw $8, %w0\n" /* 0RGB -> 0RBG */ + "rorl $16, %0\n" /* 0RBG -> BG0R */ +- "rorw $8, %0\n" /* BG0R -> BGR0 */ ++ "rorw $8, %w0\n" /* BG0R -> BGR0 */ + "shrl $8, %0\n" /* 0BGR -> 0BGR */ + : "=q"(c):"0"(c)); + #endif diff --git a/media-libs/svgalib/svgalib-1.9.25-r8.ebuild b/media-libs/svgalib/svgalib-1.9.25-r8.ebuild index 87dea240053f..6d98ad4c4ef1 100644 --- a/media-libs/svgalib/svgalib-1.9.25-r8.ebuild +++ b/media-libs/svgalib/svgalib-1.9.25-r8.ebuild @@ -32,6 +32,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.9.25-no-man-compression.patch "${FILESDIR}"/${PN}-1.9.25-wrapdemo-buf-overflow.patch "${FILESDIR}"/${PN}-1.9.25-ar.patch + "${FILESDIR}"/${PN}-1.9.25-gl-asm-width.patch ) pkg_setup() { |