From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Reiserfsprogs
Date: Tue, 28 Jun 2016 18:18:46 +0200 [thread overview]
Message-ID: <20160628181846.25cc7912@free-electrons.com> (raw)
In-Reply-To: <F9C551623D2CBB4C9488801D14F864C6EE83116F@ex-mb1.corp.adtran.com>
Hello,
Thanks for this patch. See my review below.
On Mon, 27 Jun 2016 18:46:26 +0000, ANDY KENNEDY wrote:
> 1234567890123456789012345678901234567890123456789012345678901234567890
> This patch was attempted earlier by Rod Boyce:
>
> All,
>
> Attached is a patch that adds reiserfsprogs to build root.
>
> Regards,
> Rod Boyce
> Index: package/Config.in
>
> I have tweaked it to make it fit into the latest git repo.
>
> This patch adds support for reiserfsprogs.
All of this commit log is not appropriate. It should just be:
reiserfsprogs: new package
and pretty much nothing else, except if you have other comments to add
about the package. Remember that the commit log stays forever in the
Git history of the project, so we don't need the "All, Attached is a
patch ....".
>
> Signed-off-by: Andy Kennedy <andy.kennedy@adtran.com>
I am not sure your patch has been formatted using Git. Please use "git
format-patch" to format your patch, and then "git send-email" to send
it.
> diff -Naur a/package/reiserfsprogs/Config.in b/package/reiserfsprogs/Config.in
> --- a/package/reiserfsprogs/Config.in 1969-12-31 18:00:00.000000000 -0600
> +++ b/package/reiserfsprogs/Config.in 2016-06-24 14:03:06.000000000 -0500
> @@ -0,0 +1,36 @@
> +
Unnecessary empty line.
> +config BR2_PACKAGE_REISERFSPROGS
> + bool "reiserfsprogs"
> + select BR2_PACKAGE_ACL
> + select BR2_PACKAGE_UTIL_LINUX
> + select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
This dependency is not needed. reiserfsprogs doesn't use libblkid
directly.
> + select BR2_PACKAGE_UTIL_LINUX_LIBUUID
> + select BR2_PACKAGE_E2FSPROGS
Alphabetic ordering would be better.
> + help
> + The reiserfs file system utilities.
> +
> + https://reiser4.wiki.kernel.org/index.php/Main_Page
> +
> +if BR2_PACKAGE_REISERFSPROGS
> +
> +config BR2_PACKAGE_REISERFSPROGS_MKREISERFS
> + bool "mkreiserfs"
> + default y
> +
> +config BR2_PACKAGE_REISERFSPROGS_REISERFSCK
> + bool "reiserfsck"
> + default y
> +
> +config BR2_PACKAGE_REISERFSPROGS_RESIZE_REISERFS
> + bool "resize_reiserfs"
> + default y
> +
> +config BR2_PACKAGE_REISERFSPROGS_REISERFSTUNE
> + bool "reiserfstune"
> + default y
> +
> +config BR2_PACKAGE_REISERFSPROGS_DEBUGREISERFS
> + bool "debugreiserfs"
> + default y
Please remove all those sub-options, the size of each binary is not big
enough to justify having sub-options:
lrwxrwxrwx 1 thomas thomas 13 juin 28 18:12 output/target/usr/sbin/debugfs.reiserfs -> debugreiserfs
-rwxr-xr-x 1 thomas thomas 63372 juin 28 18:12 output/target/usr/sbin/debugreiserfs
lrwxrwxrwx 1 thomas thomas 10 juin 28 18:12 output/target/usr/sbin/fsck.reiserfs -> reiserfsck
lrwxrwxrwx 1 thomas thomas 10 juin 28 18:12 output/target/usr/sbin/mkfs.reiserfs -> mkreiserfs
-rwxr-xr-x 1 thomas thomas 17248 juin 28 18:12 output/target/usr/sbin/mkreiserfs
-rwxr-xr-x 1 thomas thomas 151456 juin 28 18:12 output/target/usr/sbin/reiserfsck
-rwxr-xr-x 1 thomas thomas 16580 juin 28 18:12 output/target/usr/sbin/reiserfstune
-rwxr-xr-x 1 thomas thomas 16748 juin 28 18:12 output/target/usr/sbin/resize_reiserfs
lrwxrwxrwx 1 thomas thomas 12 juin 28 18:12 output/target/usr/sbin/tunefs.reiserfs -> reiserfstune
> diff -Naur a/package/reiserfsprogs/Config.in.host b/package/reiserfsprogs/Config.in.host
> --- a/package/reiserfsprogs/Config.in.host 1969-12-31 18:00:00.000000000 -0600
> +++ b/package/reiserfsprogs/Config.in.host 2016-06-24 14:04:44.000000000 -0500
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_HOST_REISERFSPROGS
> + bool "host reiserfsprogs"
> + help
> + The reiserfs file system utilities.
> +
> + https://reiser4.wiki.kernel.org/index.php/Main_Page
I don't think it is useful to have a host variant for reiserfsprogs,
except if you add support to generate a root filesystem image using
reiserfs. But since that's a separate effort, I would suggest to just
drop the host variant of the package for now.
> diff -Naur a/package/reiserfsprogs/reiserfsprogs.mk b/package/reiserfsprogs/reiserfsprogs.mk
> --- a/package/reiserfsprogs/reiserfsprogs.mk 1969-12-31 18:00:00.000000000 -0600
> +++ b/package/reiserfsprogs/reiserfsprogs.mk 2016-06-24 14:04:20.000000000 -0500
> @@ -0,0 +1,32 @@
> +################################################################################
> +#
> +# reiserfsprogs
> +#
> +################################################################################
> +
> +REISERFSPROGS_VERSION = 3.6.25
> +REISERFSPROGS_SITE = ftp://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v$(REISERFSPROGS_VERSION)
Please use http:// instead of ftp://.
> +REISERFSPROGS_LICENSE = GPLv2
The license is not exactly GPLv2. It is, according to the README file:
"""
ReiserFSprogs is hereby licensed under the GNU General Public License version 2
but with the following "Anti-Plagiarism" modification
"""
So, you should probably use:
REISERFSPROGS_LICENSE = GPLv2 with exceptions
> +REISERFSPROGS_LICENSE_FILES = COPYING README
> +REISERFSPROGS_CONF_ENV = LIBS='-lcom_err -luuid -lpthread -lrt'
This line is not needed.
> +REISERFSPROGS_DEPENDENCIES = util-linux e2fsprogs acl
Alphabetic ordering is preferred.
> +
> +# binaries to keep or remove
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_MKREISERFS) += usr/local/sbin/mkreiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_MKREISERFS) += usr/local/sbin/mkfs.reiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_REISERFSCK) += usr/local/sbin/reiserfsck
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_REISERFSCK) += usr/local/sbin/fsck.reiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_RESIZE_REISERFS) += usr/local/sbin/resize_reiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_REISERFSTUNE) += usr/local/sbin/reiserfstune
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_REISERFSTUNE) += usr/local/sbin/tunefs.reiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_DEBUGREISERFS) += usr/local/sbin/debugreiserfs
> +REISERFSPROGS_BINTARGETS_$(BR2_PACKAGE_REISERFSPROGS_DEBUGREISERFS) += usr/local/sbin/debugfs.reiserfs
All those lines are useless, there is nothing installed in
usr/local/sbin, everything is installed in usr/sbin. Also, as per my
suggestion to drop the sub-options, those lines are in fact not
necessary.
> +
> +define REISERFSPROGS_TARGET_REMOVE_UNNEEDED
> + rm -f $(addprefix $(TARGET_DIR)/, $(REISERFSPROGS_BINTARGETS_))
> +endef
> +
> +REISERFSPROGS_POST_INSTALL_TARGET_HOOKS += REISERFSPROGS_TARGET_REMOVE_UNNEEDED
> +
> +$(eval $(autotools-package))
> +$(eval $(host-autotools-package))
And drop this last line, since the host variant is probably not useful.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-06-28 16:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 18:46 [Buildroot] [PATCH] Reiserfsprogs ANDY KENNEDY
2016-06-27 19:03 ` ANDY KENNEDY
2016-06-28 16:18 ` Thomas Petazzoni [this message]
2016-06-28 19:49 ` ANDY KENNEDY
2016-06-29 10:04 ` Thomas Petazzoni
2016-06-29 18:20 ` ANDY KENNEDY
2016-06-29 21:05 ` Thomas Petazzoni
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=20160628181846.25cc7912@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