unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: Add Mlucas.
Date: Sat, 7 Nov 2015 20:47:28 +0800	[thread overview]
Message-ID: <CADrxHD9Rj0JCU=rq5rgPkuJy5OUd=9i0ijmXTPZEUjZwPBS-Jw@mail.gmail.com> (raw)
In-Reply-To: <20151107042728.GA9731@debian.upm.edu.my>

Hi,

Sorry, the following reply is written in a spaghetti-style (lots of
gotos) , please be patient :)

On 07/11/2015, Andreas Enge <andreas@enge.fr> wrote:
> Hello!
>
> I must admit I was put off looking at this patch by the addition of the
> flags system, of which I do not understand the justification. Basically,
> it seems to be an additional layer on top of what we already have in
> our different build systems. We have #:configure-flags and #:make-flags,
> and in extreme cases we can set environment variables such as CPPFLAGS
> and so on in an additional phase. Commonly used flags can be added to the
> build systems once and for all, for others, my impression is that we
> already
> have the mechanisms for doing it on a per package basis. Which problem does
> this part of the patch solve?
>
The idea comes from dpkg-buildflags
<http://manpages.debian.org/cgi-bin/man.cgi?query=dpkg-buildflags&apropos=0&sektion=0&manpath=Debian+unstable+sid&format=html&locale=en>.
It exports a selectable sets of build flags which are useful for
almost all packages. For instance, stackprotectorstrong protects your
program from stack smashing. For more detailed explanation, you can
see <https://lists.gnu.org/archive/html/guix-devel/2015-10/msg00079.html>.
I am adding this because I think Guix doesn't have a way to retrieve a
sets of common build flags. You are right that, currently, this only
works for gnu build system, are you proposing this should be in
`guix/build-system/gnu.scm` instead since this is
gnu-build-system-specific? I think "Commonly used flags can be added
to the build systems once and for all" doesn't always work. Some flags
will break the build for some packages, and the easiest fix is to turn
it off. So there should be a way to select the right subset of flags
that works for you instead of having a list of essential build flags.
The aim is to make it easier for packagers to retrieve the right
subset of useful (e.g. security-related) flags that works, *hopefully*
making the binary more secure.

> On Mon, Oct 26, 2015 at 12:34:59PM +0100, Paul van der Walt wrote:
>> > * gnu/packages/mlucas.scm: New file.
>> I'm not an expert, and i'm not 100% sure on this so it's an honest
>> question, but does this application really deserve a new package file?
>> Shouldn't mlucas perhaps be added to maths.scm?
>
> It should go to algebra.scm, which regroups tools of symbolic, exact
> computation (whereas maths.scm contains tools for numerical computation).
>
Mlucas does numerical computation (it makes use of FFT to find
Mersenne primes!), not symbolic, so it should be fine staying in
`maths.scm`.

Thanks for the review!

> Andreas
>
>
Cheers,
Alex

  reply	other threads:[~2015-11-07 12:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-25  6:12 [PATCH 2/2] gnu: Add Mlucas Alex Vong
2015-10-26 11:34 ` Paul van der Walt
2015-10-26 11:49   ` Alex Vong
2015-10-26 11:56     ` Paul van der Walt
2015-11-05 21:57       ` Ludovic Courtès
2015-11-07  4:27   ` Andreas Enge
2015-11-07 12:47     ` Alex Vong [this message]
2015-11-05 22:08 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2015-10-31 13:56 Alex Vong

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='CADrxHD9Rj0JCU=rq5rgPkuJy5OUd=9i0ijmXTPZEUjZwPBS-Jw@mail.gmail.com' \
    --to=alexvong1995@gmail.com \
    --cc=andreas@enge.fr \
    --cc=guix-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).