[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #35580] bootstrap is not portable to OpenBSD
From: |
Pádraig Brady |
Subject: |
Re: [bug #35580] bootstrap is not portable to OpenBSD |
Date: |
Thu, 08 Aug 2013 11:08:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 08/08/2013 03:59 AM, Mike Miller wrote:
> Update of bug #35580 (project octave):
>
> Category: None => Configuration and Build
> System
> Item Group: None => Build Failure
> Status: Confirmed => Need Info
> Summary: autogen.sh is not portable to OpenBSD => bootstrap
> is not portable to OpenBSD
>
> _______________________________________________________
>
> Follow-up Comment #7:
>
> Update: the development version of Octave uses a script called bootstrap now
> instead of autogen.sh.
>
> I believe this can be considered fixed. I have a successful bootstrap of a
> current Octave hg clone on OpenBSD 5.3, the following GNU packages are
> required to be installed for bootstrap to succeed: autoconf (2.69p0), automake
> (1.13.1), coreutils, libtool, m4.
>
> I don't know for certain that GNU m4 is required, but I think I read in the
> autoconf manual at one time that it is, so I installed it and set M4=gm4 in my
> environment. Coreutils is required for gsha1sum only.
>
> You can certainly follow up with gnulib upstream if you want them to consider
> using OpenBSD's sha1 instead of gsha1sum, but the bootstrap script currently
> uses the --status option that is GNU-specific.
This adjustment should avoid the need for coreutils
(there might be a catch 22 with that requirement).
You'll also need to export SHA1SUM=sha1 before running bootstrap.
thanks,
Pádraig.
diff --git a/build-aux/bootstrap b/build-aux/bootstrap
index 9c52204..3c8631c 100755
--- a/build-aux/bootstrap
+++ b/build-aux/bootstrap
@@ -692,8 +692,7 @@ update_po_files() {
cksum_file="$ref_po_dir/$po.s1"
if ! test -f "$cksum_file" ||
! test -f "$po_dir/$po.po" ||
- ! $SHA1SUM -c --status "$cksum_file" \
- < "$new_po" > /dev/null; then
+ ! $SHA1SUM -c "$cksum_file" < "$new_po" > /dev/null 2>&1; then
echo "$me: updated $po_dir/$po.po..."
cp "$new_po" "$po_dir/$po.po" \
&& $SHA1SUM < "$new_po" > "$cksum_file"
- [bug #35580] bootstrap is not portable to OpenBSD, Mike Miller, 2013/08/07
- Re: [bug #35580] bootstrap is not portable to OpenBSD,
Pádraig Brady <=
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Pádraig Brady, 2013/08/08
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Mike Miller, 2013/08/09
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Eric Blake, 2013/08/09
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Pádraig Brady, 2013/08/09
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Mike Miller, 2013/08/12
- Re: [bug #35580] bootstrap is not portable to OpenBSD, Pádraig Brady, 2013/08/17