gnu: qtbase: Patch /bin/pwd in executable scripts.

* gnu/packages/qt.scm (qtbase)[phases]{patch-paths}: Patch /bin/pwd.
[inputs]: Add coreutils-minimal.
This commit is contained in:
Maxim Cournoyer 2022-07-17 12:13:12 -04:00
parent ab59155c5a
commit 663f12ea24
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -622,6 +622,9 @@ (define-public qtbase
(delete 'patch-xdg-open)
(add-after 'patch-paths 'patch-more-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (find-files "bin" "\\.in$")
(("/bin/pwd")
(search-input-file inputs "bin/pwd")))
(substitute* "src/gui/platform/unix/qgenericunixservices.cpp"
(("\"xdg-open\"")
(format #f "~s" (search-input-file inputs "bin/xdg-open"))))
@ -687,7 +690,7 @@ (define-public qtbase
ninja wayland-protocols)))
(inputs
(modify-inputs (package-inputs qtbase-5)
(prepend bash-minimal libxcb md4c)
(prepend bash-minimal coreutils-minimal libxcb md4c)
(replace "gtk+" gtk) ;use latest gtk
(replace "postgresql" postgresql))) ;use latest postgresql
(native-search-paths