Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add Netatalk
Date: Wed, 25 Apr 2012 10:35:23 +0200	[thread overview]
Message-ID: <20120425103523.23383cf9@skate> (raw)
In-Reply-To: <1335342290-7553-1-git-send-email-maxime.hadjinlian@gmail.com>

Hello Maxime,

Thanks for your contribution! A few comments below.

Le Wed, 25 Apr 2012 10:24:50 +0200,
Maxime Hadjinlian <maxime.hadjinlian@gmail.com> a ?crit :

> This patch add the Netatalk package to Buildroot, it also update the Berkeley
> DB package as it was required by Netatalk.  I did not go extensively through
> the configure option but they works for me.
> 
> Note : I must add that I had a strange problem while building. I have the
> openssl-dev package on my machine (Debian testing) and Buildroot did not
> built openssl package, later the build of Netatalk complained about my
> /usr/include/openssl/ folder (which is obviously, not correct). After moving
> this folder to openssl.old (on my machine not the staging dir), Buildroot
> built openssl and Netatalk was happy. I don't know what happened there but,
> you are informed.

This is not normal, and should be investigated. It is very likely that
Buildroot users will have OpenSSL development files installed on their
host, and this should not conflict with the build. We don't want to
force people to rename /usr/include/openssl to /usr/include/openssl.old.

If you have issues in finding what's going on, please report with more
details, i.e with the config.log generated by netatalk ./configure
script. We can help you investigating this.

>  package/Config.in                |    1 +
>  package/berkeleydb/berkeleydb.mk |    3 +-

The berkeleydb bump should be in a separate patch.

> diff --git a/package/netatalk/Config.in b/package/netatalk/Config.in
> new file mode 100644
> index 0000000..5adbce9
> --- /dev/null
> +++ b/package/netatalk/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_NETATALK
> +	bool "netatalk"
> +    select BR2_PACKAGE_BERKELEYDB
> +    select BR2_PACKAGE_OPENSSL
> +    select BR2_PACKAGE_LIBGCRYPT
> +    select BR2_PACKAGE_LIBGPG_ERROR
> +    help
> +      Netatalk can be used to turn a *NIX machine into an extremely 
> +      high-performance and reliable file server for Macintosh computers.
> +
> +	  http://netatalk.sourceforge.net/

Indentation is wrong here:

 * one tab before "select" and "help"
 * one tab + two spaces before the help text itself

> diff --git a/package/netatalk/S50netatalk b/package/netatalk/S50netatalk
> new file mode 100755
> index 0000000..c46f58f
> --- /dev/null
> +++ b/package/netatalk/S50netatalk

The init script is quite complicated, but I guess it's because netatalk
is complicated :)

> diff --git a/package/netatalk/netatalk.mk b/package/netatalk/netatalk.mk
> new file mode 100644
> index 0000000..f370136
> --- /dev/null
> +++ b/package/netatalk/netatalk.mk
> @@ -0,0 +1,33 @@
> +#############################################################
> +#
> +# netatalk
> +#
> +#############################################################
> +NETATALK_VERSION = 2.2.2
> +NETATALK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/netatalk/netatalk/$(NETATALK_VERSION)/
> +NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
> +NETATALK_CFLAGS += -DNO_DEBUG

This line isn't doing anything. Unless I'm wrong, we don't do anything
with the <pkg>_CFLAGS variable.

> +NETALATK_DEPENDENCIES = openssl berkeleydb libgcrypt libgpg-error
> +NETATALK_CONF_OPT += --sysconfdir=/etc \
> +	--with-cnid-cdb-backend \
> +	--disable-cups \
> +	--with-bdb=${STAGING_DIR}/usr \

This should be $(STAGING_DIR)/usr. We use the $() syntax everywhere to
access make variables.

> +	--disable-cups \
> +	--disable-zeroconf \
> +	--with-ssl-dir=$(STAGING_DIR)/usr \
> +	--with-libgcrypt-dir=$(STAGING_DIR)/usr \
> +	--with-shadow \
> +	--disable-shell-check \
> +	--without-pam \
> +	--prefix=$(STAGING_DIR)

No, don't override the prefix, it should remain to its default value
passed by the autotargets infrastructure, which is /usr.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-04-25  8:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25  8:24 [Buildroot] [PATCH] Add Netatalk Maxime Hadjinlian
2012-04-25  8:35 ` Thomas Petazzoni [this message]
2012-04-25 12:03   ` Maxime Hadjinlian
  -- strict thread matches above, loose matches on Subject: below --
2012-04-26  6:58 Maxime Hadjinlian
2012-04-26  7:25 ` Thomas Petazzoni
2012-04-26  7:41 Maxime Hadjinlian
2012-04-30  8:41 ` Peter Korsgaard

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=20120425103523.23383cf9@skate \
    --to=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox