mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 22:26:40 -05:00
gnu: bazaar: Obsolete with breezy.
* gnu/packages/version-control.scm (bazaar): Deprecate package. * guix/build/bzr.scm (bzr-fetch): Adjust to use breezy; delete trailing #t. * guix/bzr-download.scm (bzr-package): Replace bazaar by breezy.
This commit is contained in:
parent
dc71b4f1c6
commit
be672f1f7f
3 changed files with 9 additions and 46 deletions
|
@ -139,44 +139,6 @@ (define-module (gnu packages version-control)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (srfi srfi-1))
|
#:use-module (srfi srfi-1))
|
||||||
|
|
||||||
(define-public bazaar
|
|
||||||
(package
|
|
||||||
(name "bazaar")
|
|
||||||
(version "2.7.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (string-append "https://launchpad.net/bzr/"
|
|
||||||
(version-major+minor version) "/" version
|
|
||||||
"/+download/bzr-" version ".tar.gz"))
|
|
||||||
(patches (search-patches "bazaar-CVE-2017-14176.patch"))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
|
|
||||||
(build-system python-build-system)
|
|
||||||
(inputs
|
|
||||||
;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
|
|
||||||
;; require Zsh.
|
|
||||||
`(("gettext" ,gettext-minimal)))
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #f ; no test target
|
|
||||||
#:python ,python-2 ; Python 3 apparently not yet supported, see
|
|
||||||
; https://answers.launchpad.net/bzr/+question/229048
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'fix-mandir
|
|
||||||
(lambda _
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("man/man1") "share/man/man1"))
|
|
||||||
#t)))))
|
|
||||||
(home-page "https://gnu.org/software/bazaar")
|
|
||||||
(synopsis "Version control system supporting both distributed and centralized workflows")
|
|
||||||
(description
|
|
||||||
"GNU Bazaar is a version control system that allows you to record
|
|
||||||
changes to project files over time. It supports both a distributed workflow
|
|
||||||
as well as the classic centralized workflow.")
|
|
||||||
(license license:gpl2+)))
|
|
||||||
|
|
||||||
(define-public breezy
|
(define-public breezy
|
||||||
(package
|
(package
|
||||||
(name "breezy")
|
(name "breezy")
|
||||||
|
@ -248,6 +210,9 @@ (define-public breezy
|
||||||
Python 3.3 and later, rather than on Python 2.")
|
Python 3.3 and later, rather than on Python 2.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
|
(define-public bazaar
|
||||||
|
(deprecated-package "bazaar" breezy))
|
||||||
|
|
||||||
(define git-cross-configure-flags
|
(define git-cross-configure-flags
|
||||||
'("ac_cv_fread_reads_directories=yes"
|
'("ac_cv_fread_reads_directories=yes"
|
||||||
"ac_cv_snprintf_returns_bogus=no"
|
"ac_cv_snprintf_returns_bogus=no"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2018, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -28,7 +28,7 @@ (define-module (guix build bzr)
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(define* (bzr-fetch url revision directory
|
(define* (bzr-fetch url revision directory
|
||||||
#:key (bzr-command "bzr"))
|
#:key (bzr-command "brz"))
|
||||||
"Fetch REVISION from URL into DIRECTORY. REVISION must be a valid Bazaar
|
"Fetch REVISION from URL into DIRECTORY. REVISION must be a valid Bazaar
|
||||||
revision identifier. Return #t on success, else throw an exception."
|
revision identifier. Return #t on success, else throw an exception."
|
||||||
;; Do not attempt to write .bzr.log to $HOME, which doesn't exist.
|
;; Do not attempt to write .bzr.log to $HOME, which doesn't exist.
|
||||||
|
@ -37,8 +37,6 @@ (define* (bzr-fetch url revision directory
|
||||||
(invoke bzr-command "-Ossl.cert_reqs=none" "checkout"
|
(invoke bzr-command "-Ossl.cert_reqs=none" "checkout"
|
||||||
"--lightweight" "-r" revision url directory)
|
"--lightweight" "-r" revision url directory)
|
||||||
(with-directory-excursion directory
|
(with-directory-excursion directory
|
||||||
(begin
|
(delete-file-recursively ".bzr")))
|
||||||
(delete-file-recursively ".bzr")
|
|
||||||
#t)))
|
|
||||||
|
|
||||||
;;; bzr.scm ends here
|
;;; bzr.scm ends here
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2017 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2017, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -48,7 +48,7 @@ (define-record-type* <bzr-reference>
|
||||||
(define (bzr-package)
|
(define (bzr-package)
|
||||||
"Return the default Bazaar package."
|
"Return the default Bazaar package."
|
||||||
(let ((distro (resolve-interface '(gnu packages version-control))))
|
(let ((distro (resolve-interface '(gnu packages version-control))))
|
||||||
(module-ref distro 'bazaar)))
|
(module-ref distro 'breezy)))
|
||||||
|
|
||||||
(define* (bzr-fetch ref hash-algo hash
|
(define* (bzr-fetch ref hash-algo hash
|
||||||
#:optional name
|
#:optional name
|
||||||
|
@ -64,7 +64,7 @@ (define build
|
||||||
(use-modules (guix build bzr))
|
(use-modules (guix build bzr))
|
||||||
(bzr-fetch
|
(bzr-fetch
|
||||||
(getenv "bzr url") (getenv "bzr reference") #$output
|
(getenv "bzr url") (getenv "bzr reference") #$output
|
||||||
#:bzr-command (string-append #+bzr "/bin/bzr")))))
|
#:bzr-command (string-append #+bzr "/bin/brz")))))
|
||||||
|
|
||||||
(mlet %store-monad ((guile (package->derivation guile system)))
|
(mlet %store-monad ((guile (package->derivation guile system)))
|
||||||
(gexp->derivation (or name "bzr-branch") build
|
(gexp->derivation (or name "bzr-branch") build
|
||||||
|
|
Loading…
Reference in a new issue