0ad/avoid_duplicate_global_symbol_from_asm.patch
Matthias Mailänder 2abad13022 Accepting request 824972 from home:StefanBruens:branches:games
- Fix build on ix86 in combination with LTO, the bundled mbedtls
  from premake5 creates duplicate symbols from inline asm.
  Add avoid_duplicate_global_symbol_from_asm.patch
- Add 0001-Fix-ODR-violation-for-ShaderModelRendererInternals.patch
- Clean up dozens of unnecessary build dependencies.
- Disable --with-system-mozjs38 option on systems which lack the mozjs38 package
- Include the libmozjs38-ps-release.so binary on systems which lack the mozjs38 package
- Require more build dependencies on systems which lack the mozjs38 package
- Add 0001-fix-fcollada-error.patch to fix a build failure with gcc10
- Disable LTO on i586.
- Add _constraints to avoid build failures due to OOM
- Spec file cleanup:
  * Use https for Url and Source tags
  * Remove defattr
  * Remove __DATE__ mangling, handled by GCC + SOURCE_DATE_EPOCH
  * Remove support for Leap 42.x, unresolvable anyway
- Update to 0.0.23b:
  See https://play0ad.com/re-release-of-0-a-d-alpha-23-ken-wood/
- Update to 0.0.23:
  See https://play0ad.com/new-release-0-a-d-alpha-23-ken-wood/
- Remove fix_abs_of_unsigned_char_on_arm.patch: upstreamed
- Remove system-tinygettext.patch:
  Upstream thinks this might lead to problems
  See https://trac.wildfiregames.com/ticket/4192
- Add BuildReq libsodium and remove tinygettext to use shipped one
- Keep fix_abs_of_unsigned_char_on_arm.patch intact and disable
  the conflicting/irrelevant hunk in the spec file
- Revert the changes to use bundled mozjs38 on Leap 42.3 again
  (no changelog entry), it does not build on 42.3. Use fixed
  mozjs38 from distribution instead.
- Add fix_abs_of_unsigned_char_on_arm.patch, fixes build on 32/64
  bit ARM (and probably PPC)
- Enable nvidia-texture-tools only on supported archs
- Use system mozjs38, bundled one fails to build on TW
- Remove special handling for Leap 42.1
- Pass compiler flags to bundled Collada
- Stop depending on boost-devel (boo#1062766)
- Build with system nvidia-texture-tools (boo#1053393)
- Update to version 0.0.22:
  + Remake of many models, animations and textures, two new music
    tracks.
  + Configuration-free Multiplayer Hosting.
  + Capture the Relic Gamemode.
  + Aura and Heal Range Visualization.
  + Twelve new maps, including scripted enemies, rising water and a
    tutorial.
  + Espionage Technology, Team Bonuses and Hero Auras.
  + Petra AI Diplomacy and Attack Strategies.
  + Summary Screen Graphs.
  + Cinema Path Editing.
  + Buddy System.
- Drop 0ad-desktop.patch: fixed upstream.
- Install the upstream provided appdata.xml file.
- Update to version 0.0.21
  See: https://play0ad.com/new-release-0-a-d-alpha-21-ulysses/
- Add patch 0ad-desktop.patch because of rpmlint-error invalid-
  desktopfile invalid key URL
- Drop patch fix-c++14-compat.patch because now in upstream
- Rebase patch system-tinygettext.patch
- Added system-tinygettext.patch
- Removed code for other distributions from spec file, sine we just
  build for openSUSE.
- Update License field and trim filler words from description.
- Fixed build with gcc6 (Tumbleweed), added fix-c++14-compat.patch
- Build with wxWidgets 3 and reenable dependency generation
- Update to version 0.0.20
  * New maps
  * Better graphics and Camera
  See https://play0ad.com/new-release-0-a-d-alpha-20-timosthenes/
- use changelog time instead of build time to fix build-compare
- Update to version 0.0.19
- Use xz archive instead of gz
- update to version 0.0.18
- use libminiupnpc-devel instead of builtin libminiupnpc
- update to version 0.0.17
- use builtin libminiupnpc to work inspite of incompatible OS version
- require same versioned data package
- build using external libicu
- Update to version 0.0.16.
- Update to version 0.0.15.
- Update to version 0.0.14.
- Adhere to https://en.opensuse.org/SourceUrls
- Update to version 0.0.13.
- Added BuildRequires libXcursor-devel as they are not
  automatically installed for openSUSE > 12.2
- Update to 0.0.12
- Remove obsolete unused Debian build scripts
- Update to 0.0.11
- New version number scheme
- Remove fam/gamin dependency
- Update to r11863
- Update to r11339
- Update to r10803
- Update to r10288
- Update to r9786
- libenet0-devel -> libenet-devel
- Update to r9530
- libenet-devel -> libenet0-devel
- Update to r9049
- wxGTK -> wxWidgets migration
- Update to r8832
- Update to r8413
- Update to r7970
- Compile in Release mode
- Initial package

OBS-URL: https://build.opensuse.org/request/show/824972
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=103
2020-08-08 09:43:19 +00:00

32 lines
1.5 KiB
Diff

From 6872cc5f672da6fce5facebf697415208fe34b12 Mon Sep 17 00:00:00 2001
From: StefanBruens <stefan.bruens@rwth-aachen.de>
Date: Fri, 1 Nov 2019 21:07:33 +0100
Subject: [PATCH] Use local label in inline asm, avoid symbol duplication
The global label "unsupported" may lead to duplicated symbols
when the function is inlined in multiple places. This may happen
in any case, but using LTO exposes this problem reliably.
See https://github.com/ARMmbed/mbed-crypto/issues/312
---
build/premake/premake5/contrib/mbedtls/library/padlock.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/premake/premake5/contrib/mbedtls/library/padlock.c b/build/premake/premake5/contrib/mbedtls/library/padlock.c
index b85ff9cd2c..bb0a1ef419 100644
--- a/build/premake/premake5/contrib/mbedtls/library/padlock.c
+++ b/build/premake/premake5/contrib/mbedtls/library/padlock.c
@@ -58,10 +58,10 @@ int mbedtls_padlock_has_support( int feature )
"cpuid \n\t"
"cmpl $0xC0000001, %%eax \n\t"
"movl $0, %%edx \n\t"
- "jb unsupported \n\t"
+ "jb 1f \n\t"
"movl $0xC0000001, %%eax \n\t"
"cpuid \n\t"
- "unsupported: \n\t"
+ "1: \n\t"
"movl %%edx, %1 \n\t"
"movl %2, %%ebx \n\t"
: "=m" (ebx), "=m" (edx)