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

Combine first-party Rust builds #428

Merged
merged 2 commits into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions macros/cargo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

%__cargo %{_bindir}/cargo
%__cargo_common_opts --offline --locked --verbose
%__cargo_cross_opts %{__cargo_common_opts} --target %{_cross_arch}-unknown-linux-%{_cross_libc}
%__cargo_target %{_cross_arch}-unknown-linux-%{_cross_libc}
%__cargo_cross_opts %{__cargo_common_opts} --target %{__cargo_target}
%__cargo_env CARGO_TARGET_DIR="${HOME}/.cache" SKIP_README="true"
%__cargo_cross_env %{__cargo_env} TARGET_CC="%{_cross_target}-gcc" PKG_CONFIG_PATH="%{_cross_pkgconfigdir}" PKG_CONFIG_ALLOW_CROSS=1

Expand All @@ -25,4 +26,4 @@ ar = "%{_bindir}/%{_cross_target}-gcc-ar"\
EOF\
)

%cargo_build %{__cargo_cross_env} %{__cargo} install %{__cargo_cross_opts} --root .%{?cargo_args}
%cargo_build %{__cargo_cross_env} %{__cargo} build %{__cargo_cross_opts} --release %{?cargo_args}
47 changes: 10 additions & 37 deletions packages/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions packages/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[workspace]
members = [
"api",
"aws-iam-authenticator",
"bash",
"ca-certificates",
Expand All @@ -20,7 +19,6 @@ members = [
"findutils",
"glibc",
"golang",
"growpart",
"grub",
"host-ctr",
"iproute",
Expand Down Expand Up @@ -48,7 +46,6 @@ members = [
"libxcrypt",
"login",
"ncurses",
"preinit",
"procps",
"readline",
"release",
Expand All @@ -59,9 +56,9 @@ members = [
"strace",
"systemd",
"tcpdump",
"updater",
"util-linux",
"wicked",
"workspaces",
]

[profile.dev]
Expand Down
26 changes: 0 additions & 26 deletions packages/growpart/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/growpart/build.rs

This file was deleted.

32 changes: 0 additions & 32 deletions packages/growpart/growpart.spec

This file was deleted.

1 change: 0 additions & 1 deletion packages/growpart/pkg.rs

This file was deleted.

23 changes: 0 additions & 23 deletions packages/preinit/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/preinit/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion packages/preinit/pkg.rs

This file was deleted.

32 changes: 0 additions & 32 deletions packages/preinit/preinit.spec

This file was deleted.

23 changes: 0 additions & 23 deletions packages/updater/Cargo.toml

This file was deleted.

6 changes: 0 additions & 6 deletions packages/updater/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion packages/updater/pkg.rs

This file was deleted.

67 changes: 0 additions & 67 deletions packages/updater/updater.spec

This file was deleted.

9 changes: 7 additions & 2 deletions packages/api/Cargo.toml → packages/workspaces/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[package]
name = "api"
name = "workspaces"
version = "0.1.0"
edition = "2018"
publish = false
build = "build.rs"

[package.metadata.build-package]
source-groups = [ "api" ]
source-groups = [
"api",
"growpart",
"updater",
"webpki-roots-shim",
]

[lib]
path = "pkg.rs"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading