From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5429 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Thu, 10 Jan 2013 09:26:29 -0800 Message-ID: <20130110172629.GB67105@Johns-MacBook-Pro.local> References: <20121107194845.GA21903@protagoras.phil.berkeley.edu> <87sj8kxr1f.fsf@eeepc.nowhere.net> <20121108171447.GD94362@Johns-MacBook-Air-2.local> <87fw4kx899.fsf@eeepc.nowhere.net> <20121230033457.GA17954@Johns-MacBook-Pro.local> <20130102235536.GA19032@protagoras.phil.berkeley.edu> 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 1357838793 29875 80.91.229.3 (10 Jan 2013 17:26:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 17:26:33 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBSHTXODQKGQE724MOGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 10 18:26:50 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ye0-f192.google.com ([209.85.213.192]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtLtx-0000fU-TJ for gtp-pandoc-discuss@m.gmane.org; Thu, 10 Jan 2013 18:26:50 +0100 Original-Received: by mail-ye0-f192.google.com with SMTP id l2sf448884yen.29 for ; Thu, 10 Jan 2013 09:26:33 -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=BqgkrknI2BBTYCupg5y/VHIB9Q8+TKcHS+qCvg76GeQ=; b=KOWmFrku5+fGzH/q3V4NfWt6BaEB9VoVOGaDFq18rpi4StuliAfBilsM+EwC013euc kp6wcWv3MBE9T4NqSinSMnS/bbhoGslGN7JXOogDR8UeNqOPtmG7FqXxpIOeyL0rTyXp PhnAs4xHjqy3OvuuPmiHWuNaEDuImc70PJNFun9nqLy37W/UWhbDAB6nObqB4DFEeOJO 1IvvdJpCVbsYI6y94BJt3VSEowVNCXUxu+TJ0r5n9bLGb8wCWEBZRVk2K7loKlRqsTfC 0ddsO 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=BqgkrknI2BBTYCupg5y/VHIB9Q8+TKcHS+qCvg76GeQ=; b=kWl3AJ0Wteh93HHFHcTwO6KNyzO7QG+53bRgbGdSbwlrzIGg6QTT4AERh4gITwIIvV 1K6oDk/H3DzSPGGq8FqIEM6uouBFgqKooytj+SzsG0ir9dl6iZsrMU4EbcZMVltSiVac 4ejz1LZnBkIQ4COb0mJiOCwRqxxNbXiViXj8cEX7dTDE2len3loTKUEcs3C+vqlFXUIh GSuZS29K03IsBsWpXPcv1GEVUbcj+QDQ6d91a1l6MBJgNEHNPdXRhNgcsmif1p4BARoB 3b+ExydG2pnb X-Received: by 10.182.136.71 with SMTP id py7mr1421954obb.7.1357838793474; Thu, 10 Jan 2013 09:26:33 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.98.10 with SMTP id ee10ls512688obb.47.gmail; Thu, 10 Jan 2013 09:26:32 -0800 (PST) X-Received: by 10.66.90.67 with SMTP id bu3mr12547863pab.45.1357838791973; Thu, 10 Jan 2013 09:26:31 -0800 (PST) X-Received: by 10.66.90.67 with SMTP id bu3mr12547862pab.45.1357838791960; Thu, 10 Jan 2013 09:26:31 -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 uz6si528408pbc.0.2013.01.10.09.26.31 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 10 Jan 2013 09:26:31 -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 1TtLte-0006HJ-Ec for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 10 Jan 2013 09:26:31 -0800 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 50072BBA48; Thu, 10 Jan 2013 12:18:15 -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:5429 Archived-At: Yes, it should be. The code only uses the embedded data if the data file is not found under the specified data-dir. I've tested it on Windows and it seems to work. Maybe you could say more about the nature of the "failure" you're seeing. (By the way, if you specify --reference-doc=PATH, it will use PATH, not data-dir\PATH. Could that be the confusion?) +++ Huashan Chen [Jan 10 13 22:48 ]: > Hi John, > > I am wondering if it's possible to re-assign another data directory > with `--data-dir` parameter to pandoc compiled with `embed_data_files` > flag? I ask because all the following commands failed under Windows. > > >pandoc readme -o readme.docx --reference-docx=ref.docx --data-dir=d:\pandoc\data\ > >pandoc readme -o readme.docx --reference-docx=ref.docx --data-dir=data > >pandoc readme -o readme.docx --reference-docx=ref.docx --data-dir=.\data\ > > > Best, > > Chen, Huashan > > > On Thu, Jan 3, 2013 at 7:55 AM, John MacFarlane wrote: > > +++ Cesar Romani [Jan 02 13 15:41 ]: > >> On 29/12/2012 10:34 p.m., John MacFarlane wrote: > >> > +++ 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'. > >> > >> I did it, but on 'make' I get: > >> $ make > >> cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build > >> Configuring pandoc-1.10... > >> setup.exe: At least the following dependencies are missing: > >> Diff ==0.2.* > >> Resolving dependencies... > >> make: *** [all] Error 1 > >> > >> Then I did 'cabal install Diff' but I get the same result. > > > > Well, the message is telling you that you don't have the Diff 0.2 > > library, which is a dependency of pandoc. Try 'make prep' to > > install all the dependencies. > > > > ('cabal install' won't help anyway, since the Makefile is using > > a cabal-dev sandbox. You could do 'cabal update && cabal-dev install'). > > > > -- > > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >