gnu: firebird: Use git-fetch.

* gnu/packages/databases.scm (source): Use git-fetch. Do not delete
files that are not in the git repository.
[native-inputs]: Set to autoconf, automake and libtool on all
architectures.

Change-Id: I667f6fb46b9ac70139f12bd492be5bfebae42995
This commit is contained in:
Andreas Enge 2025-08-05 12:46:57 +02:00
parent 78b021daba
commit 908fa1ac27
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -311,39 +311,35 @@ ElasticSearch server")
(name "firebird") (name "firebird")
(version "3.0.12") (version "3.0.12")
(source (source
(let ((revision "33787-0")) (origin
(origin (method git-fetch)
(method url-fetch) (uri (git-reference
(uri (string-append "https://github.com/FirebirdSQL/" (url "https://github.com/FirebirdSQL/firebird")
"firebird/releases/download/v" (commit (string-append "v" version))))
version "/" (file-name (git-file-name name version))
"Firebird-" version "." revision ".tar.bz2")) (sha256
(sha256 (base32 "09i51s3zgd0qkd17kk32cq99kpxgkm3frnjmr4dgr1csncr2v3x6"))
(base32 "07w109k237slwyhgyxma9r5my0dkvksc7ykpw0a4h7gpv06vzcl5")) (patches (search-patches "firebird-riscv64-support-pt1.patch"
(patches (search-patches "firebird-riscv64-support-pt1.patch" "firebird-riscv64-support-pt2.patch"))
"firebird-riscv64-support-pt2.patch")) (modules '((guix build utils)))
(modules '((guix build utils))) (snippet
(snippet `(begin
`(begin (for-each
(for-each delete-file-recursively
delete-file-recursively (list "extern/btyacc/test" ; TODO: package and remove entirely
(list "extern/btyacc/test" ; TODO: package and remove entirely "extern/editline"
"extern/editline" "extern/icu"
"extern/icu" "extern/libtommath"
"extern/libtommath" "extern/zlib"
"extern/zlib" "src/include/firebird/impl/boost"
"src/include/firebird/impl/boost"
;; Missing licence. ;; Missing licence.
"builds/install/arch-specific/solaris" "builds/install/arch-specific/solaris"
"extern/SfIO" "extern/SfIO"
"src/msgs/templates.sql" "src/msgs/templates.sql"
;; Generated files missing sources. ;; Generated files missing sources.
"doc/Firebird-3-QuickStart.pdf" "doc/README.SecureRemotePassword.html"))))))
(string-append "doc/Firebird-" ,version
"-ReleaseNotes.pdf")
"doc/README.SecureRemotePassword.html")))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(outputs (list "debug" "out")) (outputs (list "debug" "out"))
(arguments (arguments
@ -445,9 +441,7 @@ ElasticSearch server")
(list "include/firebird/impl" (list "include/firebird/impl"
"lib/firebird/plugins/udr"))))))))) "lib/firebird/plugins/udr")))))))))
(native-inputs (native-inputs
(if (target-riscv64?) (list autoconf automake libtool))
(list autoconf automake libtool)
'()))
(inputs (inputs
(list boost (list boost
editline editline