Your message dated Thu, 28 Jul 2016 05:50:13 +0000
with message-id <[email protected]>
and subject line Bug#830974: fixed in mame 0.176-1
has caused the Debian Bug report #830974,
regarding mame: FTBFS[kfreebsd-*]: multiple issues
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
830974: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830974
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mame
Version: 0.175-1
Tags: patch
User: [email protected]
Usertags: kfreebsd
Forwarded: https://github.com/mamedev/mame/pull/1093
Hi,
mame currently FTBFS on kfreebsd-* with:
| ../../../../../3rdparty/bgfx/3rdparty/ocornut-imgui/imgui_draw.cpp:439:100:
error: 'alloca' was not declared in this scope
https://buildd.debian.org/status/fetch.php?pkg=mame&arch=kfreebsd-amd64&ver=0.175-1&stamp=1468325637
There are many other small issues later in the build.
Please find patches in the attached kfreebsd.patch or upstream pull
request at
Please avoid building a bundled libuv if possible, as it has portability
bugs that are fixed in the Debian-packaged libuv. (see attached
use_system_lib_uv.patch)
And please consider showing the compile and link command lines in the
build output. debian/rules does already set VERBOSE=1, but it seems that
should rather be verbose=1 (attached verbose_build_log.patch)
Thanks!
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
diff --git a/3rdparty/bx/include/bx/thread.h b/3rdparty/bx/include/bx/thread.h
index add66ab..9e105db 100644
--- a/3rdparty/bx/include/bx/thread.h
+++ b/3rdparty/bx/include/bx/thread.h
@@ -8,7 +8,7 @@
#if BX_PLATFORM_POSIX
# include <pthread.h>
-# if BX_PLATFORM_BSD
+# if defined(BX_PLATFORM_BSD) && !defined(__GLIBC__)
# include <pthread_np.h>
# endif
# if defined(__GLIBC__) && !( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) ) )
@@ -157,12 +157,10 @@ namespace bx
{
#if BX_PLATFORM_OSX || BX_PLATFORM_IOS
pthread_setname_np(_name);
-#elif BX_PLATFORM_LINUX
-# if defined(__GLIBC__) && (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) )
+#elif defined(__GLIBC__) && (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) )
pthread_setname_np(m_handle, _name);
-# else
+#elif BX_PLATFORM_LINUX
prctl(PR_SET_NAME,_name, 0, 0, 0);
-# endif // defined(__GLIBC__) ...
#elif BX_PLATFORM_BSD
#ifdef __NetBSD__
pthread_setname_np(m_handle, "%s", (void *)_name);
diff --git a/3rdparty/bx/include/compat/freebsd/alloca.h b/3rdparty/bx/include/compat/freebsd/alloca.h
index c8b49f2..12a69ea 100644
--- a/3rdparty/bx/include/compat/freebsd/alloca.h
+++ b/3rdparty/bx/include/compat/freebsd/alloca.h
@@ -1 +1,5 @@
+#ifdef __GLIBC__
+#include_next <alloca.h>
+#else
#include <stdlib.h>
+#endif
diff --git a/3rdparty/bx/include/compat/freebsd/signal.h b/3rdparty/bx/include/compat/freebsd/signal.h
index fd7d90f..3040b56 100644
--- a/3rdparty/bx/include/compat/freebsd/signal.h
+++ b/3rdparty/bx/include/compat/freebsd/signal.h
@@ -1 +1,5 @@
+#ifdef __GLIBC__
+#include_next <signal.h>
+#else
#include <sys/signal.h>
+#endif
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua
index 4094e48..ce45034 100644
--- a/scripts/src/osd/sdl.lua
+++ b/scripts/src/osd/sdl.lua
@@ -340,7 +340,7 @@ project ("qtdbg_" .. _OPTIONS["osd"])
MAME_DIR .. "src/osd/modules/render",
MAME_DIR .. "3rdparty",
}
- configuration { "linux-*" }
+ configuration { "linux-* or freebsd" }
buildoptions {
"-fPIC",
}
diff --git a/src/osd/modules/file/posixptty.cpp b/src/osd/modules/file/posixptty.cpp
index 164c2fc..3eab9e4 100644
--- a/src/osd/modules/file/posixptty.cpp
+++ b/src/osd/modules/file/posixptty.cpp
@@ -19,7 +19,7 @@
#include <unistd.h>
#include <stdlib.h>
-#if defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__FreeBSD_kernel__) || defined(__DragonFly__)
#include <termios.h>
#include <libutil.h>
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__ANDROID__)
diff -Nru a/mame-0.175/debian/control b/mame-0.175/debian/control
--- a/mame-0.175/debian/control 2016-07-05 10:07:37.000000000 +0100
+++ b/mame-0.175/debian/control 2016-07-13 13:23:26.128012799 +0100
@@ -15,6 +15,7 @@
libsdl2-ttf-dev,
libsdl2-dev,
libsqlite3-dev,
+ libuv1-dev,
libxinerama-dev,
portaudio19-dev,
python-dev,
diff -Nru a/mame-0.175/debian/rules b/mame-0.175/debian/rules
--- a/mame-0.175/debian/rules 2016-07-05 17:12:42.000000000 +0100
+++ b/mame-0.175/debian/rules 2016-07-13 13:11:55.683060773 +0100
@@ -45,7 +45,8 @@
USE_SYSTEM_LIB_LUA=lua5.3:/usr/include/lua5.3 \
USE_SYSTEM_LIB_SQLITE3=1 \
USE_SYSTEM_LIB_PORTMIDI=1 \
- USE_SYSTEM_LIB_PORTAUDIO=1
+ USE_SYSTEM_LIB_PORTAUDIO=1 \
+ USE_SYSTEM_LIB_UV=1
# Override make variables for specific archs
# Linux architectures
diff -Nru a/mame-0.175/debian/rules b/mame-0.175/debian/rules
--- a/mame-0.175/debian/rules 2016-07-05 17:12:42.000000000 +0100
+++ b/mame-0.175/debian/rules 2016-07-13 13:11:55.683060773 +0100
@@ -153,7 +154,7 @@
# Enable full building log when verbose output required
ifdef DH_VERBOSE
-DEB_OPTS += VERBOSE=1
+DEB_OPTS += verbose=1
endif
DEB_MAME_OPTS = \
--- End Message ---
--- Begin Message ---
Source: mame
Source-Version: 0.176-1
We believe that the bug you reported is fixed in the latest version of
mame, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jordi Mallach <[email protected]> (supplier of updated mame package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 28 Jul 2016 07:28:07 +0200
Source: mame
Binary: mame mame-data mame-tools mess mess-data
Architecture: source
Version: 0.176-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <[email protected]>
Changed-By: Jordi Mallach <[email protected]>
Description:
mame - Multiple Arcade Machine Emulator (MAME)
mame-data - Multiple Arcade Machine Emulator (MAME) -- data files
mame-tools - Tools for MAME and MESS
mess - Transitional dummy package
mess-data - Transitional dummy package
Closes: 825483 830974
Changes:
mame (0.176-1) unstable; urgency=medium
.
[ Jordi Mallach ]
* New upstream release.
- Includes Steven Chamberlain's kfreebsd fixes for several build errors
on kfreebsd-*. Many thanks! (closes: #830974)
- Includes fixes for ppc64el builds (closes: #825483).
* Install bgfx, language, plugins and uismall.bdf files in mame-data.
Thanks to Vas Crabb for pointing this out.
* Add a override_dh_auto_test that just runs "mame -valid" after the build.
For now, make it non-fatal.
* Add some additional docs to the mame binary.
* Use system libuv.
* Install default plugin.ini and ui.ini files as examples.
* Add an empty override_dh_auto_build-indep rule, so arch-independent
don't actually build the whole thing. Also rename dh_auto_test to
their -arch variants.
* Add libutil-freebsd-dev to Build-Depends for kfreebsd-any.
* Add hurd.patch with some fixes to the build on hurd-i386 systems.
* Add a makefile hack to allow building on a "gnu" platform with genie.
* Drop remove-m64_flag_for_mips64el_alpha.patch, merged upstream.
* Make mame build verbosely by default, without entangling it to DH_VERBOSE.
* Remove generated doxygen docs for a 3rdparty module from source (lintian).
* Prune more generated binaries from the source tarball (lintian).
* Remove unused lintian overrides.
.
[ Cesare Falco ]
* Improved get-orig-source target
* Updated mame.ini files to most recent *path entries
* Install samples and additional .ini files as well
Checksums-Sha1:
162382860ec202a9036711b6602b7070f718c2fa 2428 mame_0.176-1.dsc
fa50b1abc1d97c89d79282902bfe52aa6d9b4d77 68089564 mame_0.176.orig.tar.xz
8da8a71f6b973495a29d2d8fdc8093e9e86f826d 50972 mame_0.176-1.debian.tar.xz
Checksums-Sha256:
e5bede742536cdb598ac259d9e16811b5d12494c850ed152732b01409df28124 2428
mame_0.176-1.dsc
edc53821c8120086c94b1a479c8600eda379d5c5628e7a495e95cdf3c17da22f 68089564
mame_0.176.orig.tar.xz
43fd36326cff0af52eafe08adfbd8b9878a67a8cef37030023eb13d79dea2e52 50972
mame_0.176-1.debian.tar.xz
Files:
c00659563503742cb91f92ecb2400f64 2428 games optional mame_0.176-1.dsc
134a9892285db628a0b6cd313eee4af4 68089564 games optional mame_0.176.orig.tar.xz
75ee4499cb3777fc737f0781781288ae 50972 games optional
mame_0.176-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJXmZnIAAoJECVQL2/L48sERiUP/ipdIOZlWzSoj3s7Uq9T+rUN
tcfC8HWTV6CyH+yXybf8x9ydeCWDkD2ISEbpzfQ8xtqloltmPxIsrdsdqulZOUDz
rDJJD1D8mXWW3u6Um/6wSjBcMw/vM4Txiq91XMTbsorVLEAmNnLlhxj9K+McImVq
gTu4Ja6b+zSxDkn7h27Q+LDWu7q77hDkaj5Mhf6gtd6b6zmgwf588JzFSHt8p09a
rl2l0YWXvx7jOLGhGWXIiwbUkPbqd5h+VApIYQxeIeYLeMX7wEyy5WgjWcfrFIkp
tnTXCteN6ygwcrJu7QS6w3VNlJcM3a8ATsfqi37/NaUzh3lxTzXo1FuqYAIxa2nY
unPSwiueXypnge9FCY6/wxnr51XVV11mcGzy5ePKiWa2nht3mRdu1jPG09iPo8nb
P3uEDEKT7bIltSxZq3sAWpXXz4t3Y5NUtHkQ5zzfe9a8EAxSHKnYtOSWxfN0XSd2
kDf6ZAWJUsO153VIkH9Olbwylzk1emaj/bPk8ZnGWjdOW5qGv0ujdB1pBR8rw5d9
P2ERiheRXr/BruD2KItBqGRid71Tsxncb2fQLn7jjWW9VM0q/Sf0qt4UVBWstfzz
PO4ltUZzHTAZ78pg9i2/wmXDkJunxfHRaKjIrBS5RzbjKTBStv1aKnT9PFRiNNoj
mQaks1e1GteTRnDI+W4o
=dNg8
-----END PGP SIGNATURE-----
--- End Message ---