Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14204

Re: Bash patches format

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Matt Housh <jaeger@morpheus.net>
Newsgroups gnu.bash.bug
Subject Re: Bash patches format
Date Sat, 2 Jun 2018 10:00:53 -0500
Lines 151
Approved bug-bash@gnu.org
Message-ID <mailman.1001.1527962566.1292.bug-bash@gnu.org> (permalink)
References <20180530070456.p36falhq66wfgxqk@proprietary-killer>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/mixed; boundary="------------594DC1D2DB210F901C08E6E8"
X-Trace usenet.stanford.edu 1527962567 362 208.118.235.17 (2 Jun 2018 18:02:47 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Chet Ramey <chet.ramey@case.edu>, bug-bash@gnu.org, ncopa@alpinelinux.org, ldv@altlinux.org, glebfm@altlinux.org, jeffbai@aosc.xyz, bpiotrowski@archlinux.org, doko@debian.org, core-ports@crux.nu, ehaupt@freebsd.org, base-system@gentoo.org, jan.steffens@gmail.com, demm@kaosx.us, ubuntu-devel-discuss@lists.ubuntu.com, raimue@macports.org, zap@homelink.ru, milang@tal.org, oberon@manjaro.org, simons@cryp.to, naddy@openbsd.org, nobodydead@gmail.com, tpgxyz@gmail.com, naoir@gmx.net, pkgsrc-users@netbsd.org, andrew.lukoshko@rosalab.ru, alex2048@mail.ru, trisquel-devel@listas.trisquel.info, openwrt-devel@lists.openwrt.org
To "Marty E. Plummer" <hanetzer@startmail.com>, Clark Wang <dearvoid@gmail.com>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=simple/simple; d=morpheus.net; s=mail; t=1527951676; bh=2c07R5tpbkB4oTxJIgjC060ZT0lk5cB7X9QFd3uqms8=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=vQoOUUp5YwzPc3I/Gul42SvTXE8Ohwbio0CpIvBbsdOURzfVme4EJ47QdZe5KIqp+ AS99/dad4yh0iLi4sCDAsvJkwAvmda+AMX+MO6HIFGj+TDn7Ah/GUqEHd7k57oLbkJ 3oylKobVbAJta2Yasah1pkkvns30uPJG4UQWS5oA=
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
In-Reply-To <20180530070456.p36falhq66wfgxqk@proprietary-killer>
Content-Language en-US
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 198.74.57.187
X-Mailman-Approved-At Sat, 02 Jun 2018 14:02:45 -0400
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14204

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 5/30/2018 02:04, Marty E. Plummer wrote:
> On Wed, May 30, 2018 at 10:42:27AM +0800, Clark Wang wrote:
>> On Wed, May 30, 2018 at 8:25 AM, Marty E. Plummer <hanetzer@startmail.com>
>> wrote:
>>
>>>> If people are willing to do the conversion between patch formats for
>>> their
>>>> own purposes, more power to them. I don't see any compelling reason to
>>>> change the format I use.
>>>>
>>> Could I at least convince you to start doing -p1, if not unified?
>>>
>>
>> I think the cost is too high. All bash package maintainers on different
>> *nix systems will have to change accordingly.
>>
>> -clark
> Well how about this; we ask the downstreams. List taken from repology,
> hopefully these are still all active and accurate. So, to reiterate the
> original premise of this thread for the newly added, I suggest the
> following:
> 
> 1. Change the official upstream bash patch format to be -p1 applicable,
> as a number of major linux distros either convert the patches in their
> own source repo to -p1 (debian and its children, fedora and its children),
> or have to take an explicit deviation from their default patch
> application method (gentoo) in order to apply -p0 patches.
> 
> Optional:
> 2. Change the format of the patch from a context diff to a unified diff,
> for the following reasons:
>     a. unified diffs are generally smaller than an equivalent context
>     diff, while encoding the same information.
>     *** a/lib/readline/history.c    2015-12-28 13:50:31.000000000 -0500
>     --- b/lib/readline/history.c    2016-09-30 14:28:40.000000000 -0400
>     ***************
>     *** 308,312 ****
>     	{
>     	  if (history_stifled && history_max_entries > 0)
>     !           history_size = history_max_entries + 2;
>     	  else
>     	    history_size = DEFAULT_HISTORY_INITIAL_SIZE;
>     --- 310,316 ----
>     	{
>     	  if (history_stifled && history_max_entries > 0)
>     !           history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE)
>     !                               ? MAX_HISTORY_INITIAL_SIZE
>     !                               : history_max_entries + 2;
>     	  else
>     	    history_size = DEFAULT_HISTORY_INITIAL_SIZE;
> 
>     --- a/lib/readline/history.c    2015-12-28 13:50:31.000000000 -0500
>     +++ b/lib/readline/history.c    2016-09-30 14:28:40.000000000 -0400
>     @@ -308,5 +310,7 @@
>     	{
>     	  if (history_stifled && history_max_entries > 0)
>     -           history_size = history_max_entries + 2;
>     +           history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE)
>     +                               ? MAX_HISTORY_INITIAL_SIZE
>     +                               : history_max_entries + 2;
>     	  else
>     	    history_size = DEFAULT_HISTORY_INITIAL_SIZE;
> 
>     b. <opinion> unified diffs are easier to size up at a glance than
>     context diffs.
> 
>     c. <conjecture based on personal observation> unified diffs are the
>     standard for a host of foss projects, especially those using git as a
>     vcs solution as it produces context diffs by default and you have to
>     purposely change it to do otherwise.
> 
> Maintainers, I'd really like to hear your thoughts on this matter. If
> the diffs are produced as -p1 unified diffs, then downstreams who do
> convert from -p0 context won't have to, and distros who work around it
> won't either.
> 
> Regards,
> 
> Marty
> 

Greetings,

Speaking for the CRUX maintainers, we don't have a preference. Whatever
works best for upstream.

Regards,
Matt

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Bash patches format Matt Housh <jaeger@morpheus.net> - 2018-06-02 10:00 -0500

csiph-web