From nobody Mon Feb 21 16:11:25 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B8D8319DAEFB; Mon, 21 Feb 2022 16:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2S3K3bgCz4fC7; Mon, 21 Feb 2022 16:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645459885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PjVJpmQlUECsP/XTe/jVW5m74/97WSaqKzWQvYkXt5k=; b=KzE90RVtbTZMIIqtp8CjIBLlKs66W5AoFVviVLCkccyq7jwBUYiW1NO69aa/dohRcBILXc VDoRNGEm/W9BTI+NY9Jr52hnr7Y4VrWuJcPTL6aXNi9x18xEV4IWAB6ehXQdSFBM0DV0qe VJStsRXZZ+g73GwcAOQeg9l8+6nG92OnDgSItMNMKjPD6NZIBJB19uCeP9wzgrOb/bgDwT 7NIEfD+OfS9Ss2SwQoZF4qcw+SMIxDM+ztyOCpHCC6lrgnvVCKMDCHgWSiosrpzLQkYX4A MQYBZTF1Q4JUhNn92X/y5cSK2fX6pnrAYu7Pl0uIwQeJ0TJWJl7JgmG1YJ7Fmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 582E313553; Mon, 21 Feb 2022 16:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21LGBPT9090260; Mon, 21 Feb 2022 16:11:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21LGBPWC090259; Mon, 21 Feb 2022 16:11:25 GMT (envelope-from git) Date: Mon, 21 Feb 2022 16:11:25 GMT Message-Id: <202202211611.21LGBPWC090259@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: f3d7b45ee594 - main - games/fishfight: regen patch from upstream List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3d7b45ee594f0dc110358249c8a2c10018319c0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645459885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PjVJpmQlUECsP/XTe/jVW5m74/97WSaqKzWQvYkXt5k=; b=CcYGGUl6OyapMBD5RKweggZCAPRul5qbefm88w1TCc6xzFHKUFKiKoTG2dpySp5QSzzdZ8 7W1pJULC0mgMrRklUtKwL7mA0rFE+S9Pnlb+DZNXoXd9CxbWVHONI1M0Wf5KIaBSJTL6tV REVmd1bpPJU62xsLL/BPJizGcn9/aJyyVYof0S3ngWntdzUF7kmVO80M6y6N/ZtI6rtzmb EJEen5PXatbqhZ7sJcgbxTrbIFm+cKAcNexqP2IDAJq+WE0/sgyfMCGWZWJpvQfrY6JluH IuDKwo1leOelOVYbuKAweoRC9YJCDrcbsfHCECrHNHhX6xr+Nbk2n2oG6TA1DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645459885; a=rsa-sha256; cv=none; b=UcoyLxWFA1MkTCDXLsnpLsIriM8+EKKxeES2RsK4AgrUY4jIOOWjHv/alj+s1f8Am56rUo ML2fyiGg/jXdwqEH0hWIgqfVMOGjCAFG7s55Cy2GgC4MNoJj51eQ/pKDzk3v/sYu9Txt1v l5hUX9/uSJ6OkK2BI6cMVFywcsGFunsJJB40J/szwDqURSpWv7pxIV2dJGi7YUkKKbyzC8 ZZwYLKKmcsExDXtlNXH/oZWDs1QPGqn9T84tmAW0wKrP3fPsMP9cH4eaCLdcVnrqFcxrpa U/FvXzXYMhUsbFngtNUoFWnCvBHarIUtZ3w7ZfUtIBFd2AhzIsWVxyjGbSS/aQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3d7b45ee594f0dc110358249c8a2c10018319c0 commit f3d7b45ee594f0dc110358249c8a2c10018319c0 Author: Jan Beich AuthorDate: 2022-02-21 10:41:17 +0000 Commit: Jan Beich CommitDate: 2022-02-21 16:10:14 +0000 games/fishfight: regen patch from upstream --- games/fishfight/files/patch-miniquad | 165 +++++++++++++++++++++-------------- 1 file changed, 99 insertions(+), 66 deletions(-) diff --git a/games/fishfight/files/patch-miniquad b/games/fishfight/files/patch-miniquad index 435804e18990..1e441e6524cc 100644 --- a/games/fishfight/files/patch-miniquad +++ b/games/fishfight/files/patch-miniquad @@ -18,7 +18,7 @@ error[E0428]: the name `GL_TIME_ELAPSED` is defined multiple times kms = ["sapp-kms"] log-impl = [] -[target."cfg(not(any(target_os=\"linux\", target_os=\"macos\", target_os=\"android\", target_os=\"ios\", target_arch=\"wasm32\", windows)))".dependencies.sapp-dummy] -+[target."cfg(not(any(unix, target_arch=\"wasm32\", windows)))".dependencies.sapp-dummy] ++[target."cfg(not(any(target_os=\"linux\", target_os=\"dragonfly\", target_os=\"freebsd\", target_os=\"netbsd\", target_os=\"openbsd\", target_os=\"macos\", target_os=\"android\", target_os=\"ios\", target_arch=\"wasm32\", windows)))".dependencies.sapp-dummy] version = "=0.1.5" [target."cfg(target_arch = \"wasm32\")".dependencies.sapp-wasm] version = "=0.1.26" @@ -27,128 +27,161 @@ error[E0428]: the name `GL_TIME_ELAPSED` is defined multiple times [target."cfg(target_os = \"ios\")".dependencies.sapp-ios] version = "=0.1.2" -[target."cfg(target_os = \"linux\")".dependencies.sapp-kms] -+[target."cfg(all(unix, not(any(target_os = \"macos\", target_os = \"ios\", target_os = \"android\"))))".dependencies.sapp-kms] ++[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\", target_os = \"openbsd\"))".dependencies.sapp-kms] version = "=0.1.1" optional = true -[target."cfg(target_os = \"linux\")".dependencies.sapp-linux] -+[target."cfg(all(unix, not(any(target_os = \"macos\", target_os = \"ios\", target_os = \"android\"))))".dependencies.sapp-linux] ++[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\", target_os = \"openbsd\"))".dependencies.sapp-linux] version = "=0.1.13" optional = true [target."cfg(target_os = \"macos\")".dependencies.sapp-darwin] -diff --git cargo-crates/miniquad-0.3.0-alpha.42/src/clipboard.rs cargo-crates/miniquad-0.3.0-alpha.42/src/clipboard.rs -index 3251b24df2b6..a8561a89aeb9 100644 ---- cargo-crates/miniquad-0.3.0-alpha.42/src/clipboard.rs +--- cargo-crates/miniquad-0.3.0-alpha.42/src/clipboard.rs.orig 1970-01-01 00:00:01 UTC +++ cargo-crates/miniquad-0.3.0-alpha.42/src/clipboard.rs -@@ -2,7 +2,7 @@ +@@ -2,7 +2,13 @@ use crate::Context; -#[cfg(all(target_os = "linux", feature = "sapp-linux"))] -+#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android")), feature = "sapp-linux"))] ++#[cfg(all(feature = "sapp-linux", any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++)))] mod linux_x11 { use crate::Context; -@@ -53,7 +53,7 @@ mod windows { +@@ -53,7 +59,13 @@ mod windows { } #[cfg(not(any( - all(target_os = "linux", feature = "sapp-linux"), -+ all(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")), feature = "sapp-linux"), ++ all(feature = "sapp-linux", any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++ )), target_os = "windows", target_arch = "wasm32" )))] -@@ -68,12 +68,12 @@ mod dummy { +@@ -68,12 +80,24 @@ mod dummy { } #[cfg(not(any( - all(target_os = "linux", feature = "sapp-linux"), -+ all(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")), feature = "sapp-linux"), ++ all(feature = "sapp-linux"), any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd" ++ ), target_os = "windows", target_arch = "wasm32" )))] use dummy as clipboard; -#[cfg(all(target_os = "linux", feature = "sapp-linux"))] -+#[cfg(all(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")), feature = "sapp-linux"))] ++#[cfg(all(feature = "sapp-linux", any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++)))] use linux_x11 as clipboard; #[cfg(target_arch = "wasm32")] use wasm as clipboard; -diff --git cargo-crates/miniquad-0.3.0-alpha.42/src/lib.rs cargo-crates/miniquad-0.3.0-alpha.42/src/lib.rs -index 4718901dd2d8..f69cb15e13c1 100644 ---- cargo-crates/miniquad-0.3.0-alpha.42/src/lib.rs +--- cargo-crates/miniquad-0.3.0-alpha.42/src/lib.rs.orig 1970-01-01 00:00:01 UTC +++ cargo-crates/miniquad-0.3.0-alpha.42/src/lib.rs -@@ -7,19 +7,16 @@ pub use sapp_android; - #[cfg(target_os = "macos")] +@@ -8,6 +8,10 @@ pub use sapp_android; extern crate sapp_darwin as sapp; #[cfg(not(any( -- target_os = "linux", -- target_os = "macos", -- target_os = "ios", -- target_os = "android", -+ unix, - target_arch = "wasm32", - windows - )))] + target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", + target_os = "macos", + target_os = "ios", + target_os = "android", +@@ -17,9 +21,21 @@ extern crate sapp_darwin as sapp; extern crate sapp_dummy as sapp; #[cfg(target_os = "ios")] extern crate sapp_ios as sapp; -#[cfg(all(target_os = "linux", feature = "kms"))] -+#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android")), feature = "kms"))] ++#[cfg(all(feature = "kms", any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++)))] extern crate sapp_kms as sapp; -#[cfg(all(target_os = "linux", not(feature = "kms")))] -+#[cfg(all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android")), not(feature = "kms")))] ++#[cfg(all(not(feature = "kms"), any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++)))] extern crate sapp_linux as sapp; #[cfg(target_arch = "wasm32")] -@@ -140,7 +137,7 @@ impl Context { +@@ -139,7 +155,13 @@ impl Context { pub fn set_mouse_cursor(&self, _cursor_icon: CursorIcon) { #[cfg(any( target_arch = "wasm32", - all(target_os = "linux", not(feature = "kms")), -+ all(unix, not(any(target_os = "macos", target_os = "ios", target_os = "android")), not(feature = "kms")), ++ all(not(feature = "kms"), any( ++ target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", ++ )), windows, ))] unsafe { -@@ -164,12 +161,9 @@ impl Context { - /// Set the application's window size. - #[allow(unused_variables)] +@@ -165,6 +187,10 @@ impl Context { pub fn set_window_size(&self, new_width: u32, new_height: u32) { -- #[cfg(not(any( -- target_os = "linux", -- target_os = "macos", -- target_os = "ios", -- target_os = "android", -- )))] -+ #[cfg(not( -+ unix, -+ ))] - unsafe { - if sapp::sapp_is_fullscreen() { - #[cfg(feature = "log-impl")] -@@ -183,10 +177,7 @@ impl Context { - #[allow(unused_variables)] + #[cfg(not(any( + target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", + target_os = "macos", + target_os = "ios", + target_os = "android", +@@ -184,6 +210,10 @@ impl Context { pub fn set_fullscreen(&self, fullscreen: bool) { #[cfg(not(any( -- target_os = "linux", -- target_os = "macos", -- target_os = "ios", -- target_os = "android", -+ unix, - )))] - unsafe { - sapp::sapp_set_fullscreen(fullscreen); + target_os = "linux", ++ target_os = "dragonfly", ++ target_os = "freebsd", ++ target_os = "netbsd", ++ target_os = "openbsd", + target_os = "macos", + target_os = "ios", + target_os = "android", --- cargo-crates/sapp-linux-0.1.13/build.rs.orig 1970-01-01 00:00:00 UTC +++ cargo-crates/sapp-linux-0.1.13/build.rs -@@ -1,12 +1,6 @@ - use std::env; - +@@ -3,7 +3,12 @@ use std::env; fn main() { -- let target = env::var("TARGET").unwrap_or_else(|e| panic!("{}", e)); -- + let target = env::var("TARGET").unwrap_or_else(|e| panic!("{}", e)); + - if target.contains("linux") == false { -- panic!("sapp_linux support only linux target"); -- } -- - println!("cargo:rustc-link-lib=dylib=GL"); - println!("cargo:rustc-link-lib=dylib=X11"); - println!("cargo:rustc-link-lib=dylib=Xi"); ++ if target.contains("linux") == false ++ && target.contains("dragonfly") == false ++ && target.contains("freebsd") == false ++ && target.contains("netbsd") == false ++ && target.contains("openbsd") == false ++ { + panic!("sapp_linux support only linux target"); + } +