From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] Add surfraw (needs review). Date: Sun, 14 Aug 2016 11:21:45 +0000 Message-ID: <87shu78uk6.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYtUF-0000Vf-Iv for guix-devel@gnu.org; Sun, 14 Aug 2016 07:21:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYtUD-00079d-A3 for guix-devel@gnu.org; Sun, 14 Aug 2016 07:21:50 -0400 Received: from mithlond.libertad.in-berlin.de ([2001:67c:1400:2490::1]:52216 helo=beleriand.n0.is) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYtUC-00079Q-SQ for guix-devel@gnu.org; Sun, 14 Aug 2016 07:21:49 -0400 Received: by beleriand.n0.is (OpenSMTPD) with ESMTPSA id 4ccff2d4 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO for ; Sun, 14 Aug 2016 11:21:46 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain 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) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-surfraw.patch >From b0355420897e9a751edd4e2a43ca7415b3b29d6e Mon Sep 17 00:00:00 2001 From: ng0 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. + (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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit -- ♥Ⓐ ng0 For non-prism friendly talk find me on http://www.psyced.org --=-=-=--