389ds / 389-ds-base

The enterprise-class Open Source LDAP server for Linux
https://www.port389.org/
Other
210 stars 88 forks source link

build failure with ahash 0.8.11 #6290

Open tjaalton opened 1 month ago

tjaalton commented 1 month ago

Issue Description Debian has a newer version of ahash, and now the build fails:

error[E0624]: associated function `new_with_keys` is private
   --> /<<PKGBUILDDIR>>/debian/vendor/concread/src/internals/hashmap/macros.rs:3:35
    |
3   |         let mut hasher = AHasher::new_with_keys($self.key1, $self.key2);
    |                                   ^^^^^^^^^^^^^ private associated function
    |
   ::: /<<PKGBUILDDIR>>/debian/vendor/ahash-0.8.11/src/fallback_hash.rs:33:5
    |
33  |     pub(crate) fn new_with_keys(key1: u128, key2: u128) -> AHasher {
    |     -------------------------------------------------------------- private associated function defined here
    |
   ::: /<<PKGBUILDDIR>>/debian/vendor/concread/src/internals/hashmap/cursor.rs:547:9
    |
547 |         hash_key!(self, k)
    |         ------------------ in this macro invocation
    |
    = note: this error originates in the macro `hash_key` (in Nightly builds, run with -Z macro-backtrace for more 
info)

error[E0624]: associated function `new_with_keys` is private
   --> /<<PKGBUILDDIR>>/debian/vendor/concread/src/internals/hashmap/macros.rs:3:35
    |
3   |         let mut hasher = AHasher::new_with_keys($self.key1, $self.key2);
    |                                   ^^^^^^^^^^^^^ private associated function
    |
   ::: /<<PKGBUILDDIR>>/debian/vendor/ahash-0.8.11/src/fallback_hash.rs:33:5
    |
33  |     pub(crate) fn new_with_keys(key1: u128, key2: u128) -> AHasher {
    |     -------------------------------------------------------------- private associated function defined here
    |
   ::: /<<PKGBUILDDIR>>/debian/vendor/concread/src/internals/hashmap/cursor.rs:573:9
    |
573 |         hash_key!(self, k)
    |         ------------------ in this macro invocation
    |
    = note: this error originates in the macro `hash_key` (in Nightly builds, run with -Z macro-backtrace for more 
info)

For more information about this error, try `rustc --explain E0624`.
error: could not compile `concread` (lib) due to 2 previous errors

Package Version and Platform:

tjaalton commented 1 month ago

the log would suggest that I have a local copy of ahash under debian/vendor, but in reality that's the place where I symlink stuff from /usr/share/cargo/registry/ which are installed from packages.