[opensuse-buildservice] Strange differences in 15.1 vs. 15.2 OBS builds
Hi there, while this appears to be Rust specific, it is not as I've seen similar strange differences in other complex build situations (e.g. MozillaFirefox), too. The build of rust for Leap 15.1 failed due to the following results of RPMLINT <https://build.opensuse.org/package/live_build_log/devel:languages:rust/rust/openSUSE_Leap_15.1/x86_64>: [15022s] rust-src.noarch: E: env-script-interpreter (Badness: 9) /usr/lib/rustlib/src/rust/library/backtrace/ci/android-sdk.sh /usr/bin/env sh [15022s] rust-src.noarch: E: env-script-interpreter (Badness: 9) /usr/lib/rustlib/src/rust/library/stdarch/ci/dox.sh /usr/bin/env bash [15022s] rust-src.noarch: E: env-script-interpreter (Badness: 9) /usr/lib/rustlib/src/rust/library/stdarch/ci/run-docker.sh /usr/bin/env sh [15022s] rust-src.noarch: E: env-script-interpreter (Badness: 9) /usr/lib/rustlib/src/rust/library/stdarch/ci/run.sh /usr/bin/env sh [15022s] rust-src.noarch: E: env-script-interpreter (Badness: 9) /usr/lib/rustlib/src/rust/library/stdarch/ci/style.sh /usr/bin/env sh [15022s] This script uses 'env' as an interpreter. For the rpm runtime dependency [15022s] detection to work, the shebang #!/usr/bin/env python needs to be patched into [15022s] #!/usr/bin/python otherwise the package dependency generator merely adds a [15022s] dependency on /usr/bin/env rather than the actual interpreter /usr/bin/python. [15022s] Alternatively, if the file should not be executed, then ensure that it is not [15022s] marked as executable or don't install it in a path that is reserved for [15022s] executables. [15022s] ... [15022s] 12 packages and 0 specfiles checked; 6 errors, 27 warnings. Interestingly the same messages are shown in the build log for Leap 15.2, but this build succeeded <https://build.opensuse.org/package/live_build_log/devel:languages:rust/rust/openSUSE_Leap_15.2/x86_64> Here there is one error less (due to not having to build the included LLVM, but rather use the system provided one), but still 5 errors. I worked around it (see <https://build.opensuse.org/request/show/845063>), but I don't understand why OBS behaves differently for OSs older than 15.2 and 15.2 onwards (incl. Tumbleweed). Does anyone have an idea? Fix? TIA, cheers. l8er manfred
On Okt 30 2020, Manfred Hollstein wrote:
Interestingly the same messages are shown in the build log for Leap 15.2, but this build succeeded <https://build.opensuse.org/package/live_build_log/devel:languages:rust/rust/openSUSE_Leap_15.2/x86_64> Here there is one error less (due to not having to build the included LLVM, but rather use the system provided one), but still 5 errors.
It is the combined badness that breaks the 15.1 build: [15022s] rust.x86_64: E: shlib-policy-name-error (Badness: 10000) libLLVM-11-rust-1_47_0-stable [15022s] Your package contains a single shared library but is not named after its [15022s] SONAME. [15022s] [15022s] (none): E: badness 10045 exceeds threshold 1000, aborting.
I worked around it (see <https://build.opensuse.org/request/show/845063>), but I don't understand why OBS behaves differently for OSs older than 15.2 and 15.2 onwards (incl. Tumbleweed).
Nothing to do with OBS. Please ask in opensuse-packaging@. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, 30 Oct 2020, 17:37:43 +0100, Andreas Schwab wrote:
On Okt 30 2020, Manfred Hollstein wrote:
Interestingly the same messages are shown in the build log for Leap 15.2, but this build succeeded <https://build.opensuse.org/package/live_build_log/devel:languages:rust/rust/openSUSE_Leap_15.2/x86_64> Here there is one error less (due to not having to build the included LLVM, but rather use the system provided one), but still 5 errors.
It is the combined badness that breaks the 15.1 build:
[15022s] rust.x86_64: E: shlib-policy-name-error (Badness: 10000) libLLVM-11-rust-1_47_0-stable [15022s] Your package contains a single shared library but is not named after its [15022s] SONAME. [15022s] [15022s] (none): E: badness 10045 exceeds threshold 1000, aborting.
Yep, makes sense. This would be fixed by the change to one of the filters in rust-rpmlintrc contained in my SR.
I worked around it (see <https://build.opensuse.org/request/show/845063>), but I don't understand why OBS behaves differently for OSs older than 15.2 and 15.2 onwards (incl. Tumbleweed).
Nothing to do with OBS. Please ask in opensuse-packaging@.
I'm waiting for a response from the Rust guys wrt/ my SR...
Andreas.
Cheers. l8er manfred
participants (2)
-
Andreas Schwab
-
Manfred Hollstein