From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add package linux-pam
Date: Fri, 10 Aug 2012 09:41:39 +0200 [thread overview]
Message-ID: <20120810094139.12fbf1f2@skate> (raw)
In-Reply-To: <1344569575-25960-1-git-send-email-golubovsky@gmail.com>
Hello Dmitry,
Le Thu, 9 Aug 2012 23:32:55 -0400,
Dmitry <golubovsky@gmail.com> a ?crit :
> Signed-off-by: Dmitry <golubovsky@gmail.com>
> ---
Thanks, this looks good! A few comments below.
> package/Config.in | 1 +
> package/linux-pam/Config.in | 15 ++++++++++++
> package/linux-pam/linux-pam-configure.patch | 11 +++++++++
> package/linux-pam/linux-pam-doc-makefile-am.patch | 25 +++++++++++++++++++++
> package/linux-pam/linux-pam-group.patch | 18 +++++++++++++++
> package/linux-pam/linux-pam-rhosts.patch | 16 +++++++++++++
> package/linux-pam/linux-pam-succeed.patch | 23 +++++++++++++++++++
> package/linux-pam/linux-pam-time.patch | 18 +++++++++++++++
Each of your patches should contain a header with a description +
Signed-off-by line. See
package/libfcgi/libfcgi-link-against-libfcgi-la.patch for example.
> +++ b/package/linux-pam/linux-pam.mk
> @@ -0,0 +1,21 @@
> +############################################
> +#
> +# linux-pam
> +#
> +############################################
> +
> +LINUX_PAM_VERSION = 1.1.4
> +LINUX_PAM_SOURCE = Linux-PAM-$(LINUX_PAM_VERSION).tar.bz2
> +LINUX_PAM_SITE = http://linux-pam.org/library/
> +LINUX_PAM_INSTALL_STAGING = YES
> +LINUX_PAM_INSTALL_TARGET = YES
This line is not needed, please remove.
> +LINUX_PAM_CONF_OPT = --disable-prelude --disable-isadir --disable-nis --disable-regenerate-docu
> +LINUX_PAM_CONF_OPT += --enable-securedir=/lib/security --libdir=/lib
We generally format this in a different way:
LINUX_PAM_CONF_OPT = \
--disable-prelude \
--disable-isadir \
--disable-nis \
--disable-regenerate-docu \
--enable-securedir=/lib/security \
--libdir=/lib
> +LINUX_PAM_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) libintl flex
I think libintl should be part of the $(if
$(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) conditional: when building with
a glibc toolchain, BR2_NEEDS_GETTEXT_IF_LOCALE will be false, because
glibc has a builtin version of libintl.
> +LINUX_PAM_AUTORECONF = YES
> +
> +define LINUX_PAM_BUILD_CMDS
> + $(MAKE) CC="$(TARGET_CC) -lintl -lfl" LD="$(TARGET_LD)" -C $(@D) all
> +endef
Instead of overriding LINUX_PAM_BUILD_CMDS, I would recommend using:
LINUX_PAM_CONF_ENV += \
CC="$(TARGET_CC) -lintl -lfl"
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-08-10 7:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 3:32 [Buildroot] [PATCH] Add package linux-pam Dmitry
2012-08-10 7:41 ` Thomas Petazzoni [this message]
[not found] ` <CADiAo4+Ak_6ZLY0ND=ZYWz6wTsov4XnkpXvbK8ZSF-ukU7ALGw@mail.gmail.com>
2012-08-10 10:51 ` Dmitry Golubovsky
2012-08-10 20:04 ` Thomas Petazzoni
2012-08-11 2:52 ` Dmitry Golubovsky
-- strict thread matches above, loose matches on Subject: below --
2012-08-11 2:50 Dmitry
2012-08-11 20:16 ` Thomas Petazzoni
2012-08-10 10:27 Dmitry
2012-08-22 7:09 ` Maxime Ripard
2012-08-23 1:53 ` Dmitry Golubovsky
2012-08-23 7:59 ` Maxime Ripard
2012-07-18 21:03 Dmitry
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=20120810094139.12fbf1f2@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