From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCHES] Various
Date: Thu, 26 Mar 2015 22:04:07 +0100 [thread overview]
Message-ID: <87r3sbh3nc.fsf@taylan.uni.cx> (raw)
In-Reply-To: <87r3scdjcz.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 26 Mar 2015 13:38:20 +0100")
[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]
ludo@gnu.org (Ludovic Courtès) writes:
>>> However, this package recipe explicitly adds Autoconf, Automake, and
>>> Libtool as inputs, plus it runs ‘autoreconf’. So I suspect this is
>>> because upstream’s tarball isn’t self-contained, right?
>>>
>>> Ludo’.
>>
>> Oh, I did that because otherwise I get the following at start of the
>> build phase:
>>
>> (CDPATH="${ZSH_VERSION+.}:" && cd . && /gnu/store/nq6idcqwqc9x6z7g9jxq11a58jqx6w8x-bash-4.3.33/bin/bash /tmp/nix-build-leptonica-1.71.drv-1/leptonica-1.71/config/missing --run autoheader)
>> aclocal.m4:17: warning: this file was generated for autoconf 2.68.
>
> This may be because a .ac, .am, or .m4 file is newer than ‘configure’,
> for instance. Does any of these get patched, which would explain the
> newer mtime? Can it be worked around by changing that file’s mtime
> using ‘set-file-time’ or similar?
I get the warning even if I just run "./configure && make", outside of
Guix. The reason seems to be config/config.h.in being old; touching it
suppresses the warning, and the build still succeeds. Is it fine this
way?
Updated patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0004-gnu-Add-leptonica.patch --]
[-- Type: text/x-diff, Size: 3418 bytes --]
From 5d6d90da79d5eac8568d3c868979866965912154 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Taylan=20Ulrich=20Bay=C4=B1rl=C4=B1/Kammer?=
<taylanbayirli@gmail.com>
Date: Sat, 21 Mar 2015 19:41:54 +0100
Subject: [PATCH 4/8] gnu: Add leptonica.
* gnu/packages/image.scm (leptonica): New variable.
---
gnu/packages/image.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 9c7e504..15f4339 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -24,6 +24,7 @@
(define-module (gnu packages image)
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
+ #:use-module (gnu packages autotools)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression)
#:use-module (gnu packages doxygen)
@@ -164,6 +165,65 @@ the W3C's XML-based Scaleable Vector Graphic (SVG) format.")
;; 'COPYING' is the GPLv2, but file headers say LGPLv2.0+.
(license license:lgpl2.0+)))
+(define-public leptonica
+ (package
+ (name "leptonica")
+ (version "1.71")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.leptonica.com/source/leptonica-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0j5qgrff6im5n9waflbi7w643q1p6mahyf2z35gb4vj9h5p76pfc"))
+ (modules '((guix build utils)))
+ ;; zlib and openjpg should be under Libs, not Libs.private. See:
+ ;; https://code.google.com/p/tesseract-ocr/issues/detail?id=1436
+ (snippet
+ '(substitute* "lept.pc.in"
+ (("^(Libs\\.private: .*)@ZLIB_LIBS@(.*)" all pre post)
+ (string-append pre post))
+ (("^(Libs\\.private: .*)@JPEG_LIBS@(.*)" all pre post)
+ (string-append pre post))
+ (("^Libs: .*" all)
+ (string-append all " @ZLIB_LIBS@ @JPEG_LIBS@"))))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("gnuplot" ,gnuplot))) ;needed for test suite
+ (inputs
+ `(("giflib" ,giflib)
+ ("libjpeg" ,libjpeg)
+ ("libpng" ,libpng)
+ ("libtiff" ,libtiff)
+ ("libwebp" ,libwebp)))
+ (propagated-inputs
+ `(("openjpeg" ,openjpeg)
+ ("zlib" ,zlib)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ ;; Prevent make from trying to regenerate config.h.in.
+ (add-after
+ unpack touch-config-h-in
+ (lambda _
+ (zero? (system* "touch" "config/config.h.in"))))
+ (add-after
+ unpack patch-reg-wrapper
+ (lambda _
+ (substitute* "prog/reg_wrapper.sh"
+ ((" /bin/sh ")
+ (string-append " " (which "sh") " "))))))))
+ (home-page "http://www.leptonica.com/")
+ (synopsis "Library and tools for image processing and analysis")
+ (description
+ "Leptonica is a C library and set of command-line tools for efficient
+image processing and image analysis operations. It supports rasterop, affine
+transformations, binary and grayscale morphology, rank order, and convolution,
+seedfill and connected components, image transformations combining changes in
+scale and pixel depth, and pixelwise masking, blending, enhancement, and
+arithmetic ops.")
+ (license license:bsd-2)))
+
(define-public jbig2dec
(package
(name "jbig2dec")
--
2.2.1
next prev parent reply other threads:[~2015-03-26 21:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-22 11:52 [PATCHES] Various Taylan Ulrich Bayırlı/Kammer
2015-03-25 11:07 ` Taylan Ulrich Bayırlı/Kammer
2015-03-25 16:47 ` Ludovic Courtès
2015-03-25 19:36 ` Taylan Ulrich Bayırlı/Kammer
2015-03-25 20:44 ` Ludovic Courtès
2015-03-25 21:22 ` Taylan Ulrich Bayırlı/Kammer
2015-03-26 12:38 ` Ludovic Courtès
2015-03-26 21:04 ` Taylan Ulrich Bayırlı/Kammer [this message]
2015-03-26 21:08 ` Ludovic Courtès
2015-03-26 21:16 ` Taylan Ulrich Bayırlı/Kammer
2015-03-28 12:28 ` Taylan Ulrich Bayırlı/Kammer
2015-03-29 13:12 ` Ludovic Courtès
2015-03-25 16:50 ` Ludovic Courtès
2015-03-25 19:44 ` Taylan Ulrich Bayırlı/Kammer
-- strict thread matches above, loose matches on Subject: below --
2015-03-07 18:24 Taylan Ulrich Bayırlı/Kammer
2015-03-09 9:14 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3sbh3nc.fsf@taylan.uni.cx \
--to=taylanbayirli@gmail.com \
--cc=guix-devel@gnu.org \
--cc=ludo@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).