Package Details: lldap-git 0.5.0.r101.g3d8aafa-2

Git Clone URL: https://aur.archlinux.org/lldap-git.git (read-only, click to copy)
Package Base: lldap-git
Description: Light LDAP Daemon
Upstream URL: https://github.com/lldap/lldap
Licenses: GPL3
Conflicts: lldap
Provides: lldap
Submitter: lapinot
Maintainer: lapinot
Last Packager: lapinot
Votes: 1
Popularity: 0.000001
First Submitted: 2023-02-25 01:02 (UTC)
Last Updated: 2024-02-28 16:11 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

lapinot commented on 2024-02-27 22:52 (UTC) (edited on 2024-02-27 22:53 (UTC) by lapinot)

rabidpug: Thanks, indeed. Will push this fix in a minute.

Zepman: Sorry for my email not being setup correctly, i just saw your orphan request on the mailing list. I'm in the process of switching my "online/dev" email and hadn't thought about me now being a maintainer of something. I will make it work soon, in the meantime i'll follow closer this comment thread.

About the compilation: the important part of your error is (signal: 9, SIGKILL: kill), which most likely means the OS killed the build process for some reason. Actually i tested building in a fresh arch chroot (pacstrap + arch-chroot) and got the exact same error. Did you also try to build in a chroot? It is quite memory intensive to build and i don't think arch-chroot is particularly robust with tmpfiles / memory usage.

I will try to build in a clean VM to see if it works better. In the meantime, outside of any chroot or VM: have you tried doing rustup update before building? The PKGBUILD will not mess with your rustup installation, so if it's already installed it will use whatever version there is, perhaps it is a bit stalled.

I just built the package on my main system, running rustup update fixed any issue.

Zepman commented on 2024-02-12 11:09 (UTC) (edited on 2024-02-12 11:47 (UTC) by Zepman)

This package fails to build. Tested on a stock Arch Linux system with base-devel installed, without the use of an AUR helper.

