all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: guix-devel@gnu.org
Subject: Re: [PATCH] Add surfraw (needs review).
Date: Sun, 14 Aug 2016 11:43:06 +0000	[thread overview]
Message-ID: <87popb8tkl.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <87shu78uk6.fsf@we.make.ritual.n0.is>

ng0 <ng0@we.make.ritual.n0.is> writes:

> Hi,
>
> shouldn't packages built by guix end up with guixbuilder:guixbuilder and
> not root:root for owner and group? Surfraw ends up as root:root in
> store. I think this might be the reason why it does not find its global
> config.
>
> ng0@shadowwalker /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/bin$ ./surfraw -elvi ddg asdf
> surfraw ERROR: couldn't find global config in /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/etc/xdg/surfraw/conf or $XDG_CONFIG_DIRS
> ng0@shadowwalker /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/bin$ ./surfraw --help
> surfraw ERROR: couldn't find global config in /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/etc/xdg/surfraw/conf or $XDG_CONFIG_DIRS
> ng0@shadowwalker /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/bin$ ./surfraw --version
> surfraw ERROR: couldn't find global config in /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/etc/xdg/surfraw/conf or $XDG_CONFIG_DIRS
> ng0@shadowwalker /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/bin$ ./surfraw -v
> surfraw ERROR: couldn't find global config in /gnu/store/cgjb171snxlm1fm5i2qjkj4id1mx2q8f-surfraw-2.2.9/etc/xdg/surfraw/conf or $XDG_CONFIG_DIRS
>
> I also asked upstream if there have been enough commits for a new
> release (most recent one was in December 2013)
>
> From b0355420897e9a751edd4e2a43ca7415b3b29d6e Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sun, 14 Aug 2016 10:33:18 +0000
> Subject: [PATCH] gnu: Add surfraw.
>
> * gnu/packages/web.scm (surfraw): New variable.
> ---
>  gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 9106295..2b35d27 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -3389,3 +3389,30 @@ playback of HTTP request/response traces.")
>  can easily be invoked on a single file.  Your partner can access the file with
>  tools they trust (e.g. wget).")
>      (license l:gpl2+)))
> +
> +(define-public surfraw
> +  (package
> +    (name "surfraw")
> +    (version "2.2.9")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://surfraw.alioth.debian.org/dist/"
> +                                  name "-" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "1fy4ph5h9kp0jzj1m6pfylxnnmgdk0mmdppw76z9jhna4jndk5xa"))))
> +    (build-system gnu-build-system)
> +    (arguments
> +     `(#:configure-flags
> +       ;; The opensearch elvis depends on the perl libraries WWW::OpenSearch,
> +       ;; HTML::Parser and LWP (libwww-perl). We do not have all of lwp packaged,
> +       ;; therefore disable building opensearch as it is not essential to surfraw.

This is wrong, it seems like I just need to package WWW::OpenSearch.

> +       (list "--disable-opensearch")))
> +    (inputs
> +     `(("perl" ,perl)))
> +    (synopsis "Unix command line interface to the www")
> +    (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
> +provides a unix command line interface to a variety of popular www search engines
> +and similar services.")
> +    (home-page "https://surfraw.alioth.debian.org/")
> +    (license l:public-domain)))
> -- 
> 2.9.2
>
>
> -- 
> ♥Ⓐ  ng0
> For non-prism friendly talk find me on http://www.psyced.org

-- 
♥Ⓐ  ng0
For non-prism friendly talk find me on http://www.psyced.org

      reply	other threads:[~2016-08-14 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-14 11:21 [PATCH] Add surfraw (needs review) ng0
2016-08-14 11:43 ` ng0 [this message]

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=87popb8tkl.fsf@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --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.