<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-extended/bash, branch 3.2_M2</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=3.2_M2</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=3.2_M2'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2020-02-15T10:26:42+00:00</updated>
<entry>
<title>bash: include patch 12-16</title>
<updated>2020-02-15T10:26:42+00:00</updated>
<author>
<name>Lee Chee Yang</name>
<email>chee.yang.lee@intel.com</email>
</author>
<published>2020-02-14T11:28:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=bb6ceda3bc578309733679e1a5ed07925df02081'/>
<id>urn:sha1:bb6ceda3bc578309733679e1a5ed07925df02081</id>
<content type='text'>
(From OE-Core rev: 10907c6ea3665e0cacb05e7120c8726ed5790a3c)

Signed-off-by: Lee Chee Yang &lt;chee.yang.lee@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: include patch 8-11</title>
<updated>2020-02-04T15:56:29+00:00</updated>
<author>
<name>Lee Chee Yang</name>
<email>chee.yang.lee@intel.com</email>
</author>
<published>2020-01-21T05:26:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=43d9e2d030ce2794c71290580640cfb462fc19fa'/>
<id>urn:sha1:43d9e2d030ce2794c71290580640cfb462fc19fa</id>
<content type='text'>
(From OE-Core rev: 61c3449b87e5d627134a580bb5298338f389beb1)

Signed-off-by: Lee Chee Yang &lt;chee.yang.lee@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: Don't DEPEND on virtual/libc-locale</title>
<updated>2019-12-09T12:00:43+00:00</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2019-12-08T12:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f52451b71910bc759c2bf06e3cf732487298797f'/>
<id>urn:sha1:f52451b71910bc759c2bf06e3cf732487298797f</id>
<content type='text'>
For ptest only RDEPENDS is needed, and packaging glibc-locale
slowed down builds with ptest disabled.

(From OE-Core rev: 53f61ca73e69508bff6ea75da666d6873b5384f5)

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: Remove .build files for reproducible builds</title>
<updated>2019-06-24T09:36:28+00:00</updated>
<author>
<name>Joshua Watt</name>
<email>jpewhacker@gmail.com</email>
</author>
<published>2019-06-21T13:33:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=65e5b33a252ecd59200577c7b0ed918124fe770f'/>
<id>urn:sha1:65e5b33a252ecd59200577c7b0ed918124fe770f</id>
<content type='text'>
Bash has an internal "build number" that it tracks and automatically
increments ever time a given builds is made from the same sandbox.
However, this can make builds non-reproducible in the event that a build
directory is reused multiple times.

Remove the .build files after every build if reproducible builds have
been requested which will reset the build build number for the next
build.

(From OE-Core rev: 9754be5c22de877bd53226908d03d2eef5751808)

Signed-off-by: Joshua Watt &lt;JPEWhacker@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: use setpriv, sed.sed to run ptests</title>
<updated>2019-06-18T10:23:48+00:00</updated>
<author>
<name>Randy MacLeod</name>
<email>Randy.MacLeod@windriver.com</email>
</author>
<published>2019-06-16T15:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b56fb24f03fc0d90725179a401d94ea0c02eecea'/>
<id>urn:sha1:b56fb24f03fc0d90725179a401d94ea0c02eecea</id>
<content type='text'>
The execscript test in bash fails when run with ptest-runner calling
'su', with the error:
   bash: cannot set terminal process group (16036): Inappropriate ioctl for device
Even with ptest-runner fixed to make a child process use the right
process group, 'su' still results in the warning above. Use 'setpriv'
instead. 'runuser' was considered and works but depends on pam so it's
ruled out.

Now that all bash tests are run as a user, the patch:
   fix-run-coproc-run-heredoc-run-execscript-run-test-f.patch
can be removed.  Also to create the account 'bashtest' in the
'run-ptest' script the bash-ptest must depend on 'shadow'. Also,
in 'run-ptest', ensure that the bash ptests are owned by the 'bashtest' user.

Add 'sed' as a dependency for ptests since tests/exp8.sub runs:
    var=$'x\001y\177z'
    declare -p var | sed -n l
and that results in:
    sed.busybox: ""
    sed.sed: declare -- var="x\001y\177z"$
This appears to be a feature that busybox sed has not implemented.

With this series of changes, bash-ptest for qemux86-64 passes
79 of 81 tests. The remaining failures are:

1. run-read:
  # cat tests/read6.sub
  # test read with a timeout of 0 -- input polling
  # sleep with fractional seconds argument is not universal
  echo abcde | { sleep 0.25 2&gt;/dev/null ; read -t 0; }
  echo $?

  read -t 0 &lt; $0
  echo $?

  read -t 0
  echo $? &lt;-- returns 1, when 0 is expected.

I can reproduce this on my workstation but only when using ptest-runner
and initially logging into the console as root. That's a little odd and
seems like I need to continue to improve ptest-runner.

2. run-trap:
  # cat tests/trap3.sub
  PS4='+[$LINENO] '
  trap 'echo trap: $LINENO' ERR

  set -x

  echo 1
  echo 2
  echo 3 | cat | false &lt;--- error
  echo 4

This is a scheduler behaviour difference between the common case
on a workstation and the common case in qemu. The test case does
warn about the completion order not being deterministic so I plan
to ignore it.

