Subject: bug#27004: closed (Re: bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 22 Jun 2017 14:57:01 +0000

Your bug report

#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
27004: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27004
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#27004: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.
From: Kei Kebreau <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Thu, 22 Jun 2017 10:47:05 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] writes:

> * gnu/packages/web.scm (surfraw)[arguments]: Add new 'compress-elvi.1sr' phase.

Nice catch.

>      (build-system gnu-build-system)
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'install 'compress-elvi.1sr
> +           (lambda* (#:key outputs #:allow-other-keys)
> +             ;; The manpages of the elvis are symlinks to elvi.1sr.gz
> +             ;; but elvi.1sr does not get compress by our manpage phase.

Changed "compress" to "compressed".

> +             (let* ((out (assoc-ref %outputs "out"))
> +                    (man (string-append out "/share/man/man1")))
> +               (with-directory-excursion man
> +                 (zero? (system* "gzip" "elvi.1sr")))))))))
>      (inputs
>       `(("perl" ,perl)
>         ("perl-www-opensearch" ,perl-www-opensearch)

LGTM otherwise.
Pushed to master as e81fd90e2f8a38248b4b0c6b883305528acc9a9e.

Subject: [PATCH] * gnu: surfraw: Fix broken symlinks in manpages.
From: [email-masked]
To: [email-masked]
Cc: ng0 <[email-masked]>
Date: Sat, 20 May 2017 09:07:27 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

From: ng0 <[email-masked]>

* gnu/packages/web.scm (surfraw)[arguments]: Add new 'compress-elvi.1sr' phase.
---
 gnu/packages/web.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index bcc20bfdd..2fb3144cd 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -13,7 +13,7 @@
 ;;; Copyright © 2016 Rene Saavedra <[email-masked]>
 ;;; Copyright © 2016 Ben Woodcroft <[email-masked]>
 ;;; Copyright © 2016 Clément Lassieur <[email-masked]>
-;;; Copyright © 2016, 2017 ng0 <[email-masked]>
+;;; Copyright © 2016, 2017 ng0 <[email-masked]>
 ;;; Copyright © 2016, 2017 Arun Isaac <[email-masked]>
 ;;; Copyright © 2016 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2016 Bake Timmons <[email-masked]>
@@ -4229,6 +4229,17 @@ handling many of the web standards in use today.")
                (base32
                 "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'compress-elvi.1sr
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; The manpages of the elvis are symlinks to elvi.1sr.gz
+             ;; but elvi.1sr does not get compress by our manpage phase.
+             (let* ((out (assoc-ref %outputs "out"))
+                    (man (string-append out "/share/man/man1")))
+               (with-directory-excursion man
+                 (zero? (system* "gzip" "elvi.1sr")))))))))
     (inputs
      `(("perl" ,perl)
        ("perl-www-opensearch" ,perl-www-opensearch)
-- 
2.13.0