> cd /usr/portage; git log | head
commit 1131dd3691787ff827b3de693808cb7d2d316be3
Author: Repository QA checks <repo-qa-checks@gentoo.org>
Date: Mon Dec 28 15:02:04 2015 +0000
2015-12-28 15:02:02 UTC
commit 6beaca66156e6c72e0a84c5b7f246f4b9e535d5b
Merge: e754785 3d4cc3c
Author: Repository QA checks <repo-qa-checks@gentoo.org>
Date: Mon Dec 28 15:01:48 2015 +0000
> grep segfault.patch /usr/portage/app-shells/bash/bash-4.3_p42.ebuild
epatch "${FILESDIR}"/${PN}-4.3-append-process-segfault.patch
> file -b --mime-type /usr/portage/app-shells/bash/files/bash-4.3-append-process-segfault.patch
text/plain
> cat /usr/portage/app-shells/bash/files/bash-4.3-append-process-segfault.patch
https://lists.gnu.org/archive/html/bug-bash/2014-08/msg00048.html
*** ../bash-4.3-patched/execute_cmd.c 2014-07-30 10:26:52.000000000 -0400
--- execute_cmd.c 2014-08-11 16:55:57.000000000 -0400
***************
*** 2406,2410 ****
{
#if defined (JOB_CONTROL)
! append_process (savestring (the_printed_command), dollar_dollar_pid, exec_result, lastpipe_jid);
#endif
lstdin = wait_for (lastpid);
--- 2433,2438 ----
{
#if defined (JOB_CONTROL)
! if (INVALID_JOB (lastpipe_jid) == 0)
! append_process (savestring (the_printed_command_except_trap), dollar_dollar_pid, exec_result, lastpipe_jid);
#endif
lstdin = wait_for (lastpid);
Благодаря ChangeLog мы знаем своих героев наркоманов в лицо.
app-shells/bash/ChangeLog
! *bash-4.3_p22-r1 (12 Aug 2014)
!
! 12 Aug 2014; Lars Wendler <polynomial-c@gentoo.org> -bash-4.3_p18-r4.ebuild,
! +bash-4.3_p22-r1.ebuild, +files/bash-4.3-append-process-segfault.patch,
! -files/bash-4.3-here-doc-ps2-comsub.patch,
! -files/bash-4.3-lastpipe-nested-pipe-segfault.patch:
! Revbump to fix a segmentation fault with lastpipe. Removed old.