From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 20/22] squashfs: Add xattr support
Date: Mon, 6 Jul 2015 12:16:02 +0200 [thread overview]
Message-ID: <20150706121602.402373fc@free-electrons.com> (raw)
In-Reply-To: <1433251718-3167-21-git-send-email-clayton.shotwell@rockwellcollins.com>
Dear Clayton Shotwell,
On Tue, 2 Jun 2015 08:28:36 -0500, Clayton Shotwell wrote:
> diff --git a/package/squashfs/squashfs.mk b/package/squashfs/squashfs.mk
> index 8ca9e2e..f44ef9f 100644
> --- a/package/squashfs/squashfs.mk
> +++ b/package/squashfs/squashfs.mk
> @@ -10,9 +10,6 @@ SQUASHFS_SITE = http://downloads.sourceforge.net/project/squashfs/squashfs/squas
> SQUASHFS_LICENSE = GPLv2+
> SQUASHFS_LICENSE_FILES = COPYING
>
> -# no libattr in BR
> -SQUASHFS_MAKE_ARGS = XATTR_SUPPORT=0
> -
> ifeq ($(BR2_PACKAGE_SQUASHFS_LZ4),y)
> SQUASHFS_DEPENDENCIES += lz4
> SQUASHFS_MAKE_ARGS += LZ4_SUPPORT=1 COMP_DEFAULT=lz4
> @@ -52,13 +49,20 @@ HOST_SQUASHFS_DEPENDENCIES = host-zlib host-lz4 host-lzo host-xz
>
> # no libattr/xz in BR
> HOST_SQUASHFS_MAKE_ARGS = \
> - XATTR_SUPPORT=0 \
> XZ_SUPPORT=1 \
> GZIP_SUPPORT=1 \
> LZ4_SUPPORT=1 \
> LZO_SUPPORT=1 \
> LZMA_XZ_SUPPORT=1
>
> +ifeq ($(BR2_PACKAGE_ATTR),y)
> + SQUASHFS_MAKE_ARGS += XATTR_SUPPORT=1
> + HOST_SQUASHFS_MAKE_ARGS += XATTR_SUPPORT=1
> +else
> + SQUASHFS_MAKE_ARGS += XATTR_SUPPORT=0
> + HOST_SQUASHFS_MAKE_ARGS += XATTR_SUPPORT=0
> +endif
For the host package, this is clearly not correct.
BR2_PACKAGE_ATTR=y tells you that the *target* attr package has been
built. It does not tell you anything about the availability of the
*host* attr package. Do you can certainly do:
SQUASHFS_MAKE_ARGS += XATTR_SUPPORT=$(if $(BR2_PACKAGE_ATTR),1,0)
However, touching HOST_SQUASHFS_MAKE_ARGS depending on BR2_PACKAGE_ATTR
does not make sense. If you need xattr support in mksquashfs for the
host, then you will need to add a
BR2_PACKAGE_HOST_SQUASHFS_XATTR_SUPPORT Config.in.host option, and
enable XATTR_SUPPORT=1 when enabled, and add host-attr to the
dependencies.
Also, your patch is incorrect because it does not add the dependency on
the attr package, so nothing guarantees you that the attr package has
been built before squashfs.
I'll mark your patch as Changes Requested in patchwork.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-07-06 10:16 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 13:28 [Buildroot] [PATCH v7 00/22] SELinux Buildroot Additions Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 01/22] sqlite: Add host build support Clayton Shotwell
2015-06-17 21:05 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 02/22] setools: new package Clayton Shotwell
2015-06-17 21:06 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 03/22] python-pyparsing: Add host build option Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 04/22] audit: new package Clayton Shotwell
2015-06-17 21:45 ` Thomas Petazzoni
2015-06-19 15:56 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 05/22] policycoreutils: " Clayton Shotwell
2015-06-17 22:13 ` Thomas Petazzoni
2015-07-08 20:40 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 06/22] refpolicy: " Clayton Shotwell
2015-07-10 18:09 ` Samuel Martin
2015-07-10 22:31 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 07/22] busybox: applets as individual binaries Clayton Shotwell
2015-06-20 16:13 ` Samuel Martin
2015-07-10 17:50 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 08/22] busybox: selinux support Clayton Shotwell
2015-06-20 16:23 ` Samuel Martin
2015-07-10 17:56 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 09/22] linux-pam: " Clayton Shotwell
2015-06-20 17:08 ` Samuel Martin
2015-07-10 19:13 ` Clayton Shotwell
2015-07-10 19:16 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 10/22] busybox: added linux-pam support Clayton Shotwell
2015-06-20 17:13 ` Samuel Martin
2015-06-02 13:28 ` [Buildroot] [PATCH v7 11/22] sysvinit: added libselinux dependency Clayton Shotwell
2015-07-10 18:30 ` Samuel Martin
2015-06-02 13:28 ` [Buildroot] [PATCH v7 12/22] dbus: selinux file context support Clayton Shotwell
2015-07-10 20:32 ` Samuel Martin
2015-06-02 13:28 ` [Buildroot] [PATCH v7 13/22] openssh: selinux and pam support Clayton Shotwell
[not found] ` <CAHXCMML3=hbmcTV7p9ycJdohW4PCm_PoVaFmnGr3=ABZAKC3fQ@mail.gmail.com>
2015-07-10 23:01 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 14/22] util-linux: selinux, audit, " Clayton Shotwell
2015-07-10 21:28 ` Samuel Martin
2015-06-02 13:28 ` [Buildroot] [PATCH v7 15/22] vim: selinux support Clayton Shotwell
2015-06-20 17:41 ` Samuel Martin
2015-07-01 8:57 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 16/22] rsyslog: fix config file comment style Clayton Shotwell
2015-07-10 22:01 ` Samuel Martin
2015-07-10 23:16 ` Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 17/22] qemu x86 selinux: added common selinux support files Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 18/22] qemu x86 selinux: base br defconfig Clayton Shotwell
2015-06-02 13:28 ` [Buildroot] [PATCH v7 19/22] libsemanage: cleanup python use and license definition Clayton Shotwell
2015-06-30 14:39 ` Thomas Petazzoni
2015-06-30 15:27 ` Matthew Weber
2015-06-30 16:43 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 20/22] squashfs: Add xattr support Clayton Shotwell
2015-07-06 10:16 ` Thomas Petazzoni [this message]
2015-07-10 19:54 ` Clayton Shotwell
2015-07-10 20:23 ` Thomas Petazzoni
2015-07-11 17:12 ` Matthew Weber
2015-07-15 20:21 ` Thomas Petazzoni
2015-07-15 21:55 ` Matthew Weber
2015-07-16 15:18 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 21/22] mtd: " Clayton Shotwell
2015-07-06 10:35 ` Thomas Petazzoni
2015-06-02 13:28 ` [Buildroot] [PATCH v7 22/22] cpio: new package Clayton Shotwell
2015-07-06 10:38 ` Thomas Petazzoni
2015-07-10 21:02 ` Clayton Shotwell
2015-07-10 22:16 ` Thomas Petazzoni
2015-07-10 22:18 ` Clayton Shotwell
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=20150706121602.402373fc@free-electrons.com \
--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