All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Serafini <nicolas.serafini@sensefly.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] exiv2: new package
Date: Thu, 6 Nov 2014 15:18:04 +0100	[thread overview]
Message-ID: <545B831C.6050908@sensefly.com> (raw)
In-Reply-To: <20141106083050.60e4d614@free-electrons.com>

Hi Thomas,



Le 06. 11. 14 08:30, Thomas Petazzoni a ?crit :
> Dear Nicolas Serafini,
>
> Thanks for your contribution. See a few comments below.
>
> On Wed, 5 Nov 2014 15:30:29 +0100, Nicolas Serafini wrote:
>
>> diff --git a/package/exiv2/Config.in b/package/exiv2/Config.in
>> new file mode 100644
>> index 0000000..d03447b
>> --- /dev/null
>> +++ b/package/exiv2/Config.in
>> @@ -0,0 +1,33 @@
>> +config BR2_PACKAGE_EXIV2
>> +	bool "exiv2"
>> +	help
>> +	  Exiv2 is a C++ library and a command line utility to manage image metadata.
>
> This line is a bit too long. Please wrap the help text so that it
> doesn't go over 72 columns.

Ok I fix this.
I have not found the rule for maximum column in Config.in and *.mk files 
in the manual. Maybe we should add.

>
>> diff --git a/package/exiv2/exiv2.mk b/package/exiv2/exiv2.mk
>> new file mode 100644
>> index 0000000..cbf5bcd
>> --- /dev/null
>> +++ b/package/exiv2/exiv2.mk
>> @@ -0,0 +1,32 @@
>> +################################################################################
>> +#
>> +# exiv2
>> +#
>> +################################################################################
>> +
>> +EXIV2_VERSION = 0.24
>> +EXIV2_SOURCE = exiv2-$(EXIV2_VERSION).tar.gz
>
> This line is not needed, as it is the default value.


Ok, I didn't know that it was the default value. I fix this.

>
>> +EXIV2_SITE = http://www.exiv2.org
>> +EXIV2_LICENSE = GPLv2+ or commercial
>> +EXIV2_LICENSE_FILES = COPYING
>
> You should probably make this conditional:
>
> ifeq ($(BR2_PACKAGE_EXIV2_COMMERCIAL),y)
> EXIV2_LICENSE = commercial
> else
> EXIV2_LICENSE = GPLv2+
> EXIV2_LICENSE_FILES = COPYING
> endif
>
> (Assuming COPYING contains the text of the GPLv2)

Ok I fix, good idea.

>
>> +ifeq ($(BR2_PACKAGE_EXIV2_COMMERCIAL),y)
>> +EXIV2_CONF_OPTS += --enable-commercial --disable-nls --disable-lensdata
>> +endif
>
> Why --disable-nls here? It is already passed automatically by the
> package infrastructure when locale support is not available.
>
> Maybe a comment about why --disable-lensdata is passed when the
> commercial license is used would be useful.



The --disable-lensdata disable an included Nikon lens database for 
conversion to readable lens name and this database is free use only in 
non-commercial projects.

For the --disable-nls, I don't know exactly why it's requested in 
commercial version.
This is what is specified in the README file.


>
>> +
>> +ifeq ($(BR2_PACKAGE_EXIV2_PNG),y)
>> +EXIV2_CONF_OPTS += --with-zlib=$(STAGING_DIR)
>> +EXIV2_DEPENDENCIES += zlib
>> +else
>> +EXIV2_CONF_OPTS += --without-zlib
>> +endif
>> +
>> +ifeq ($(BR2_PACKAGE_EXIV2_XMP),y)
>> +EXIV2_CONF_OPTS += --with-expat=$(STAGING_DIR)/usr/lib
>
> Maybe --enable-xmp here?

It works in both cases because XMP is automatically enabled if expat is 
found.

>
>> +EXIV2_DEPENDENCIES += expat
>> +else
>> +EXIV2_CONF_OPTS += --disable-xmp
>> +endif
>> +
>> +$(eval $(autotools-package))
>
> Other than that, this patch looks good. Could you submit an updated
> version that fixes the minor issues mentioned above?
>
> Thanks a lot!
>
> Thomas
>

I do the changes and I send the new patch

Thanks for the review.

Nicolas

  reply	other threads:[~2014-11-06 14:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 14:30 [Buildroot] [PATCH 1/1] exiv2: new package Nicolas Serafini
2014-11-06  7:30 ` Thomas Petazzoni
2014-11-06 14:18   ` Nicolas Serafini [this message]
2014-11-06 15:01     ` Thomas Petazzoni
2014-11-06 15:06       ` Nicolas Serafini

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=545B831C.6050908@sensefly.com \
    --to=nicolas.serafini@sensefly.com \
    --cc=buildroot@busybox.net \
    /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.
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.