all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ngillmann@runbox.com>
To: guix-devel@gnu.org
Subject: [PATCH][WIP] gnu: Add debbugs.
Date: Tue, 27 Sep 2016 20:01:05 +0000	[thread overview]
Message-ID: <87zimti03i.fsf@we.make.ritual.n0.is> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 586 bytes --]

So, here's debbugs. Disclaimer: I never ran or did setup or got in any
way in touch with debbugs on a server.

Input welcome to adjust. All I know is that we'll need a service to make
this work. I have no reasonable interest in this, so I won't go all the
way. I'd like to fix this package up as far as usage goes.
I can not test it running, but from the build/install perspective it is
done. There are structures in code which can be changed etc, but this
was done in about ~30 minutes to get some input as I thought, hey we use
debbugs.. why do we not have debbugs packaged already?


[-- Attachment #1.2: 0001-gnu-Add-debbugs.patch --]
[-- Type: text/x-patch, Size: 5968 bytes --]

From 94491aaeb2e006ef293c30b7445c81060cd96da9 Mon Sep 17 00:00:00 2001
From: ng0 <ngillmann@runbox.com>
Date: Tue, 27 Sep 2016 19:55:34 +0000
Subject: [PATCH] gnu: Add debbugs.

* gnu/packages/debbugs.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
---
 gnu/local.mk             |   1 +
 gnu/packages/debbugs.scm | 106 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)
 create mode 100644 gnu/packages/debbugs.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index c2cdf8b..ff5f4c8 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -91,6 +91,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/dav.scm				\
   %D%/packages/dc.scm				\
   %D%/packages/debug.scm			\
+  %D%/packages/debbugs.scm                      \
   %D%/packages/dejagnu.scm			\
   %D%/packages/dico.scm				\
   %D%/packages/dictionaries.scm			\
diff --git a/gnu/packages/debbugs.scm b/gnu/packages/debbugs.scm
new file mode 100644
index 0000000..37d4d01
--- /dev/null
+++ b/gnu/packages/debbugs.scm
@@ -0,0 +1,106 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages debbugs)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages links)
+  #:use-module (gnu packages perl)
+  #:use-module (gnu packages mail)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix utils)
+  #:use-module (guix build-system gnu))
+
+(define-public debbugs
+  (package
+    (name "debbugs")
+    (version "2.4.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://debian/pool/main/d/debbugs/"
+                           name "_" version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1j6zg7g2d97ihc8ydb9pl56xyh2x202vk7l3cld01xaa5ssxlxgs"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("perl" ,perl)
+       ("links" ,links)))
+    (arguments
+     `(#:tests? #f ; No checks
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure ; No configure
+           (lambda _
+             (substitute* "Makefile"
+               (("/usr") ""))
+             (setenv "DESTDIR" (assoc-ref %outputs "out"))))
+         (add-before 'build 'create-missing-dir
+           (lambda _
+             (mkdir-p (string-append (assoc-ref %outputs "out")
+                                     "/share/doc/debbugs"))))
+         (add-before 'build 'fix-it-all
+           (lambda _
+             (substitute* (list "cgi/pkgreport.cgi" "cgi/bugreport.cgi" "cgi/common.pl"
+                                "scripts/processall.in" "scripts/rebuild.in"
+                                "scripts/service.in" "scripts/db2html.in" "scripts/config.in"
+                                "scripts/html-control.in" "scripts/summary.in"
+                                "scripts/process.in" "scripts/expire.in"
+                                "scripts/receive.in" "scripts/mailsummary.in"
+                                "html/Reporting.html.in" "debbugs-service")
+               (("/usr")
+                (assoc-ref %outputs "out")))
+             (substitute* "debian/debbugsconfig"
+               (("/etc")
+                (string-append (assoc-ref %outputs "out") "/etc"))
+               (("/usr/share/debbugs/examples/")
+                (string-append (assoc-ref %outputs "out")
+                               "/share/debbugs/examples/"))
+               (("/usr/bin/links")
+                (string-append (assoc-ref %build-inputs "links")
+                               "/bin/links")))
+             (substitute* "scripts/config.in"
+               (("/etc")
+                (string-append (assoc-ref %outputs "out") "/etc"))
+               (("/var")
+                (string-append (assoc-ref %outputs "out") "/var"))
+               (("/debian")
+                (string-append (assoc-ref %outputs "out") "/debian")))))
+         (add-after 'install 'wrap-programs
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Make sure all executables in "bin" find the Perl modules
+             ;; provided by this package at runtime.
+             (let* ((out  (assoc-ref outputs "out"))
+                    (bin  (string-append out "/bin/"))
+                    (path (getenv "PERL5LIB")))
+               (for-each (lambda (file)
+                           (wrap-program file
+                             `("PERL5LIB" ":" prefix (,path))))
+                         (find-files bin "\\.*$"))
+               #t))))))
+    (home-page "http://www.debian.org/Bugs/")
+    (synopsis "Bug tracking system based on the active Debian BTS")
+    (description
+     "Debbugs is a bug tracking system which files details of bugs reported
+by users and developers.  Each bug is given a number, and is kept on file
+until it is marked as having been dealt with.  The system is mainly
+controlled by e-mail, but the bug reports can be viewed using the WWW.")
+    (license license:gpl2)))
-- 
2.10.0


[-- Attachment #1.3: Type: text/plain, Size: 24 bytes --]

-- 
              ng0

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

             reply	other threads:[~2016-09-27 20:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27 20:01 ng0 [this message]
2016-09-30 16:15 ` [PATCH][WIP] gnu: Add debbugs Ludovic Courtès
2016-09-30 17:53   ` ng0
2016-12-20 15:41     ` ng0

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zimti03i.fsf@we.make.ritual.n0.is \
    --to=ngillmann@runbox.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.