&gt;From tests/run-trap:
  UNIX versions number signals and schedule processes differently.
  If output differing only in line numbers is produced, please
  do not consider this a test failure.

Still, it's notable and slightly odd that the common case output
is different.

(From OE-Core rev: 81e3f01867cf114b728ab5a417c29426c9bf8122)

Signed-off-by: Sakib Sajal &lt;sakib.sajal@windriver.com&gt;
Signed-off-by: Randy MacLeod &lt;Randy.MacLeod@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: Replace uninative loader path in ptest</title>
<updated>2019-06-07T08:11:49+00:00</updated>
<author>
<name>Joshua Watt</name>
<email>jpewhacker@gmail.com</email>
</author>
<published>2019-06-06T20:07:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=1095ee1f623f9c3ab05ee62ac6fffebb95e7c39c'/>
<id>urn:sha1:1095ee1f623f9c3ab05ee62ac6fffebb95e7c39c</id>
<content type='text'>
The Makefile used for bash-ptest can pick up the path to the uninative
loader through BUILD_LDFLAGS. This includes the full path to the
uninative loader, which is not reproducible. Replace it with /bin/false.
It doesn't appear as if these native programs are used in the test
suites and if there are likely to be other problems related to building
them using the BUILD_* flags.

(From OE-Core rev: 1208ff934a2bb6378aa8b219345110a0d56bf767)

Signed-off-by: Joshua Watt &lt;JPEWhacker@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: run bash ptest as non-root user</title>
<updated>2019-06-01T10:27:07+00:00</updated>
<author>
<name>Sakib Sajal</name>
<email>sakib.sajal@windriver.com</email>
</author>
<published>2019-05-31T20:25:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=123375542008173b2d8017786d0ccff4a259c7e3'/>
<id>urn:sha1:123375542008173b2d8017786d0ccff4a259c7e3</id>
<content type='text'>
new-exp ptest fails as it expects non-root user.

&gt;From the failed ptest log:
   &lt; new-exp.tests: the test suite should not be run as root
   628c627
   &lt; argv[1] = &lt;host(2)[5.0]# &gt;
   ---
   &gt; argv[1] = &lt;host(2)[5.0]$ &gt;
   FAIL: run-new-exp

Many of the ptests declare that they should not be run as root
and a few fail since the expected result strings are for a
user shell.

When ptests are run as bash_user (non-root) the glob test
fails with error:
    run-glob-test
    59,60d58
    &lt; touch: cannot touch 'a?': Permission denied
    &lt; touch: cannot touch 'aa': Permission denied

So ensure that the bash/ptest/tests directory is owned by the
bash_user while the tests are being run and return it to root
owner afterwards.

(From OE-Core rev: c125609886b36048cfde6e694eee7fb47f197241)

Signed-off-by: Sakib Sajal &lt;sakib.sajal@windriver.com&gt;
Signed-off-by: Randy Macleod &lt;randy.macleod@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: add big5hkscs gconv RDEPENDS needed by bash-ptest.</title>
<updated>2019-06-01T10:27:07+00:00</updated>
<author>
<name>Sakib Sajal</name>
<email>sakib.sajal@windriver.com</email>
</author>
<published>2019-05-31T20:25:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=56ccaa3b8d639c1e6abe91848dfdf594d997cf66'/>
<id>urn:sha1:56ccaa3b8d639c1e6abe91848dfdf594d997cf66</id>
<content type='text'>
glob-test failed beacuse it could not convert big5hkscs
encoding to perform comparison.

(From OE-Core rev: 8e147863c4c0fdc22da92e2e5e35502906eac916)

Signed-off-by: Sakib Sajal &lt;sakib.sajal@windriver.com&gt;
Signed-off-by: Randy Macleod &lt;randy.macleod@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: add iso8859-1 gconv RDEPENDS needed by bash-ptest.</title>
<updated>2019-05-29T11:54:12+00:00</updated>
<author>
<name>Sakib Sajal</name>
<email>sakib.sajal@windriver.com</email>
</author>
<published>2019-05-28T14:31:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=124ac408d46b78814c2a397631aa74e1c6eeff6c'/>
<id>urn:sha1:124ac408d46b78814c2a397631aa74e1c6eeff6c</id>
<content type='text'>
One of the ptests failed for internationalization.
&gt;From the failed ptest log:
   run-intl
   fr_FR.ISO8859-1: Error Encoding U+00000080 to  [ "$'\200'" != "\\u0080" ]
   (125 similar errors related to same encoding)
The test was unable to convert iso8859-1 encoding to perform comparison.

(From OE-Core rev: ec1849d7a5964bef53462b9d4763e22433f9d246)

Signed-off-by: Sakib Sajal &lt;sakib.sajal@windriver.com&gt;
Signed-off-by: Randy Macleod &lt;randy.macleod@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bash: Fix bash-ptest dependencies</title>
<updated>2019-05-22T06:24:52+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2019-05-21T15:42:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b91b4f43c9ab77bb874ba3ab34813cc72ba5fa73'/>
<id>urn:sha1:b91b4f43c9ab77bb874ba3ab34813cc72ba5fa73</id>
<content type='text'>
Bash's ptest needs glibc-utils (for locale), some extra locales for various tests
it uses options busybox doesn't support for some tools, hence coreutils and also runs
perl for some tests.

(From OE-Core rev: 7ce6f69e56ef7ccc0187722cd78728a6505073b7)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
