From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 52A7E1F462 for ; Sat, 15 Jun 2019 11:26:23 +0000 (UTC) Received: from localhost ([::1]:59874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hc6pB-0005e8-Lv for normalperson@yhbt.net; Sat, 15 Jun 2019 07:26:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50975) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hc6oy-0005br-VF for bug-gnulib@gnu.org; Sat, 15 Jun 2019 07:26:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hc6oq-0006Ik-8P; Sat, 15 Jun 2019 07:26:02 -0400 Received: from [2a02:810c:c1c0:547b:d253:49ff:fe5e:3a63] (port=49736 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hc6on-00025O-VP; Sat, 15 Jun 2019 07:25:58 -0400 Date: Sat, 15 Jun 2019 13:25:55 +0200 From: Darshit Shah To: Bruno Haible Subject: Re: Alpine: useless-if-before-free: Exec format error Message-ID: <20190615112555.dlpl33puu4knwxzt@tardis.localdomain> Mail-Followup-To: Bruno Haible , Paul Eggert , Eric Blake , Tim =?utf-8?Q?R=C3=BChsen?= , bug-gnulib@gnu.org References: <365b73af-3fb2-bd69-e3a2-3cc4cebc4ef9@gmx.de> <45902125.zfeXSMVeiH@omega> <7e57b669-5700-a9f1-b9dd-2c80009584dc@cs.ucla.edu> <2755553.BK5KSAcaQk@omega> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zutm3tcdzkzq2whv" Content-Disposition: inline In-Reply-To: <2755553.BK5KSAcaQk@omega> User-Agent: NeoMutt/20180716 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim =?utf-8?Q?R=C3=BChsen?= , bug-gnulib@gnu.org, Paul Eggert , Eric Blake Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" --zutm3tcdzkzq2whv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Bruno Haible [190615 13:07]: > 2019-06-15 Bruno Haible >=20 > Fix scripts to have valid executable format on Alpine Linux. > Reported by Tim R=C3=BChsen . > Idea by Paul Eggert. > * build-aux/useless-if-before-free: Use a prologue that starts with > '#!/bin/sh'. > * build-aux/announce-gen: Likewise. > * build-aux/gitlog-to-changelog: Likewise. > * build-aux/prefix-gnulib-mk: Likewise. > * build-aux/update-copyright: Likewise. > * tests/test-update-copyright.sh: Update test program accordingly. >=20 > diff --git a/build-aux/announce-gen b/build-aux/announce-gen > index 0174f5c..b572833 100755 > --- a/build-aux/announce-gen > +++ b/build-aux/announce-gen > @@ -1,6 +1,20 @@ > -eval '(exit $?0)' && eval 'exec perl -wS "$0" "$@"' > - & eval 'exec perl -wS "$0" $argv:q' > - if 0; > +#!/bin/sh > +#! -*-perl-*- > +# This is a prologue that allows to run a perl script as an executable > +# on systems that are compliant to a POSIX version before POSIX:2017. > +# On such systems, the usual invocation of an executable through execlp() > +# or execvp() fails with ENOEXEC if it is a script that does not start > +# with a #! line. The script interpreter mentioned in the #! line has > +# to be /bin/sh, because on GuixSD systems that is the only program that > +# has a fixed file name. The second line is for editing this file in > +# Emacs. The next two lines below are valid code in both sh and perl. > +# When executed by sh, they re-execute the script through the perl > +# program found in $PATH. The '-x' option is essential; without it, > +# perl would re-execute the script through /bin/sh. When executed by > +# perl, the next two lines are a no-op. > +eval 'exec perl -wSx "$0" "$@"' > + if 0; > + > # Generate a release announcement message. > =20 > my $VERSION =3D '2018-03-07 03:46'; # UTC Won't this break the emacs timestamp hook which apparently needs to be with= in the first eight lines of the file? Maybe either reduce the text, or move the hooks around. --=20 Thanking You, Darshit Shah PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6 --zutm3tcdzkzq2whv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJgBAABCgBKFiEEa5j2N9h5xSNuJ3xcZP+QqujHCvkFAl0E1bcsFIAAAAAAFQAO cGthLWFkZHJlc3NAZ251cGcub3JnZGFybmlyQGdudS5vcmcACgkQZP+QqujHCvll cxAAmcx1EoFlgYfoRUWANUI8HXWQ46SFF1ieSSt/tj3lMOopgd+HoX6XSQBTWqJ9 is/Iz/HcRusfg2D0MjM/EYUSgVi1woMUomsoNQrHLBdQpQmMMe/uy4TK6ee5iebJ ApzDWMWwbc11vJKlmfqV5Dyx7E2qh9HsuHkMjcQ3f6Opy14NO4yHNhn3jw+Ra2tH gwywN3tOHDCaqNg6dulmvgeT+VIlbLV61/fJMdUmvlBm9HBBr/fKJAPJqX/1EYv4 L1YRg00wUps2c40nJzGZQ+5xbZMayBoAi1Nthevkw1c9+YqEz9owyoTORUCO2rsA QhzkjmHbdbcw5J8n1h6yTdPICQUxThTLlSCjKBeBvoywHF7PCLqZD/La/7+rkVv/ Sc8yCCL1/438CYytvrSWKOd4H0Mht2TLrMedLw6/tProfmZFiwtYZhnjePriMQaY WVsrGDohQYUl1d8v0qggZvhm/jVwmUKTLv7YiKZ3LMt55k4eHMYggKsdBrb1oPtZ NgsZ01rDBdCifaKDpAsfCkbqC5j1iC6TPiVfN7TFtDiIa9+owqMNBOWUAJzIDK3p y6xcOsmBMQq8Cp9tuFSLBXegN9dwtmEUti9RQJf9fxjerXJeK8EucEGu8BVsDBka a6cptkyBdR5BspVA6UxFFvUl/4+6AR+Xgd59ZQxG5XmPpos= =fNYH -----END PGP SIGNATURE----- --zutm3tcdzkzq2whv--