Re: [Mesa-dev] [Mesa-stable] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-24 Thread Jean-Sébastien Pédron
ng. And if it does not work out, we can revert it. Ok. I'm busy at the moment but will eventually come back to this later in October. > P.S. I will be revisiting the loader/libudev sometime soon, > effectively pushing the chaos into libdrm. You should get a lovely > warning (missing imp

Re: [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-07 Thread Jean-Sébastien Pédron
ting somewhere, it took a while to reach the mailing-list. Meanwhile, I filed a bug in Bugzilla [1]. To avoid confusion, do you prefer I send the new patch to the list too or should I continue with Bugzilla? [1] https://bugs.freedesktop.org/show_bug.cgi?id=91869 -- Jean-Sébastien Pédron

Re: [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-07 Thread Jean-Sébastien Pédron
exit(3) if the attribute is not supported? Can I use the HAVE_FUNC_ATTRIBUTE_DESTRUCTOR macro in ralloc.c for this purpose? -- Jean-Sébastien Pédron signature.asc Description: OpenPGP digital signature ___ mesa-dev mailing list mesa-dev@lists.freede

Re: [Mesa-dev] [Mesa-stable] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-07 Thread Jean-Sébastien Pédron
On 06.09.2015 23:40, Emil Velikov wrote: > Hi Jean-Sébastien, Hi! > On 3 September 2015 at 19:07, Jean-Sébastien Pédron > We have 4(5) users of atexit() - EGL, gallium trace driver, core mesa > and util/ralloc. The latter of which is used almost everywhere in > mesa. So a bit I

[Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-03 Thread Jean-Sébastien Pédron
... to free the ralloc context at program exit. On Linux, atexit(3) handlers are called when the program exits but also when a library is unloaded. The latter behavior is a Glibc extension. On systems where this extension is not supported, this causes an application to crash when, for instance, a

Re: [Mesa-dev] [PATCH] don't include libdrm in an include statement

2013-07-18 Thread Jean-Sébastien Pédron
041040.html -- Jean-Sébastien Pédron signature.asc Description: OpenPGP digital signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] Fix parsing of language code when making options.mo

2013-06-26 Thread Jean-Sébastien Pédron
On 26.06.2013 14:58, Jean-Sébastien Pédron wrote: > The patch uses the $* GNU make variable instead of shell parameter > expansion to find the language code. Please disregard this patch. The problem was fixed in 95e145aaee1c535aa4d55b1765c717968efdf18c, between the day I made the patch

Re: [Mesa-dev] [PATCH] configure.ac: On some systems, "x86-64" is called "amd64"

2013-06-26 Thread Jean-Sébastien Pédron
On 26.06.2013 15:35, Jonathan Gray wrote: > On Wed, Jun 26, 2013 at 02:54:34PM +0200, Jean-Sébastien Pédron wrote: >> Hello, >> >> On FreeBSD, the x86-64 arch is named "amd64". This patch fixes its >> detection in the configure script. > > Shouldn&#x

Re: [Mesa-dev] [PATCH] Fix symlinking of libraries in /lib on non-Linux systems

2013-06-26 Thread Jean-Sébastien Pédron
I attached a new patch, fixing the Makefile.am's you mention. -- Jean-Sébastien Pédron From 3b0c72425d7e3b024927023086c17c023fd193f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:30:06 +0200 Subject: [PATCH] Fix symlinking of libraries in /

Re: [Mesa-dev] [PATCH] Use and bswap32(x) on FreeBSD

2013-06-26 Thread Jean-Sébastien Pédron
On 26.06.2013 15:14, Jonathan Gray wrote: > this is already fixed in a cleaner way, see > ebd68dd02998a8595cb10844c37a6b02dc3078a8 You're right, thanks for pointing me to it! -- Jean-Sébastien Pédron signature.asc Description: OpenPGP digita

[Mesa-dev] [PATCH] Use "-I$(srcdir)/include", not "-Iinclude" in AM_CPPFLAGS

2013-06-26 Thread Jean-Sébastien Pédron
Hello, This fixes the build when the build directory is not the source directory. -- Jean-Sébastien Pédron From 15b05331ac969c9f86d8782da07dfd17c0c8a9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:35:01 +0200 Subject: [PATCH 3/9] Use

[Mesa-dev] [PATCH] Use and bswap32(x) on FreeBSD

2013-06-26 Thread Jean-Sébastien Pédron
Hello, This is the equivalent to and bswap_32(x) on Linux. -- Jean-Sébastien Pédron From 48fd41784d4c39059c68ecfc4e01197555ec48dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Fri, 14 Jun 2013 17:39:31 +0200 Subject: [PATCH 9/9] Use and bswap32(x) on

[Mesa-dev] [PATCH] Fix parsing of language code when making options.mo

2013-06-26 Thread Jean-Sébastien Pédron
Hello, The patch uses the $* GNU make variable instead of shell parameter expansion to find the language code. -- Jean-Sébastien Pédron From fed4ca6ef4134dfc34a6e25e5b8de3ef905d2efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:45:29

[Mesa-dev] [PATCH] Fix typo in "ETIMEOUT" (should be "ETIMEDOUT")

2013-06-26 Thread Jean-Sébastien Pédron
Hello, The subject should be explicit :) -- Jean-Sébastien Pédron From 0126159ee03f8c432129c5966cfa41462d5d2fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:44:34 +0200 Subject: [PATCH 5/9] Fix typo in "ETIMEOUT" (should be

[Mesa-dev] [PATCH] Add $(LIBDRM_CFLAGS) in CPPFLAGS where it's missing

2013-06-26 Thread Jean-Sébastien Pédron
Hello, Without this change, the build would pick the system-wide libdrm, not the one given to the configure script (through PKG_CONFIG_PATH for instance). -- Jean-Sébastien Pédron From 08d12cdfd4d653cebaf30cec4a2b1e970ecef0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3

[Mesa-dev] [PATCH] Fix symlinking of libraries in /lib on non-Linux systems

2013-06-26 Thread Jean-Sébastien Pédron
top.org/show_bug.cgi?id=63269 -- Jean-Sébastien Pédron From 72a4a551010634956daf6c9df528b4ec1aa26445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:30:06 +0200 Subject: [PATCH 2/9] Fix symlinking of libraries in /lib on non-Linux sys

[Mesa-dev] [PATCH] configure.ac: On some systems, "x86-64" is called "amd64"

2013-06-26 Thread Jean-Sébastien Pédron
Hello, On FreeBSD, the x86-64 arch is named "amd64". This patch fixes its detection in the configure script. -- Jean-Sébastien Pédron From 6393428a12f454f88157af9810a89161b0606769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Wed, 5 Jun 2013 13:2