From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5324 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Sat, 29 Dec 2012 19:34:58 -0800 Message-ID: <20121230033457.GA17954@Johns-MacBook-Pro.local> References: <20121106161118.GB50342@Johns-MacBook-Pro.local> <20121107171059.GA66573@Johns-MacBook-Pro.local> <20121107194845.GA21903@protagoras.phil.berkeley.edu> <87sj8kxr1f.fsf@eeepc.nowhere.net> <20121108171447.GD94362@Johns-MacBook-Air-2.local> <87fw4kx899.fsf@eeepc.nowhere.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1356838509 27874 80.91.229.3 (30 Dec 2012 03:35:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2012 03:35:09 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBZPM72DAKGQE4XOYVMY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Dec 30 04:35:25 2012 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ye0-f187.google.com ([209.85.213.187]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tp9gE-0000C3-90 for gtp-pandoc-discuss@m.gmane.org; Sun, 30 Dec 2012 04:35:18 +0100 Original-Received: by mail-ye0-f187.google.com with SMTP id m14sf7033579yen.24 for ; Sat, 29 Dec 2012 19:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf:date:from :to:subject:message-id:references:mime-version:in-reply-to:x-pgp-key :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=+SOuiWho4liPGV9vIuGHUa4TJ7xBunCbPuuXRFHojoU=; b=EiQC9r15PBfRGvlmDTRUvlXr7zowIhblJYAW8RE7RIlgLh1w8ccJXQHtV0+H3oHWjF ictAHRrWrnBRVhUcjlwerHxz1td+MaGmqfxHhFsEfDEUsr+mVRtQelCtLws8hOO1xZhF m/q9HPFmVucAq4JFHN+bYNrgnyP7FPDy5oe/i1IhdaVdYTaUqFhaJeH2mAKVCfFq1gX4 bGjJGueLz49ns+Xpsh+kjTbv+x43GhYooi8hg/NPMjGJPnULIfnWGr2EMNsgRN/lZ0ng RoPOP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:x-beenthere:x-received:x-received:received-spf:date:from :to:subject:message-id:references:mime-version:in-reply-to:x-pgp-key :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-google-group-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=+SOuiWho4liPGV9vIuGHUa4TJ7xBunCbPuuXRFHojoU=; b=J2WYNUEs/9PA3eiuPO0SC9eUHqfZmLeVC8EDuU9tDuYXfK+CDsP+oX4dDJoqJpW+HN mOH7jPRpyA2++MWHzkMuKw5ahy7VciieZ+O2ouuFvphUUkN4Ndi9/NoHuPTyEQIlq4yl HQi3juQ0itW7WRvcWasIqspQSkoUYxcgHvs61+2nZmUozhUA4eJrUKRp6SDAcHK/KJJY ur9CzKmf3xF8HDp+pL+D+xVZJsM9kQJx2QL47MOArHgyo1dHc0au/VdUjzsmckTK2umG Eyficm1tt36i X-Received: by 10.50.7.198 with SMTP id l6mr12645117iga.3.1356838502695; Sat, 29 Dec 2012 19:35:02 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.50.15.169 with SMTP id y9ls12000570igc.30.canary; Sat, 29 Dec 2012 19:35:01 -0800 (PST) X-Received: by 10.66.80.34 with SMTP id o2mr5295534pax.9.1356838501234; Sat, 29 Dec 2012 19:35:01 -0800 (PST) X-Received: by 10.66.80.34 with SMTP id o2mr5295533pax.9.1356838501221; Sat, 29 Dec 2012 19:35:01 -0800 (PST) Original-Received: from cm04fe.IST.Berkeley.EDU (cm04fe.IST.Berkeley.EDU. [169.229.218.145]) by gmr-mx.google.com with ESMTPS id bv9si7517853pab.1.2012.12.29.19.35.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Dec 2012 19:35:01 -0800 (PST) Received-SPF: neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.145; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm04fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1Tp9fw-0001FQ-Dc for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Sat, 29 Dec 2012 19:35:00 -0800 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id BA8DBBC787; Sat, 29 Dec 2012 22:27:16 -0500 (EST) In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 169.229.218.145 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) smtp.mail=jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Content-Disposition: inline Xref: news.gmane.org gmane.text.pandoc:5324 Archived-At: +++ Cesar Romani [Dec 22 12 10:02 ]: > On 08/11/2012 01:24 p.m., andrea rossato wrote: > > John MacFarlane writes: > > > >>> In citeproc-hs there also seems to be a bug which shows up when > building > >>> with the "embed_data_files" flags. I'm going to fix it later this > >>> afternoon. > >> > >> My present thought is that pandoc's 'library' and 'executable' flags > >> create too many problems. I'm thinking of getting rid of them, and > >> adding an embed_data_files flag to embed the data files into the binary. > >> (The added size is fairly insignificant since the binary is already so > >> large.) This would allow you to make a relocatable executable, not just > >> on Windows but on any system. And it would be fully relocatable -- > >> copy the binary anywhere and it will work, without the need of > >> supporting data files. > >> > >> This would also solve the problem with man pages noted above, as > >> we would no longer need the -library flag. > >> > >> Anyway, I was going to use citeproc-hs as a model, so let me know what > >> the problem was! > > > > The problem was just me: I didn't check if the code compiled with the > > "embed_data_files" flag before releasing 0.3.6. > > > > The bug was due to the fact that when moving to hexpat I started using > > lazy bytestrings for reading files, while embed-file uses strict > > bytestrings, hence a type error -- easily fixed. > > After compiling from the newest update from the git repository, 'make' > and 'make install' work fine, but I'm always getting the same error by > building the windows installer make-windows-installer.bat: > > Linking dist\build\pandoc\pandoc.exe ... > Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10... > : cannot satisfy -package-id pandoc-1.10-inplace > (use -v for more information) > cabal.exe: Error: some packages failed to install: > pandoc-1.10 failed during the building phase. The exception was: > ExitFailure 1 > > The error occurs by the line: > cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir= Yes, when you tried this I hadn't yet made the change discussed above. I have made it now but have not yet tested the windows installer. You may do so if you wish. Be sure to do a 'git submodule update' after 'git pull'.