Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 864931 - dev-java/saslprep 1.1 missing dependency on dev-java/stringprep
Summary: dev-java/saslprep 1.1 missing dependency on dev-java/stringprep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-08-11 18:19 UTC by Mark H. Wood
Modified: 2022-08-12 11:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge--info.txt (emerge--info.txt,6.85 KB, text/plain)
2022-08-11 18:19 UTC, Mark H. Wood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark H. Wood 2022-08-11 18:19:47 UTC
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".
Comment 1 Larry the Git Cow gentoo-dev 2022-08-12 11:36:35 UTC
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(-)