all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Raghav Gururajan <raghavgururajan@disroot.org>
Cc: 40291-done@debbugs.gnu.org
Subject: bug#40291: gnu: packages: java: Add libantlr3c
Date: Tue, 31 Mar 2020 22:37:31 -0400	[thread overview]
Message-ID: <87lfngvslw.fsf@gmail.com> (raw)
In-Reply-To: <87imilxgyg.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 31 Mar 2020 00:53:59 -0400")

Hi Raghav,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> Hello Raghav!
>
> You'll find my review of this patch below.  For other readers, this is
> needed in preparation of Linphone, which requires it through its
> belle-sip dependency.
>
> "Raghav Gururajan" <raghavgururajan@disroot.org> writes:
>
>> Hello Guix!
>>
>> Please find the attached patch to add "libantlr3c" package.
>>
>> Regards,
>> RG.
>>
>> From 791e2392aaa9a3202db90c1e50340c38bd001504 Mon Sep 17 00:00:00 2001
>> From: Raghav Gururajan <raghavgururajan@disroot.org>
>> Date: Sat, 28 Mar 2020 14:21:35 -0400
>> Subject: [PATCH 6/6] gnu: packages: java: Add libantlr3c
>
> This should be: "gnu: Add libantlr3c."
>
>> * gnu/packages/java.scm (libantlr3c): New variable.
>> ---
>>  gnu/packages/java.scm | 29 +++++++++++++++++++++++++++++
>>  1 file changed, 29 insertions(+)
>>
>> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
>> index 5154dc124e..400ef8795e 100644
>> --- a/gnu/packages/java.scm
>> +++ b/gnu/packages/java.scm
>> @@ -105,6 +105,35 @@
>>  ;; build framework.  We then build the more recent JDKs Icedtea 2.x and
>>  ;; Icedtea 3.x.
>>
>> +(define-public libantlr3c
>> + (package
>> +  (name "libantlr3c")
>> +   (version "3.4")
>> +   (source
>> +    (origin
>> +     (method url-fetch)
>> +     (uri
>> +      (string-append "https://www.antlr3.org/download/C/"
>> +                     name "-" version ".tar.gz"))
>> +     (sha256
>> +      (base32 "0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa"))))
>> + (build-system gnu-build-system)
>> + (arguments
>> +  `(#:configure-flags
>> +    (list
>> +     "--enable-debuginfo"
>> +     "--enable-64bit"
>
> Is this really required? The default is "no".  If enabled, it probably
> needs to be made conditional so that it is only enabled for 64 bits
> architectures.

I've studied what Debian does, and they do conditionals based on the
host.  I could find a way to achieve this with Guix and pushed as commit
f1cf62f5dc.

>
>> +     "--enable-abiflags"
>> +     "--enable-antlrdebug"
>> +     "--enable-shared"
>> +     "--enable-static"
>
> If enabled, the static library should go to its own "static" output.

As discussed in #guix, I've disabled static libraries for now.  I've
also only used the flags which are specific to antlr3c and that need to
be changed from their default values, to keep the noise level as low as
possible.

With this, the base for Linphone is now merged and we can attack the
more interesting bits.

Thanks!

Maxim

  reply	other threads:[~2020-04-01  2:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-28 18:24 [bug#40291] gnu: packages: java: Add libantlr3c Raghav Gururajan
2020-03-31  4:53 ` Maxim Cournoyer
2020-04-01  2:37   ` Maxim Cournoyer [this message]
2020-04-02  4:09 ` [bug#40291] gnu: Add libantlr3c (v2) Raghav Gururajan

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfngvslw.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=40291-done@debbugs.gnu.org \
    --cc=raghavgururajan@disroot.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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.