Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2021 12:11:21 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2573e8eea990 - main - devel/stylua: fix build on powerpc
Message-ID:  <202111161211.1AGCBL9r078929@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2573e8eea99029a13a9516d339e8e6ff24424f6d

commit 2573e8eea99029a13a9516d339e8e6ff24424f6d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-16 12:04:12 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-16 12:04:12 +0000

    devel/stylua: fix build on powerpc
    
    error[E0432]: unresolved imports `core::sync::atomic::AtomicI64`, `core::sync::atomic::AtomicU64`
      --> /wrkdirs/usr/ports/devel/stylua/work/StyLua-0.11.0/cargo-crates/crossbeam-utils-0.8.5/src/lib.rs:79:49
       |
    79 |             pub(crate) use core::sync::atomic::{AtomicI64, AtomicU64};
       |                                                 ^^^^^^^^^  ^^^^^^^^^ no `AtomicU64` in `sync::atomic`
       |                                                 |
       |                                                 no `AtomicI64` in `sync::atomic`
       |
    help: a similar name exists in the module
       |
    79 |             pub(crate) use core::sync::atomic::{AtomicI8, AtomicU64};
       |                                                 ~~~~~~~~
    help: a similar name exists in the module
       |
    79 |             pub(crate) use core::sync::atomic::{AtomicI64, AtomicU8};
       |                                                            ~~~~~~~~
    
    error[E0412]: cannot find type `AtomicU64` in module `core::sync::atomic`
        --> /wrkdirs/usr/ports/devel/stylua/work/StyLua-0.11.0/cargo-crates/crossbeam-utils-0.8.5/src/atomic/consume.rs:78:14
         |
    78   |   impl_atomic!(AtomicU64, u64);
         |                ^^^^^^^^^ help: a struct with a similar name exists: `AtomicU16`
    
    error[E0412]: cannot find type `AtomicI64` in module `core::sync::atomic`
        --> /wrkdirs/usr/ports/devel/stylua/work/StyLua-0.11.0/cargo-crates/crossbeam-utils-0.8.5/src/atomic/consume.rs:80:14
         |
    80   |   impl_atomic!(AtomicI64, i64);
         |                ^^^^^^^^^ help: a struct with a similar name exists: `AtomicI16`
    
    Some errors have detailed explanations: E0412, E0432.
    For more information about an error, try `rustc --explain E0412`.
    error: could not compile `crossbeam-utils` due to 3 previous errors
---
 devel/stylua/files/patch-powerpc | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/devel/stylua/files/patch-powerpc b/devel/stylua/files/patch-powerpc
new file mode 100644
index 000000000000..0f536b57abf4
--- /dev/null
+++ b/devel/stylua/files/patch-powerpc
@@ -0,0 +1,20 @@
+--- cargo-crates/crossbeam-epoch-0.9.5/no_atomic.rs.orig	2021-07-12 16:01:21.814570000 +0200
++++ cargo-crates/crossbeam-epoch-0.9.5/no_atomic.rs	2021-07-12 16:01:34.083879000 +0200
+@@ -30,6 +30,7 @@
+     "mipsel-unknown-none",
+     "mipsisa32r6-unknown-linux-gnu",
+     "mipsisa32r6el-unknown-linux-gnu",
++    "powerpc-unknown-freebsd",
+     "powerpc-unknown-linux-gnu",
+     "powerpc-unknown-linux-gnuspe",
+     "powerpc-unknown-linux-musl",
+--- cargo-crates/crossbeam-utils-0.8.5/no_atomic.rs.orig	2021-07-12 16:01:05.023177000 +0200
++++ cargo-crates/crossbeam-utils-0.8.5/no_atomic.rs	2021-07-12 16:01:16.538869000 +0200
+@@ -30,6 +30,7 @@
+     "mipsel-unknown-none",
+     "mipsisa32r6-unknown-linux-gnu",
+     "mipsisa32r6el-unknown-linux-gnu",
++    "powerpc-unknown-freebsd",
+     "powerpc-unknown-linux-gnu",
+     "powerpc-unknown-linux-gnuspe",
+     "powerpc-unknown-linux-musl",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111161211.1AGCBL9r078929>