all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org, Danny Milosavljevic <dannym+a@scratchpost.org>
Subject: Re: [PATCH] gnu: Add perl-db_file.
Date: Tue, 26 Jul 2016 21:01:38 +0200	[thread overview]
Message-ID: <20160726210138.6b90aef7@scratchpost.org> (raw)
In-Reply-To: <20160726183531.GA11804@solar>

Hi Andreas,

On Tue, 26 Jul 2016 20:35:31 +0200
Andreas Enge <andreas@enge.fr> wrote:

> > * gnu/packages/databases.scm (perl-db_file): New variable.  
> > The name should be "perl-db-file": we replace all special characters with "-".

The package name (not the variable name) was chosen by "guix import cpan". So it should probably be fixed in the CPAN importer, too.
 
> Here I would not rewrite the complete file, but instead use substitute* to
> replace "/usr/local/BerkeleyDB" with the assoc-ref. You will find many
> examples of this in the repository. 

Yeah, I thought about it but decided against it - there are very few options in that file, substitute* can't substitute entire lines (or only at the beginning of the line) or entire words (so it's not safe), the user is supposed to set PREFIX and HASH (it's just a coincidence we didn't have to change them) and if we did that then new versions of the package could sneak in new options we wouldn't notice but we should have changed. Better for it to fail instead of silently doing something strange.

But I will use substitute* in the next version of the patch - the unit tests should be able to fail for some of the errors.

> +  (description "DB_File provides access to Berkeley DB version 1.x.")
> 
> Maybe add "perl" somewhere in the description? "provides Perl bindings to..."
> or something like that?

OK!

  parent reply	other threads:[~2016-07-26 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-26 15:35 [PATCH] gnu: Add perl-db_file Danny Milosavljevic
     [not found] ` <20160726183531.GA11804@solar>
2016-07-26 19:01   ` Danny Milosavljevic [this message]
2016-07-26 19:05     ` [PATCH v2] " Danny Milosavljevic
2016-07-26 20:48     ` [PATCH] " Andreas Enge

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=20160726210138.6b90aef7@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=andreas@enge.fr \
    --cc=dannym+a@scratchpost.org \
    --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 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.