Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

en_US.tar.gz #3

Closed
okaerin opened this issue Feb 17, 2025 · 4 comments
Closed

en_US.tar.gz #3

okaerin opened this issue Feb 17, 2025 · 4 comments

Comments

@okaerin
Copy link

okaerin commented Feb 17, 2025

I would like to build this repo but I do not know where to get the en_US.tar.gz file.

@cpg314
Copy link
Owner

cpg314 commented Feb 17, 2025

Hi @okaerin , cargo make create-archive should create it:
https://github.com/cpg314/ltapiserv-rs/blob/main/Makefile.toml#L10
It should be automatically called with cargo make build (https://github.com/cpg314/ltapiserv-rs/tree/main?tab=readme-ov-file#compile-from-source)

@okaerin
Copy link
Author

okaerin commented Feb 17, 2025

I see that now. Unfortunately my build is still stuck. Am I missing any prerequisites?:

[cargo-make] INFO - Execute Command: "cargo" "about" "generate" "about.hbs" "-o" "target-cross/x86_64-unknown-linux-gnu/release/licenses.html"
2025-02-17 11:49:15.471907 +00:00:00 [WARN] crate 'ltapiserv-rs 0.2.3' doesn't have a license field
2025-02-17 11:49:16.744303 +00:00:00 [WARN] crate 'ring 0.17.8' doesn't have a license field
error: failed to satisfy license requirements
    ┌─ ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.17.8/Cargo.toml:171:47
    │
171 │ license = "(ISC) AND (MIT) AND (OpenSSL) AND (OpenSSL-standalone) AND (SSLeay-standalone)"
    │                                               ------------------       -----------------

2025-02-17 11:49:21.375406 +00:00:00 [ERROR] encountered 1 errors resolving licenses, unable to generate output
[cargo-make] VERBOSE - Output: Ok(
    Output {
        status: ExitStatus(
            unix_wait_status(
                256,
            ),
        ),
        stdout: "",
        stderr: "",
    },
)
Error while executing command, exit code: 1

@cpg314
Copy link
Owner

cpg314 commented Feb 17, 2025

Right, it looks like it is pulling a newer version of the ring crate that makes cargo about unhappy about licenses.
The following patch solves it for me:

diff --git a/about.toml b/about.toml
index c0662c4..d33d9cb 100644
--- a/about.toml
+++ b/about.toml
@@ -7,7 +7,9 @@ accepted = [
     "BSD-3-Clause",
     "Unicode-DFS-2016",
     "ISC",
-    "OpenSSL"
+    "OpenSSL",
+    "OpenSSL-standalone",
+    "SSLeay-standalone"
 ]
 no-clearly-defined = true
 [ltapiserv-rs]

Alternatively, you can

$ cargo make create-archive
$ cargo build -r

and it will skip this step.

@okaerin
Copy link
Author

okaerin commented Feb 17, 2025

Your workaround worked with:

$ cargo make create-archive
$ cargo build -r

@okaerin okaerin closed this as completed Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants