Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Banky <martin.banky@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/6] coreutils: fixed missing hostname
Date: Thu, 23 Sep 2010 19:55:01 -0700	[thread overview]
Message-ID: <1285296904-25793-3-git-send-email-Martin.Banky@gmail.com> (raw)
In-Reply-To: <1285296904-25793-1-git-send-email-Martin.Banky@gmail.com>

hostname is no longer installed by default (ChangeLog-2007 - 2007-08-28), and
has to be enabled with --enable-install-program=hostname. hostname's man file is
not included, and because of this, during make, help2man is run against
src/hostname to generate it's man file. src/hostname will not run on the host
system, causing the build to fail.

Generated the hostname man file, after building coreutils on the host
system, and generated this patch, which fixes the build error.

Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
---
 package/coreutils/coreutils-7.4-hostname-man.patch |   51 ++++++++++++++++++++
 package/coreutils/coreutils.mk                     |    3 +-
 2 files changed, 53 insertions(+), 1 deletions(-)
 create mode 100644 package/coreutils/coreutils-7.4-hostname-man.patch

diff --git a/package/coreutils/coreutils-7.4-hostname-man.patch b/package/coreutils/coreutils-7.4-hostname-man.patch
new file mode 100644
index 0000000..843ecaa
--- /dev/null
+++ b/package/coreutils/coreutils-7.4-hostname-man.patch
@@ -0,0 +1,51 @@
+--- /dev/null	2010-09-18 00:21:07.280000001 -0700
++++ b/man/hostname.1	2010-09-23 12:08:06.000000000 -0700
+@@ -0,0 +1,48 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
++.TH HOSTNAME "1" "September 2010" "GNU coreutils 7.4" "User Commands"
++.SH NAME
++hostname \- set or print the name of the current host system
++.SH SYNOPSIS
++.B hostname
++[\fINAME\fR]
++.br
++.B hostname
++\fIOPTION\fR
++.SH DESCRIPTION
++.\" Add any additional description here
++.PP
++Print or set the hostname of the current system.
++.TP
++\fB\-\-help\fR
++display this help and exit
++.TP
++\fB\-\-version\fR
++output version information and exit
++.SH AUTHOR
++Written by Jim Meyering.
++.SH "REPORTING BUGS"
++Report hostname bugs to bug\-coreutils at gnu.org
++.br
++GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
++.br
++General help using GNU software: <http://www.gnu.org/gethelp/>
++.br
++Report hostname translation bugs to <http://translationproject.org/team/>
++.SH COPYRIGHT
++Copyright \(co 2010 Free Software Foundation, Inc.
++License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
++.SH "SEE ALSO"
++The full documentation for
++.B hostname
++is maintained as a Texinfo manual.  If the
++.B info
++and
++.B hostname
++programs are properly installed at your site, the command
++.IP
++.B info coreutils \(aqhostname invocation\(aq
++.PP
++should give you access to the complete manual.
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index dd47b0f..6a11d03 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -55,7 +55,8 @@ COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
 		utils_cv_localtime_cache=no
 
 COREUTILS_CONF_OPT = --disable-rpath \
-		--disable-dependency-tracking
+		--disable-dependency-tracking \
+		--enable-install-program=hostname
 
 define COREUTILS_TOUCH_RENAME_M4
 	# ensure rename.m4 file is older than configure / aclocal.m4 so
-- 
1.7.3

  parent reply	other threads:[~2010-09-24  2:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24  2:54 [Buildroot] [PATCH 1/6] coreutils: converted to autotarget Martin Banky
2010-09-24  2:55 ` [Buildroot] [PATCH 2/6] coreutils: changed/removed some of the configure environmental variables Martin Banky
2010-09-24  2:55 ` Martin Banky [this message]
2010-09-24  2:55 ` [Buildroot] [PATCH 4/6] coreutils: bump to 8.5 Martin Banky
2010-09-24  2:55 ` [Buildroot] [PATCH 5/6] coreutils: changed/removed some of the configure environmental variables Martin Banky
2010-09-24  2:55 ` [Buildroot] [PATCH 6/6] coreutils: add uname patch Martin Banky
2010-09-29 11:23 ` [Buildroot] [PATCH 1/6] coreutils: converted to autotarget Thomas Petazzoni
2010-09-29 20:18   ` Martin Banky
  -- strict thread matches above, loose matches on Subject: below --
2010-09-30 19:03 [Buildroot] [PATCH 0/6] Resubmit coreutils patchset Martin Banky
2010-09-30 19:03 ` [Buildroot] [PATCH 3/6] coreutils: fixed missing hostname Martin Banky

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=1285296904-25793-3-git-send-email-Martin.Banky@gmail.com \
    --to=martin.banky@gmail.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