games/quake3 didn't manage to build on 11.0-CURRENT (clang version 3.4 (tags/RELEASE_34/final 197956) 20140216) because: cc: error: unknown argument: '-falign-loops=2' cc: error: unknown argument: '-falign-jumps=2' The patch fixes that. Fix: 1) apply patch 2) $ cd games/quake3 3) $ make 4) woo! Patch attached with submission follows: How-To-Repeat: 1) $ cd games/quake3 2) $ make 3) exit 1 :(
A commit references this bug: Author: marino Date: Sun Jul 13 07:46:32 UTC 2014 New revision: 361658 URL: http://svnweb.freebsd.org/changeset/ports/361658 Log: games/quake3: Fix build on FreeBSD 11 While here, removed redundant <pre>,<post> and revbump just in case the these flag changes cause executable to change for F10-. PR: 188095 Submitted by: maintainer (Linas Valiukas) Changes: head/games/quake3/Makefile head/games/quake3/files/patch-code-unix-Makefile
John, I think you corrupted the patch by adding your additional changes: <pre> <...> ===> Patching for quake3-1.32c_3 ===> Converting DOS text files to UNIX text files ===> Applying FreeBSD patches for quake3-1.32c_3 patch: **** malformed patch at line 118: @@ -235,25 +231,33 @@ => Patch patch-code-unix-Makefile failed to apply cleanly. => Patch(es) patch-code-Construct patch-code-botlib-linux-i386.mak patch-code-bspc-Makefile patch-code-bspc-linux-i386.mak patch-code-cgame-cg_weapons.c patch-code-client-cl_ui.c patch-code-game-q_shared.c patch-code-game-q_shared.h patch-code-q3_ui-ui_playermodel.c patch-code-q3_ui-ui_players.c patch-code-q3_ui-ui_saveconfig.c patch-code-qcommon-common.c patch-code-qcommon-files.c patch-code-qcommon-vm.c patch-code-qcommon-vm_x86.c patch-code-renderer-tr_bsp.c patch-code-renderer-tr_shader.c patch-code-server-sv_client.c patch-code-ui-ui_main.c patch-code-ui-ui_players.c applied cleanly. *** [do-patch] Error code 1 </pre>
I don't think so. It's never correct to have <option> followed by <pre>. If the patch is malformed, it's for another reason, makefile inclusions aren't going to affect the patch target. I'd suspect DOS endings (either patch has DOS endings and shouldn't or target file has DOS endings and needs unix2dos applied). I say this only from the error message, I didn' t look at it.
A commit references this bug: Author: marino Date: Sat Jul 19 15:25:43 UTC 2014 New revision: 362264 URL: http://svnweb.freebsd.org/changeset/ports/362264 Log: games/quake3: Fix corrupted patch The svn diff utility didn't apply the patch correctly -- 2 lines ended up as one. Fix to resolve malformed patch error. Follows: PR: 188095 Changes: head/games/quake3/files/patch-code-unix-Makefile
Thank you, much appreciated!