From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5075 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Thu, 8 Nov 2012 09:14:48 -0800 Message-ID: <20121108171447.GD94362@Johns-MacBook-Air-2.local> References: <20121105023034.GB15169@Johns-MacBook-Pro.local> <20121106161118.GB50342@Johns-MacBook-Pro.local> <20121107171059.GA66573@Johns-MacBook-Pro.local> <20121107194845.GA21903@protagoras.phil.berkeley.edu> <87sj8kxr1f.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 1352394800 29624 80.91.229.3 (8 Nov 2012 17:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2012 17:13:20 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBMGQ56CAKGQEHPX2PIY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 08 18:13:31 2012 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f58.google.com ([209.85.220.58]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWVfW-0007u7-FB for gtp-pandoc-discuss@m.gmane.org; Thu, 08 Nov 2012 18:13:30 +0100 Original-Received: by mail-pa0-f58.google.com with SMTP id fb11sf2273952pad.3 for ; Thu, 08 Nov 2012 09:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere: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=KAVt4Ys2R/+19uEOBfp7dhISZ6xK+fI9zTMiCs94eKk=; b=jQYu7CsfSBx9yg3aKBUQ6N2xFswIdDL76bnBrrN21uPGxDPdA0KJQbvlF3yjarj1Do U4nkvnOmvm59mvu5fmKIqpPDsOPZlPNBO05NiVu427Zx5/BG5a8t7XtJQbaBl5/UqpK7 sX8sjAgD085GOYYrkDCFB3B7/r56hiX6AJ2o3B+sdBC3awdKJCGCQUzXJlLivMzWGMhm 8VXIKFPCMRtOAR2By/pkggZNLVrrZtotpVOlqbv7s3rwJGmDQ2BJClshh+qSWEQfk/0O 3hOqBysqThneX4JE6nsLI7Q5hPQxhMrWt+GxHZOwQ7R8hJxj Original-Received: by 10.68.189.37 with SMTP id gf5mr2926499pbc.16.1352394800482; Thu, 08 Nov 2012 09:13:20 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.68.216.6 with SMTP id om6ls12186769pbc.7.gmail; Thu, 08 Nov 2012 09:13:20 -0800 (PST) Original-Received: by 10.66.79.40 with SMTP id g8mr2643356pax.45.1352394800187; Thu, 08 Nov 2012 09:13:20 -0800 (PST) Original-Received: by 10.66.79.40 with SMTP id g8mr2643355pax.45.1352394800178; Thu, 08 Nov 2012 09:13:20 -0800 (PST) Original-Received: from cm03fe.IST.Berkeley.EDU (cm03fe.IST.Berkeley.EDU. [169.229.218.144]) by gmr-mx.google.com with ESMTPS id r4si6231049paz.1.2012.11.08.09.13.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Nov 2012 09:13:20 -0800 (PST) Received-SPF: neutral (google.com: 169.229.218.144 is neither permitted nor denied by best guess record for domain of jgm-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org) client-ip=169.229.218.144; Original-Received: from li55-134.members.linode.com ([74.82.3.134] helo=johnmacfarlane.net) by cm03fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org) (envelope-from ) id 1TWVfK-0006Mb-Bo for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Thu, 08 Nov 2012 09:13:19 -0800 Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id DCE9121FD53; Thu, 8 Nov 2012 12:07:59 -0500 (EST) In-Reply-To: <87sj8kxr1f.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org> 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.144 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:5075 Archived-At: +++ andrea rossato [Nov 08 12 12:39 ]: > John MacFarlane writes: > > > +++ Cesar Romani [Nov 07 12 14:40 ]: > > > >> If I follow these steps on the batch file: > >> 1. cabal-dev install --disable-library-for-ghci highlighting-kate > >> 2. cabal-dev add-source pandoc-types > >> 3. cabal-dev install --reinstall --force-reinstalls pandoc-types > >> 4. cabal-dev install --flags="embed_data_files" citeproc-hs > >> 5. cabal-dev install --flags="executable -library blaze_html_0_5" > >> --datasubdir= > >> ... > >> > >> I always get the same error on the 5. line: > >> > >> [...] > >> 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 > > > > Ah. I see what is going on. > > > > To build make-pandoc-man-pages, we need the library installed. > > But we disabled that with the '-library' flag, in order to make > > the executable relocatable. > > > > Well, the man pages aren't really needed for Windows anyway, > > so maybe I'll add a cabal flag that turns off 'make-pandoc-man-pages'; > > I can then use this in the windows package creation script. > > > > Thanks. > > 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! John