public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-dev:musl commit in: media-libs/mesa/, media-libs/mesa/files/
Date: Fri, 21 Feb 2014 21:01:32 +0000 (UTC)	[thread overview]
Message-ID: <1393014756.7a6dee92f3d9a3164f827ab80bc46e93330c2791.blueness@gentoo> (raw)

commit:     7a6dee92f3d9a3164f827ab80bc46e93330c2791
Author:     layman <layman <AT> localhost>
AuthorDate: Fri Feb 21 20:32:36 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Feb 21 20:32:36 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=7a6dee92

media-libs/mesa: use err.h instead of error.h

---
 .../mesa/files/mesa-9.1.6-remove-error_h.patch     | 33 ++++++++++++++++++++++
 media-libs/mesa/mesa-9.1.6-r99.ebuild              |  3 ++
 2 files changed, 36 insertions(+)

diff --git a/media-libs/mesa/files/mesa-9.1.6-remove-error_h.patch b/media-libs/mesa/files/mesa-9.1.6-remove-error_h.patch
new file mode 100644
index 0000000..c12d6fd
--- /dev/null
+++ b/media-libs/mesa/files/mesa-9.1.6-remove-error_h.patch
@@ -0,0 +1,33 @@
+diff -Naur Mesa-9.1.6.orig/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c Mesa-9.1.6/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c
+--- Mesa-9.1.6.orig/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c	2013-07-31 22:56:45.000000000 +0000
++++ Mesa-9.1.6/src/gallium/state_trackers/xvmc/tests/xvmc_bench.c	2014-02-21 20:20:43.470217630 +0000
+@@ -28,7 +28,7 @@
+ #include <assert.h>
+ #include <stdio.h>
+ #include <string.h>
+-#include <error.h>
++#include <err.h>
+ #include <sys/time.h>
+ #include "testlib.h"
+ 
+@@ -144,9 +144,9 @@
+ 	}
+ 
+ 	if (fail)
+-		error
++		err
+ 		(
+-			1, 0,
++			1,
+ 			"Bad argument.\n"
+ 			"\n"
+ 			"Usage: %s [options]\n"
+@@ -214,7 +214,7 @@
+ 	))
+ 	{
+ 		XCloseDisplay(display);
+-		error(1, 0, "Error, unable to find a good port.\n");
++		err(1, "Error, unable to find a good port.\n");
+ 	}
+ 
+ 	if (is_overlay)

diff --git a/media-libs/mesa/mesa-9.1.6-r99.ebuild b/media-libs/mesa/mesa-9.1.6-r99.ebuild
index 6a70d16..f1c69d3 100644
--- a/media-libs/mesa/mesa-9.1.6-r99.ebuild
+++ b/media-libs/mesa/mesa-9.1.6-r99.ebuild
@@ -161,6 +161,9 @@ src_prepare() {
 		epatch
 	fi
 
+	# musl doesn have error, so we fall back on err.
+	epatch "${FILESDIR}"/${PN}-9.1.6-remove-error_h.patch
+
 	# relax the requirement that r300 must have llvm, bug 380303
 	epatch "${FILESDIR}"/${PN}-8.1-dont-require-llvm-for-r300.patch
 


             reply	other threads:[~2014-02-21 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 21:01 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-22 12:51 [gentoo-commits] proj/hardened-dev:musl commit in: media-libs/mesa/, media-libs/mesa/files/ Anthony G. Basile
2015-02-23 12:54 Anthony G. Basile
2014-04-08 19:35 Anthony G. Basile
2014-03-01 19:59 Anthony G. Basile
2014-02-21 21:04 Anthony G. Basile
2014-02-14 21:51 Anthony G. Basile

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=1393014756.7a6dee92f3d9a3164f827ab80bc46e93330c2791.blueness@gentoo \
    --to=blueness@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