public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Savchenko" <bircoph@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/svgalib/files/, media-libs/svgalib/
Date: Sun, 16 May 2021 11:21:31 +0000 (UTC)	[thread overview]
Message-ID: <1621163708.69066bcc0d5d5f91d796bbc819e6c7b68a965cff.bircoph@gentoo> (raw)

commit:     69066bcc0d5d5f91d796bbc819e6c7b68a965cff
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sun May 16 11:15:08 2021 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sun May 16 11:15:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69066bcc

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 <AT> gentoo.org>

 .../svgalib/files/svgalib-1.9.25-gl-asm-width.patch       | 15 +++++++++++++++
 media-libs/svgalib/svgalib-1.9.25-r8.ebuild               |  1 +
 2 files changed, 16 insertions(+)

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 00000000000..8204ea163bd
--- /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 87dea240053..6d98ad4c4ef 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() {


             reply	other threads:[~2021-05-16 11:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-16 11:21 Andrew Savchenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-02  9:20 [gentoo-commits] repo/gentoo:master commit in: media-libs/svgalib/files/, media-libs/svgalib/ Andrew Savchenko
2016-05-25  7:58 Andrew Savchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1621163708.69066bcc0d5d5f91d796bbc819e6c7b68a965cff.bircoph@gentoo \
    --to=bircoph@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox