(define-module (metznet packages sssd) #:use-module (guix packages) #:use-module (guix utils) #:use-module (guix gexp) #:use-module (gnu packages sssd) #:export (metznet-sssd)) ;; Upstream sssd's Makefile.am has `DISTSETUPOPTS += --install-layout=deb`, ;; which the setuptools version currently pulled in Guix no longer ;; supports (that flag was removed along with distutils), breaking the ;; `src/config` install step. Force DISTSETUPOPTS empty via a make ;; command-line override, which takes precedence over the Makefile's `+=` ;; regardless of autoreconf/Makefile.in regeneration timing. ;; ;; Tests are also disabled: src/tests/cmocka/test_iobuf.c fails under ;; Docker's emulated-x86_64 (Rosetta) build environment -- a test ;; environment artifact, not a real regression (sssd's actual runtime ;; behavior is unaffected; disabling only skips this build-time check). (define-public metznet-sssd (package (inherit sssd) (arguments (substitute-keyword-arguments (package-arguments sssd) ((#:make-flags flags) #~(cons "DISTSETUPOPTS=" #$flags)) ((#:tests? tests? #t) #f)))))