From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32341 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Pryor Newsgroups: gmane.text.pandoc Subject: Re: Custom cabal builds for pandoc 3.*? Date: Wed, 15 Mar 2023 10:43:17 -0700 (PDT) Message-ID: References: <76e8af61-df27-472a-986d-030a883998fan@googlegroups.com> <2242AE1C-C331-4335-8764-5D16C0F925D9@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_464_297522301.1678902197186" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23058"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCG4J36OQ4OBBNUHZCQAMGQE5QSUQBQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Mar 15 18:43:22 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qt1-f192.google.com ([209.85.160.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pcV9m-0005nL-42 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 15 Mar 2023 18:43:22 +0100 Original-Received: by mail-qt1-f192.google.com with SMTP id p19-20020ac87413000000b003d2753047cbsf1075996qtq.19 for ; Wed, 15 Mar 2023 10:43:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678902201; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=J0/DmbOfmdIaz2xa2hSQPXEjFAvYIHW2lWunCmZ1iQk=; b=jaRUICUDSVC1hQ5Dff4YCPrxbOCaEY6v+p6djd0lSIOW6DF/ej736b+v35MX8CuuCm b80dec+ty6PLGnsSfGJkmO3coaj8KiXJ1X3o1DFi9f6Esqmu8YxDWQXQa4lYtTJgVSe6 /BBnr6at6/di66r8G4D4abUtYOPzepB9cIZNST/jXI7Y8fleqdwK0EB+bJLLzL0pwwBe p5tQYv3Hxx8bJkTqk9/w9bQw6ctVHvins3nQHeQhS2HOeDr0gTxyt9qf0EwjzwUtiZ04 OVSV+VLQwcvy8Vhb2z/854c0Fe+uO5cHfFxwC4D7/tL7lul9az2GfzRZmXBwoJeelGvr j5Eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678902201; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=J0/DmbOfmdIaz2xa2hSQPXEjFAvYIHW2lWunCmZ1iQk=; b=aaoGDdIqvpD+AiQoVnwWdPETTCrxWIIj+uE5RI61N5H0xIFP/+zx4OttAuRkSJd0mC G3UZJls89o6/hkeVyQ8HWVO5WIa62bW8suG0io0GD0aSMQjVUMa35zMQLOpzsIlv4MEU /AGQGLQR/ygtq6tdgvElfCvyQL4+halkHAIZOiJI9wQHwliXb+9sEVYZK1LLseF6GBnX rnbDyZhkLTN9oXW/e2iAhmveNASXrEeSIaOxESaS2Rv9snK4kRdtRESHyUNF9ukRfyYn F+jNYcuFa+1mGJVX8HNxHt1RDt4Jjf9g78bX5hwK9qA6r23OKj4Wyc7u+32mgNh1S/6t 7hvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678902201; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=J0/DmbOfmdIaz2xa2hSQPXEjFAvYIHW2lWunCmZ1iQk=; b=oM7mK4GzghDcQ9t0KDdvTcAmrski0E01P3UB7p9lkkL8OWQXpRS8ZymD9mCOtgpMRz Ol02hXyhaf57OIXoXnZOwEvI0wFxNHk4PDkJmplGmfS656F3Ezmeq/sAEEl3iO8Da7la DpfcG/764tUTPEQ275AXHJ/07lRK8Lq6qI8X7aNwuxOqi9a/t4pSZcnOLrzI40pyoj03 saJlpVdhsHM62BuSid4Et5AB5l+UEMyRl1lmtVrdsPH7CtjisvCp+DV7JWt1twYtd7vG P3UYOQsy20P7bWYrRuMxcJZbOCp25peG0kv86m883cyHn5bFxklquDhO2L48oGAu6Htv Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVrNeXaEdvWhT4l57Uh5/QNeJV6ibDwtlJMSF0/9txNnSeBttKn 6g5Cx2B7sYRriEwSxAayojw= X-Google-Smtp-Source: AK7set+T4Zaip1dNVBnO5VMU0QwJhwKdmT+uN58oxl8hVqLMR0lWwlEhC+/rJ8TcKlY7W17PArTX5A== X-Received: by 2002:a05:620a:15a4:b0:743:d508:97ae with SMTP id f4-20020a05620a15a400b00743d50897aemr4325725qkk.11.1678902201080; Wed, 15 Mar 2023 10:43:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6214:528d:b0:56e:a8ad:64c2 with SMTP id kj13-20020a056214528d00b0056ea8ad64c2ls15040861qvb.1.-pod-prod-gmail; Wed, 15 Mar 2023 10:43:18 -0700 (PDT) X-Received: by 2002:ad4:4ae3:0:b0:56e:a203:5d1f with SMTP id cp3-20020ad44ae3000000b0056ea2035d1fmr4108725qvb.5.1678902197984; Wed, 15 Mar 2023 10:43:17 -0700 (PDT) In-Reply-To: <2242AE1C-C331-4335-8764-5D16C0F925D9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: jim.pryor.nyu-Re5JQEeQqe8AvxtiuMwx3w@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: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32341 Archived-At: ------=_Part_464_297522301.1678902197186 Content-Type: multipart/alternative; boundary="----=_Part_465_1847780113.1678902197186" ------=_Part_465_1847780113.1678902197186 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the quick reply. It looks like I can just cd into the=20 `pandoc-cli` subdirectory and do the configure and build from there.=20 Doesn't seem to be necessary to first do the build (with or without=20 install) from the toplevel directory. Not sure how to confirm that the=20 library was built with the `embed_data_files` option though. Also some=20 tentativeness in these reports because I was experimenting a lot and not=20 100% sure I'm right that this is what works in a clean download of the=20 source repo. Bummer that ongoing development of Pandoc is Lua 5.4-only. I've got other= =20 dependencies on Lua 5.3, and don't want to reconfigure my Lua-thinking and= =20 libraries yet. I realize that Pandoc bundles its own version of the engine,= =20 so it's possible to have a different version Lua CLI installed. Reluctance= =20 is just due to my cognitive limits. Suppose I'll stick with Pandoc 2.19.2= =20 for the time being. On Wednesday, March 15, 2023 at 12:31:17=E2=80=AFPM UTC-4 John MacFarlane w= rote: > > > > On Mar 15, 2023, at 9:11 AM, Jim Pryor wrote: > >=20 > > I used to follow the instructions at < > https://pandoc.org/installing.html#custom-cabal-method> to build pandoc= =20 > with the cabal configure `--flags=3D"embed_data_files lua53"`. > >=20 > > Since `git pull`ing to the pandoc 3.* source tree, this no longer build= s=20 > an executable. I see from the Pandoc 3.0 announcement on this list that t= he=20 > packaging has split in some ways. > >=20 > > Is it still possible to build all the components with custom cabal=20 > configure flags? How do I go about it? Can I just cd to the `pandoc-cli`= =20 > subdirectory and do the following there: > >=20 > > ``` > > cabal update > > cabal install --only-dependencies > >=20 > > cabal configure --prefix=3D/usr/local --flags=3D"embed_data_files lua53= " > >=20 > > cabal build > >=20 > >=20 > ./dist-newstyle/build/x86_64-osx/ghc-*/pandoc-*/x/pandoc/build/pandoc/pan= doc=20 > --version > >=20 > > ``` > > > Something like this should work, but there have been changes in both=20 > pandoc and cabal since the instructions were composed, so they may need= =20 > some adjusting. Try it? > > You'll want to add lua and server to your flags if you want the executabl= e=20 > to have Lua and server support, respectively. lua53 is no longer availabl= e,=20 > sorry. > > >=20 > > Or do I have to first run those steps in the top-level directory, then= =20 > do `cabal install`, then repeat them in the `pandoc-cli` subdirectory? Wh= en=20 > I try to only do the steps in the `pandoc-cli` subdirectory, it seems lik= e=20 > a binary version of the main `pandoc` library is being downloaded, rather= =20 > than one built using my custom configure flags. > > cabal never downloads binaries, only source. If it's happening quickly, i= t=20 > could be because your global cabal store already contains a built version= =20 > of the library. > > > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/acdc69b2-c368-45e8-9154-23c280d09cdbn%40googlegroups.com. ------=_Part_465_1847780113.1678902197186 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the quick reply. It looks like I can just cd into the `pandoc-cl= i` subdirectory and do the configure and build from there. Doesn't seem to = be necessary to first do the build (with or without install) from the tople= vel directory. Not sure how to confirm that the library was built with the = `embed_data_files` option though. Also some tentativeness in these reports = because I was experimenting a lot and not 100% sure I'm right that this is = what works in a clean download of the source repo.

Bum= mer that ongoing development of Pandoc is Lua 5.4-only. I've got other depe= ndencies on Lua 5.3, and don't want to reconfigure my Lua-thinking and libr= aries yet. I realize that Pandoc bundles its own version of the engine, so = it's possible to have a different version Lua CLI installed. Reluctance is = just due to my cognitive limits. Suppose I'll stick with Pandoc 2.19.2 for = the time being.

On Wednesday, March 15, 2023 at 12:31:17=E2= =80=AFPM UTC-4 John MacFarlane wrote:


> On Mar 15, 2023, at 9:11 AM, Jim Pryor <jim.pr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> I used to follow the instructions at <https://pando= c.org/installing.html#custom-cabal-method> to build pandoc with the = cabal configure `--flags=3D"embed_data_files lua53"`.
>=20
> Since `git pull`ing to the pandoc 3.* source tree, this no longer = builds an executable. I see from the Pandoc 3.0 announcement on this list t= hat the packaging has split in some ways.
>=20
> Is it still possible to build all the components with custom cabal= configure flags? How do I go about it? Can I just cd to the `pandoc-cli` s= ubdirectory and do the following there:
>=20
> ```
> cabal update
> cabal install --only-dependencies
>=20
> cabal configure --prefix=3D/usr/local --flags=3D"embed_data_f= iles lua53"
>=20
> cabal build
>=20
> ./dist-newstyle/build/x86_64-osx/ghc-*/pandoc-*/x/pandoc/build/pan= doc/pandoc --version
>=20
> ```


Something like this should work, but there have been changes in both pa= ndoc and cabal since the instructions were composed, so they may need some = adjusting. Try it?

You'll want to add lua and server to your flags if you want the exe= cutable to have Lua and server support, respectively. lua53 is no longer a= vailable, sorry.

>=20
> Or do I have to first run those steps in the top-level directory, = then do `cabal install`, then repeat them in the `pandoc-cli` subdirectory?= When I try to only do the steps in the `pandoc-cli` subdirectory, it seems= like a binary version of the main `pandoc` library is being downloaded, ra= ther than one built using my custom configure flags.

cabal never downloads binaries, only source. If it's happening quic= kly, it could be because your global cabal store already contains a built v= ersion of the library.


--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/acdc69b2-c368-45e8-9154-23c280d09cdbn%40googlegroups.= com.
------=_Part_465_1847780113.1678902197186-- ------=_Part_464_297522301.1678902197186--