This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[x86] Regressions - io/ftwtest - due to sed 3.02


libc-alpha,

Using a freshly built toolchain on a box that is debian/stable.

---
make[2]: [/build-i686/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/build-i686/io/ftwtest.out] Error 1
make[1]: *** [io/tests] Error 2
---

sed 3.02 no longer works for all the testsuite scripts?

---
/bin/sh -e ftwtest-sh /home/carlos/src/glibc-work/build-i686/ \
/home/carlos/src/glibc-work/build-i686/io/ftwtest
sed: -e expression #1, char 20: Extra characters after command
--- /tmp/ftwtest.out    Sun Nov  9 04:22:07 2003
+++ -   Sun Nov  9 04:22:07 2003
@@ -4,3 +4,7 @@
 base = "/tmp/ftwtest.d/", file = "foo", flag = FTW_D, level = 1
 base = "/tmp/ftwtest.d/bar/", file = "xo", flag = FTW_F, level = 2
 base = "/tmp/ftwtest.d/foo/", file = "lvl1", flag = FTW_D, level = 2
+base = "/tmp/ftwtest.d/foo/", file = "lvl1b", flag = FTW_D, level = 2
+base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file2@1b", flag = FTW_F, level = 3
+base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file3@1b", flag = FTW_F, level = 3
+base = "/tmp/ftwtest.d/foo/lvl1b/", file = "file@1b", flag = FTW_F, level = 3
---

This is caused by an old version of sed. Updating to 4.0.7 fixes this.
/libc/INSTALL talks about upgrading sed if you would like to run the
testsuite, but 3.02 doesn't seem new enough. A recommended course of
action? 

a. Recommend a newer sed?

b. Change the script?
 = Older sed is not happy with nesting like "sed -n '/X$/,${Xb$/p}'"

-[ -n "`ls -U $tmpdir/foo/ | sed -n '/lvl1$/,${/lvl1b$/p}'`" ] \
+[ -z "`ls -U $tmpdir/foo/ | sed -n '/lvl1b$/,/lvl1$/p' | grep 'lvl1$'`"] \

There other sed is a non-trivial fix, and I'm not a sed-ist.

c.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]