D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch Installing /home/pterjan/rpmbuild/SRPMS/rust-protobuf-codegen-pure-2.28.0-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VAxDND Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.S4YyL5 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + rm -rf protobuf-codegen-pure-2.28.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/protobuf-codegen-pure-2.28.0.crate + STATUS=0 + '[' 0 -ne 0 ']' + cd protobuf-codegen-pure-2.28.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/protobuf-codegen-pure-fix-metadata.diff + set -euo pipefail + /usr/bin/mkdir -p target/rpm + /usr/bin/ln -s rpm target/release + /usr/bin/rm -rf .cargo/ + /usr/bin/mkdir -p .cargo + cat + cat + /usr/bin/rm -f Cargo.lock + /usr/bin/rm -f Cargo.toml.orig + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.t092Lh + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + cd protobuf-codegen-pure-2.28.0 + /usr/bin/cargo2rpm --path Cargo.toml buildrequires --with-check + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9PPDDo + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-codegen-pure-2.28.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo build -j16 -Z avoid-dev-deps --profile rpm warning: no edition set: defaulting to the 2015 edition while the latest is 2024 Compiling protobuf v2.28.0 Running `/usr/bin/rustc --crate-name build_script_build --edition=2018 /usr/share/cargo/registry/protobuf-2.28.0/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bytes", "serde", "serde_derive", "with-bytes", "with-serde"))' -C metadata=dcf70d5ff41d1b0b -C extra-filename=-df3bf352d85c4f17 --out-dir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/build/protobuf-df3bf352d85c4f17 -L dependency=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Running `/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/build/protobuf-df3bf352d85c4f17/build-script-build` Running `/usr/bin/rustc --crate-name protobuf --edition=2018 /usr/share/cargo/registry/protobuf-2.28.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bytes", "serde", "serde_derive", "with-bytes", "with-serde"))' -C metadata=6f7fcbdd103800b2 -C extra-filename=-4338cc603dee88ff --out-dir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Compiling protobuf-codegen v2.28.0 Running `/usr/bin/rustc --crate-name protobuf_codegen --edition=2015 /usr/share/cargo/registry/protobuf-codegen-2.28.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=8eadfe12c3da2bd3 -C extra-filename=-4210c54d122a93c5 --out-dir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps --extern protobuf=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/libprotobuf-4338cc603dee88ff.rmeta --cap-lints allow -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` Compiling protobuf-codegen-pure v2.28.0 (/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0) Running `/usr/bin/rustc --crate-name protobuf_codegen_pure --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=57398d10ebe1c8ba -C extra-filename=-e478fd372bf0d8eb --out-dir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps --extern protobuf=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/libprotobuf-4338cc603dee88ff.rmeta --extern protobuf_codegen=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/libprotobuf_codegen-4210c54d122a93c5.rmeta -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: unexpected `cfg` condition value: `nightly` --> src/linked_hash_map.rs:38:17 | 38 | #![cfg_attr(all(feature = "nightly", test), feature(test))] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `nightly` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:39:13 | 39 | #![cfg_attr(feature = "clippy", feature(plugin))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:40:13 | 40 | #![cfg_attr(feature = "clippy", plugin(clippy))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:41:13 | 41 | #![cfg_attr(feature = "clippy", deny(clippy))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `nightly` --> src/linked_hash_map.rs:1471:11 | 1471 | #[cfg(all(feature = "nightly", test))] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `nightly` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unused import: `parser::ParserError` --> src/model.rs:8:9 | 8 | pub use parser::ParserError; | ^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: field `0` is never read --> src/lib.rs:178:29 | 178 | ParserErrorWithLocation(parser::ParserErrorWithLocation), | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `CodegenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 178 - ParserErrorWithLocation(parser::ParserErrorWithLocation), 178 + ParserErrorWithLocation(()), | warning: field `0` is never read --> src/lib.rs:179:18 | 179 | ConvertError(convert::ConvertError), | ------------ ^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `CodegenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 179 - ConvertError(convert::ConvertError), 179 + ConvertError(()), | warning: field `0` is never read --> src/convert.rs:19:23 | 19 | UnsupportedOption(String), | ----------------- ^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 19 - UnsupportedOption(String), 19 + UnsupportedOption(()), | warning: field `0` is never read --> src/convert.rs:20:23 | 20 | ExtensionNotFound(String), | ----------------- ^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 20 - ExtensionNotFound(String), 20 + ExtensionNotFound(()), | warning: fields `0` and `1` are never read --> src/convert.rs:21:24 | 21 | WrongExtensionType(String, &'static str), | ------------------ ^^^^^^ ^^^^^^^^^^^^ | | | fields in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 21 - WrongExtensionType(String, &'static str), 21 + WrongExtensionType((), ()), | warning: fields `0` and `1` are never read --> src/convert.rs:22:30 | 22 | UnsupportedExtensionType(String, String), | ------------------------ ^^^^^^ ^^^^^^ | | | fields in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 22 - UnsupportedExtensionType(String, String), 22 + UnsupportedExtensionType((), ()), | warning: field `0` is never read --> src/convert.rs:23:23 | 23 | StrLitDecodeError(StrLitDecodeError), | ----------------- ^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 23 - StrLitDecodeError(StrLitDecodeError), 23 + StrLitDecodeError(()), | warning: fields `reserved_nums` and `reserved_names` are never read --> src/model.rs:174:9 | 166 | pub struct Message { | ------- fields in this struct ... 174 | pub reserved_nums: Vec, | ^^^^^^^^^^^^^ 175 | /// Message reserved names 176 | pub reserved_names: Vec, | ^^^^^^^^^^^^^^ | = note: `Message` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis warning: field `0` is never read --> src/parser.rs:44:16 | 44 | ExpectChar(char), | ---------- ^^^^ | | | field in this variant | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 44 - ExpectChar(char), 44 + ExpectChar(()), | warning: field `0` is never read --> src/parser.rs:57:23 | 57 | StrLitDecodeError(StrLitDecodeError), | ----------------- ^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 57 - StrLitDecodeError(StrLitDecodeError), 57 + StrLitDecodeError(()), | warning: variant `NotUtf8` is never constructed --> src/parser.rs:43:5 | 40 | pub enum ParserError { | ----------- variant in this enum ... 43 | NotUtf8, | ^^^^^^^ | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: fields `error`, `line`, and `col` are never read --> src/parser.rs:67:9 | 66 | pub struct ParserErrorWithLocation { | ----------------------- fields in this struct 67 | pub error: ParserError, | ^^^^^ 68 | /// 1-based 69 | pub line: u32, | ^^^^ 70 | /// 1-based 71 | pub col: u32, | ^^^ | = note: `ParserErrorWithLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: trait `ToU8` is never used --> src/parser.rs:94:7 | 94 | trait ToU8 { | ^^^^ warning: trait `ToChar` is never used --> src/parser.rs:106:7 | 106 | trait ToChar { | ^^^^^^ warning: unused return value of `Box::::from_raw` that must be used --> src/linked_hash_map.rs:172:13 | 172 | Box::from_raw(cur); | ^^^^^^^^^^^^^^^^^^ | = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 172 | let _ = Box::from_raw(cur); | +++++++ warning: unused return value of `Box::::from_raw` that must be used --> src/linked_hash_map.rs:1184:17 | 1184 | Box::from_raw(self.tail); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` help: use `let _ = ...` to ignore the resulting value | 1184 | let _ = Box::from_raw(self.tail); | +++++++ warning: `protobuf-codegen-pure` (lib) generated 22 warnings (run `cargo fix --lib -p protobuf-codegen-pure` to apply 1 suggestion) Finished `rpm` profile [optimized + debuginfo] target(s) in 44.88s + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.K7rfMJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + mkdir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-codegen-pure-2.28.0 + '[' 1 -eq 1 ']' + set -euo pipefail ++ /usr/bin/cargo2rpm --path Cargo.toml is-lib + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ /usr/bin/cargo2rpm --path Cargo.toml name + CRATE_NAME=protobuf-codegen-pure ++ /usr/bin/cargo2rpm --path Cargo.toml version + CRATE_VERSION=2.28.0 + REG_DIR=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT/usr/share/cargo/registry/protobuf-codegen-pure-2.28.0 + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT/usr/share/cargo/registry/protobuf-codegen-pure-2.28.0 + /usr/bin/awk -i inplace -v INPLACE_SUFFIX=.deps '/^\[((.+\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT/usr/share/cargo/registry/protobuf-codegen-pure-2.28.0 warning: no (git) VCS found for `/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0` + /usr/bin/mv Cargo.toml.deps Cargo.toml + /usr/bin/cp -a Cargo.toml /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT/usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/Cargo.toml + /usr/bin/rm -f /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT/usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/Cargo.toml.deps + echo '{"files":{},"package":""}' ++ /usr/bin/cargo2rpm --path Cargo.toml is-bin + '[' 0 -eq 1 ']' + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ybLDj0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-codegen-pure-2.28.0 + '[' 1 -eq 1 ']' + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' /usr/bin/cargo test -j16 -Z avoid-dev-deps --profile rpm --no-fail-fast --lib warning: no edition set: defaulting to the 2015 edition while the latest is 2024 Fresh protobuf v2.28.0 Fresh protobuf-codegen v2.28.0 Compiling protobuf-codegen-pure v2.28.0 (/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0) Running `/usr/bin/rustc --crate-name protobuf_codegen_pure --edition=2015 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=92de33199ea0de60 -C extra-filename=-9304efcc0182f1f0 --out-dir /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps -L dependency=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps --extern protobuf=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/libprotobuf-4338cc603dee88ff.rlib --extern protobuf_codegen=/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/libprotobuf_codegen-4210c54d122a93c5.rlib -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn` warning: unexpected `cfg` condition value: `nightly` --> src/linked_hash_map.rs:38:17 | 38 | #![cfg_attr(all(feature = "nightly", test), feature(test))] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `nightly` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:39:13 | 39 | #![cfg_attr(feature = "clippy", feature(plugin))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:40:13 | 40 | #![cfg_attr(feature = "clippy", plugin(clippy))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `clippy` --> src/linked_hash_map.rs:41:13 | 41 | #![cfg_attr(feature = "clippy", deny(clippy))] | ^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `clippy` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unexpected `cfg` condition value: `nightly` --> src/linked_hash_map.rs:1471:11 | 1471 | #[cfg(all(feature = "nightly", test))] | ^^^^^^^^^^^^^^^^^^^ help: remove the condition | = note: no expected values for `feature` = help: consider adding `nightly` as a feature in `Cargo.toml` = note: see for more information about checking conditional configuration warning: unused import: `parser::ParserError` --> src/model.rs:8:9 | 8 | pub use parser::ParserError; | ^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused variable: `name` --> src/parser.rs:2073:35 | 2073 | if let FieldType::Group { name, fields } = &mess.regular_fields_for_test()[1].typ { | ^^^^ help: try ignoring the field: `name: _` | = note: `#[warn(unused_variables)]` on by default warning: field `0` is never read --> src/lib.rs:178:29 | 178 | ParserErrorWithLocation(parser::ParserErrorWithLocation), | ----------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `CodegenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 178 - ParserErrorWithLocation(parser::ParserErrorWithLocation), 178 + ParserErrorWithLocation(()), | warning: field `0` is never read --> src/lib.rs:179:18 | 179 | ConvertError(convert::ConvertError), | ------------ ^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `CodegenError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 179 - ConvertError(convert::ConvertError), 179 + ConvertError(()), | warning: field `0` is never read --> src/convert.rs:19:23 | 19 | UnsupportedOption(String), | ----------------- ^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 19 - UnsupportedOption(String), 19 + UnsupportedOption(()), | warning: field `0` is never read --> src/convert.rs:20:23 | 20 | ExtensionNotFound(String), | ----------------- ^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 20 - ExtensionNotFound(String), 20 + ExtensionNotFound(()), | warning: fields `0` and `1` are never read --> src/convert.rs:21:24 | 21 | WrongExtensionType(String, &'static str), | ------------------ ^^^^^^ ^^^^^^^^^^^^ | | | fields in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 21 - WrongExtensionType(String, &'static str), 21 + WrongExtensionType((), ()), | warning: fields `0` and `1` are never read --> src/convert.rs:22:30 | 22 | UnsupportedExtensionType(String, String), | ------------------------ ^^^^^^ ^^^^^^ | | | fields in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields | 22 - UnsupportedExtensionType(String, String), 22 + UnsupportedExtensionType((), ()), | warning: field `0` is never read --> src/convert.rs:23:23 | 23 | StrLitDecodeError(StrLitDecodeError), | ----------------- ^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `ConvertError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 23 - StrLitDecodeError(StrLitDecodeError), 23 + StrLitDecodeError(()), | warning: field `0` is never read --> src/parser.rs:44:16 | 44 | ExpectChar(char), | ---------- ^^^^ | | | field in this variant | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 44 - ExpectChar(char), 44 + ExpectChar(()), | warning: field `0` is never read --> src/parser.rs:57:23 | 57 | StrLitDecodeError(StrLitDecodeError), | ----------------- ^^^^^^^^^^^^^^^^^ | | | field in this variant | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 57 - StrLitDecodeError(StrLitDecodeError), 57 + StrLitDecodeError(()), | warning: variant `NotUtf8` is never constructed --> src/parser.rs:43:5 | 40 | pub enum ParserError { | ----------- variant in this enum ... 43 | NotUtf8, | ^^^^^^^ | = note: `ParserError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: fields `error` and `col` are never read --> src/parser.rs:67:9 | 66 | pub struct ParserErrorWithLocation { | ----------------------- fields in this struct 67 | pub error: ParserError, | ^^^^^ ... 71 | pub col: u32, | ^^^ | = note: `ParserErrorWithLocation` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis warning: trait `ToU8` is never used --> src/parser.rs:94:7 | 94 | trait ToU8 { | ^^^^ warning: trait `ToChar` is never used --> src/parser.rs:106:7 | 106 | trait ToChar { | ^^^^^^ warning: unused return value of `Box::::from_raw` that must be used --> src/linked_hash_map.rs:172:13 | 172 | Box::from_raw(cur); | ^^^^^^^^^^^^^^^^^^ | = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` = note: `#[warn(unused_must_use)]` on by default help: use `let _ = ...` to ignore the resulting value | 172 | let _ = Box::from_raw(cur); | +++++++ warning: unused return value of `Box::::from_raw` that must be used --> src/linked_hash_map.rs:1184:17 | 1184 | Box::from_raw(self.tail); | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` help: use `let _ = ...` to ignore the resulting value | 1184 | let _ = Box::from_raw(self.tail); | +++++++ warning: `protobuf-codegen-pure` (lib test) generated 22 warnings (run `cargo fix --lib -p protobuf-codegen-pure --tests` to apply 1 suggestion) Finished `rpm` profile [optimized + debuginfo] target(s) in 4.92s Running `/home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/protobuf-codegen-pure-2.28.0/target/rpm/deps/protobuf_codegen_pure-9304efcc0182f1f0` running 24 tests test parser::test::test_default_value_bytes ... ok test parser::test::test_default_value_int ... ok test parser::test::test_extend ... ok test parser::test::test_field_default_value_float ... ok test parser::test::test_default_value_string ... ok test parser::test::test_enum ... ok test parser::test::test_field_default_value_int ... ok test parser::test::test_group ... ok test parser::test::test_ident ... ok test parser::test::test_ignore ... ok test parser::test::test_incorrect_file_descriptor ... ok test parser::test::test_lexer_float_lit ... ok test parser::test::test_lexer_int_lit ... ok test parser::test::test_map ... ok test parser::test::test_message ... ok test parser::test::test_nested_message ... ok test parser::test::test_no_package ... ok test parser::test::test_oneof ... ok test parser::test::test_package ... ok test parser::test::test_reserved ... ok test parser::test::test_str_lit ... ok test parser::test::test_syntax ... ok test test::test_relative_path_to_protobuf_path ... ok test test_against_protobuf_protos::test ... ok test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s + RPM_EC=0 ++ jobs -p + exit 0 Processing files: rust-protobuf-codegen-pure-devel-2.28.0-1.mga10.noarch warning: File listed twice: /usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/LICENSE.txt warning: File listed twice: /usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/README.md Provides: crate(protobuf-codegen-pure) = 2.28.0 rust-protobuf-codegen-pure-devel = 2.28.0-1.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(protobuf-codegen/default) = 2.28.0 crate(protobuf/default) = 2.28.0 Processing files: rust-protobuf-codegen-pure+default-devel-2.28.0-1.mga10.noarch Provides: crate(protobuf-codegen-pure/default) = 2.28.0 rust-protobuf-codegen-pure+default-devel = 2.28.0-1.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: cargo crate(protobuf-codegen-pure) = 2.28.0 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build/BUILDROOT Wrote: /home/pterjan/rpmbuild/RPMS/noarch/rust-protobuf-codegen-pure+default-devel-2.28.0-1.mga10.noarch.rpm Wrote: /home/pterjan/rpmbuild/RPMS/noarch/rust-protobuf-codegen-pure-devel-2.28.0-1.mga10.noarch.rpm Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dYxkuJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + test -d /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + rm -rf /home/pterjan/rpmbuild/BUILD/rust-protobuf-codegen-pure-2.28.0-build + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: File listed twice: /usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/LICENSE.txt File listed twice: /usr/share/cargo/registry/protobuf-codegen-pure-2.28.0/README.md D: [iurt_root_command] Success!