Jérôme Charaoui pushed to branch experimental at Debian Java Maintainers / jruby
Commits:
45b29ddb by Jérôme Charaoui at 2026-09-19T17:11:17-04:00
d/tests: fix openssl load failure
the presence of the jar-dependencies gem in the bundle induces this
error in mri-stdlib test OpenSSL::TestFIPS#test_fips_mode_is_reentrant
failed to load jar:
org/bouncycastle/bcprov-jdk18on/1.85/bcprov-jdk18on-1.85.jar
and indeed lib/pom.rb uses exclusions to avoid this gem being installed
- - - - -
1 changed file:
- debian/tests/common.sh
Changes:
=====================================
debian/tests/common.sh
=====================================
@@ -20,19 +20,33 @@ prepare() {
# extra dependencies are needed to run the testsuite
install_gem_bundle() {
echo "---> Start installing gem bundle"
- GEMFILE="${AUTOPKGTEST_TMP}/Gemfile"
- cp Gemfile "$GEMFILE"
+ cd "$AUTOPKGTEST_TMP"
+ BUILD_DIR="$OLDPWD"
+
+ # install bundler plugin adding the ability to ignore gem deps
+ jruby -S bundle plugin install bundler-ignore-dependency
+
+ # intiialize Gemfile to ignore jar-dependencies
+ {
+ echo 'require
File.join(Bundler::Plugin.index.load_paths("bundler-ignore-dependency")[0],
"bundler/ignore_dependency") rescue nil';
+ head -n1 "$BUILD_DIR/Gemfile"
+ echo 'plugin "bundler-ignore-dependency"'
+ echo 'ignore_dependency! "jar-dependencies"'
+ tail -n-1 "$BUILD_DIR/Gemfile"
+ } >> Gemfile
# append list of "bundled" gems to Gemfile
while read -r gem version; do
- echo "gem '${gem}', '${version}'" >> "$GEMFILE"
+ echo "gem '${gem}', '${version}'" >> Gemfile
done < /usr/share/doc/jruby/bundled_gems
# destination directory for installing gems
export GEM_HOME="${AUTOPKGTEST_TMP}/gems"
# run bundler
- jruby -S bundle install --gemfile "$GEMFILE"
+ jruby -S bundle install
+
+ cd "$BUILD_DIR"
echo "---> Finished installing gem bundle"
}
View it on GitLab:
https://salsa.debian.org/java-team/jruby/-/commit/45b29ddbb4c1eebeee0e6e6cad7e9efbefd29eb6
--
View it on GitLab:
https://salsa.debian.org/java-team/jruby/-/commit/45b29ddbb4c1eebeee0e6e6cad7e9efbefd29eb6
You're receiving this email because of your account on salsa.debian.org. Manage
all notifications: https://salsa.debian.org/-/profile/notifications | Help:
https://salsa.debian.org/help
_______________________________________________
pkg-java-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits