Created attachment 799319 [details] emerge--info.txt I'm adding dev-java/jdbc-postgresql-42.4.1 to the classpath of www-servers/tomcat-9.0.65 using 'TOMCAT_EXTRA_JARS="jdbc-postgresql"' in '/etc/conf.d/tomcat-9' so that I can pass connections to webapp.s through JNDI. Tomcat fails to deploy an application which is linked to this connection: java.lang.NoClassDefFoundError: com/ongres/stringprep/StringPrep at com.ongres.saslprep.SaslPrep.saslPrep(SaslPrep.java:52) at com.ongres.scram.common.stringprep.StringPreparations$2.doNormalize(StringPreparations.java:55) at com.ongres.scram.common.stringprep.StringPreparations.normalize(StringPreparations.java:65) at com.ongres.scram.common.ScramMechanisms.saltedPassword(ScramMechanisms.java:152) at com.ongres.scram.common.ScramFunctions.saltedPassword(ScramFunctions.java:59) at com.ongres.scram.client.ScramSession$ClientFinalProcessor.<init>(ScramSession.java:196) at com.ongres.scram.client.ScramSession$ClientFinalProcessor.<init>(ScramSession.java:163) at com.ongres.scram.client.ScramSession$ServerFirstProcessor.clientFinalProcessor(ScramSession.java:130) at org.postgresql.jre7.sasl.ScramAuthenticator.processServerFirstMessage(ScramAuthenticator.java:147) at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:816) at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:180) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:235) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:247) at org.postgresql.Driver.makeConnection(Driver.java:434) at org.postgresql.Driver.connect(Driver.java:291) at org.apache.tomcat.dbcp.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:55) etc. According to their 'package.env's, jdbc-postgresql depends on dev-java/scram which depends on dev-java/saslprep which has BUILD_DEPEND="stringprep". When I added 'DEPEND="stringprep"' to saslprep's 'package.env' the problem was corrected. I wonder whether "BUILD_DEPEND" should have been "DEPEND".
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52c83a6eee00e181c9c96ad623942f46a8ea5b91 commit 52c83a6eee00e181c9c96ad623942f46a8ea5b91 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-08-12 11:07:46 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2022-08-12 11:36:12 +0000 dev-java/saslprep: adjust dependency type have saslprep in CP_DEPEDND, not only in DEPEND Closes: https://bugs.gentoo.org/864931 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26833 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> dev-java/saslprep/{saslprep-1.1.ebuild => saslprep-1.1-r1.ebuild} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)