$ makepkg -sr --noconfirm
==> Making package: lldap-git 0.5.0.r96.g22074f5-1 (Mon Feb 12 11:29:54 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
(...)
==> Retrieving sources...
(...)
==> Validating source files with sha256sums...
(...)
==> Extracting sources...
(...)
==> Starting prepare()...
(...)
==> Starting pkgver()...
==> Starting build()...
(...)
   Compiling lldap v0.5.1-alpha (/home/user/src/lldap-git/src/lldap-git/server)
error: could not compile `lldap` (bin "lldap")

Caused by:
  process didn't exit successfully: `/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name lldap --edition=2021 server/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C lto -C metadata=a1cea0b8c518361c -C extra-filename=-a1cea0b8c518361c --out-dir /home/user/src/lldap-git/src/lldap-git/target/release/deps -L dependency=/home/user/src/lldap-git/src/lldap-git/target/release/deps --extern actix=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix-332fbfc8d07243bf.rlib --extern actix_files=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_files-d31b18f4bd19ff1b.rlib --extern actix_http=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_http-c8c939bf28d8395d.rlib --extern actix_rt=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_rt-57c0331ac86ea9ff.rlib --extern actix_server=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_server-41b2c32cfae8f0e4.rlib --extern actix_service=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_service-16af244d2e4fefb1.rlib --extern actix_tls=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_tls-c8e0310f49a89377.rlib --extern actix_web=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_web-db9bf8256a71f7d4.rlib --extern actix_web_httpauth=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libactix_web_httpauth-a7c844f92b8f0dc8.rlib --extern anyhow=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libanyhow-2ba336d289eca669.rlib --extern async_trait=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libasync_trait-e46d3a90d0dc7d52.so --extern base64=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libbase64-885fabd96d3529ad.rlib --extern bincode=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libbincode-68d7af42446161de.rlib --extern chrono=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libchrono-02337633575e6b14.rlib --extern clap=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libclap-5a05d2d23b010d50.rlib --extern cron=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libcron-70e0772f24f21b00.rlib --extern derive_builder=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libderive_builder-aff4879c333c2f12.rlib --extern derive_more=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libderive_more-dc8c7dce6cbcc709.so --extern figment=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libfigment-8ff813aeccc33241.rlib --extern figment_file_provider_adapter=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libfigment_file_provider_adapter-640e960e7d375577.rlib --extern futures=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libfutures-8fa77f052f75b058.rlib --extern futures_util=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libfutures_util-cf538a672470448d.rlib --extern hmac=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libhmac-35c917b208a290ed.rlib --extern http=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libhttp-0515380e27c8fa92.rlib --extern image=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libimage-c91df134dedee569.rlib --extern itertools=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libitertools-5d04b887f0ef1219.rlib --extern juniper=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libjuniper-29aba66527ee1c64.rlib --extern jwt=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libjwt-1e5f32d8145c4799.rlib --extern lber=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liblber-aa9249abafb19372.rlib --extern ldap3_proto=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libldap3_proto-cdc58ae70ceb4d24.rlib --extern lettre=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liblettre-5487403cdda6559c.rlib --extern lldap_auth=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liblldap_auth-99680f3b55404208.rlib --extern log=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liblog-8c7f74272946326e.rlib --extern opaque_ke=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libopaque_ke-e9313d3bf5d8c795.rlib --extern orion=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liborion-1c3f8e930bd69fc6.rlib --extern rand=/home/user/src/lldap-git/src/lldap-git/target/release/deps/librand-eac3ed25660b0916.rlib --extern rand_chacha=/home/user/src/lldap-git/src/lldap-git/target/release/deps/librand_chacha-f01bcdd2e41952cb.rlib --extern reqwest=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libreqwest-7272490f25c2edb0.rlib --extern rustls=/home/user/src/lldap-git/src/lldap-git/target/release/deps/librustls-30fc0a770fb8772c.rlib --extern rustls_pemfile=/home/user/src/lldap-git/src/lldap-git/target/release/deps/librustls_pemfile-031943dc34eace8e.rlib --extern sea_orm=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libsea_orm-8e1e1dd462c05ee5.rlib --extern secstr=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libsecstr-3634f14819a161e3.rlib --extern serde=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libserde-c8643946fb5918b4.rlib --extern serde_bytes=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libserde_bytes-f003b79b770cfb3a.rlib --extern serde_json=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libserde_json-b689769214d8d7d3.rlib --extern sha2=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libsha2-aca073215eae820d.rlib --extern strum=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libstrum-3093897b82ecd3d9.rlib --extern thiserror=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libthiserror-66dfd1aaaa7647e6.rlib --extern time=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtime-125d46a7f5cc05e6.rlib --extern tokio=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtokio-0acea9a3d04e9e60.rlib --extern tokio_rustls=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtokio_rustls-34c48dbaac7ca01f.rlib --extern tokio_stream=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtokio_stream-a22e66a8d093d4e3.rlib --extern tokio_util=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtokio_util-ae37325533944f9a.rlib --extern tracing=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing-f5e844d7dfbd4252.rlib --extern tracing_actix_web=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing_actix_web-10f333e251638390.rlib --extern tracing_attributes=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing_attributes-df61999c2025a2d2.so --extern tracing_forest=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing_forest-4cdcaadd7816cd3e.rlib --extern tracing_log=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing_log-596e0c7bf5402b27.rlib --extern tracing_subscriber=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libtracing_subscriber-918aab1eba219d76.rlib --extern url=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liburl-16f8a832563c0d76.rlib --extern urlencoding=/home/user/src/lldap-git/src/lldap-git/target/release/deps/liburlencoding-8e5805a099fe40e4.rlib --extern uuid=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libuuid-9c1e66a8c5683d38.rlib --extern webpki_roots=/home/user/src/lldap-git/src/lldap-git/target/release/deps/libwebpki_roots-b777bebe0816ce04.rlib -C debuginfo=2 --remap-path-prefix=/home/user/src/lldap-git/src=/usr/src/debug/lldap-git -L native=/home/user/src/lldap-git/src/lldap-git/target/release/build/zstd-sys-4af1e099a325a4d1/out -L native=/home/user/src/lldap-git/src/lldap-git/target/release/build/ring-df35597af2372829/out -L native=/home/user/src/lldap-git/src/lldap-git/target/release/build/libsqlite3-sys-558e8fbacfd9917a/out` (signal: 9, SIGKILL: kill)
==> ERROR: A failure occurred in build().
    Aborting...

rabidpug commented on 2024-01-06 03:29 (UTC)

Should this package have backup=('etc/lldap.toml') to preserve the existing config file on update?

lapinot commented on 2023-11-27 18:14 (UTC)

Zepman: Builds without error for me (currently at lldap-git-0.5.0.r38.g5cd4499). What version of rust are you using? I'm running rustc 1.67.0.

Zepman commented on 2023-11-19 09:05 (UTC)

This package fails to build:

ERROR    🚨 [error]: Healthcheck failed
test list_users ... FAILED

failures:

---- get_admin stdout ----
thread 'get_admin' panicked at server/tests/common/fixture.rs:62:9:
assertion failed: started
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- list_users stdout ----
thread 'list_users' panicked at server/tests/common/fixture.rs:62:9:
assertion failed: started


failures:
    get_admin
    list_users

test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 22.14s

error: test failed, to rerun pass `--test graphql`
==> ERROR: A failure occurred in check().
    Aborting...
==> WARNING: Failed to remove installed dependencies.

Workaround: Skip the check part of building the package, or comment out cargo test --release in PKGBUILD.

Upgraded a stable (0.5.0) installation to the git version. It runs fine.

lapinot commented on 2023-10-31 22:21 (UTC)

Hi all. Beware i changed a lot of stuff in the last package update. In particular:

  • Documentation and example configs are installed at /usr/share/doc/lldap.
  • The static files for the web frontend are installed at /usr/share/lldap/app. BEWARE: there is no config option for the path to these files, so the lldap process must be started with /usr/share/lldap as CWD.
  • I slightly edited the default config (/etc/lldap.toml), putting standard ports and binding to localhost. This is not ready to go, there are some random secrets that need to be inserted.
  • I wrote an unit file, i'm no expert so its pretty basic.

Please review and make comments if you're using this! I will probably wait for the next release to publish a non vcs package.

trainzkid commented on 2023-03-12 00:08 (UTC)

Ah, it installed correctly this time! Thank you!! Don't worry, I'll find all the bugs for ya lol

lapinot commented on 2023-03-11 22:45 (UTC)

trainzkid: no problem! Indeed rustup is a manager/installer for rust toolchains so you have to actually install one, typically the latest stable branch, using eg rustup default stable (this both installs it and loads it as default). I'd rather not add logic for this in the PKGBUILD to not mess up people's config.

In fact there was some other problem in the package since they updated the build process for the frontend, i just updated and it should be fine now. In the process i also configured a system user for lldap to run as. Perhaps a next step would be to write a small systemd service file. Perhaps i should mention that i'm not yet using the package in production myself (but soon)!

trainzkid commented on 2023-03-11 21:16 (UTC)

Hey lapinot, I replaced rust with rustup and received a new error:

==> Starting prepare()... error: rustup could not choose a version of cargo to run, because one wasn't specified explicitly, and no default is configured. help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain. ==> ERROR: A failure occurred in prepare(). Aborting... error: failed to build 'lldap-git-0.4.1.r80.g98acd68-1': error: packages failed to build: lldap-git-0.4.1.r80.g98acd68-1

Is there some special version of rustup I need? I apologize, I've not really used rust much before.

lapinot commented on 2023-03-11 20:14 (UTC)

Hi trainzkid. Indeed i thought this should get pulled by wasm-pack but didn't notice there was something magic with rustup. I think the simple solution here is to use rustup since individual rust targets don't seem to be packaged on archlinux. I'm gonna switch the requirement from generic rust to rustup.