[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build: bison compat: colour mess
From: |
Steffen Nurpmeso |
Subject: |
Re: build: bison compat: colour mess |
Date: |
Wed, 07 Aug 2024 16:14:15 +0200 |
User-agent: |
s-nail v14.9.24-621-g0d1e55f367 |
P.S.:
Steffen Nurpmeso wrote in
<20240426195426.tY4qjp12@steffen%sdaoden.eu>:
|I come over via https://github.com/onetrueawk/awk/issues/228.
|For years the nawk build causes terminal mess in the unshare(1)d
|fakeroot(1) package build environment of the Linux distro i use
|(CRUX; sh(1) based). It looks like that:
|
| ...
| bison -d awkgram.y
| awkgram.yawkgram.y: : warning:warning:3399;49m;49m 62 shift/reduce \
| conflicts62 shift/reduce conflicts [ [
| 7 reduce/reduce conflicts] [8;id=5]984;dicd7=750909046d1c67f7101050b6319\
| 6dfb1d1050b03090d0b0d10;0h0t0t0p0s0:1/;/hwtwtwp.sg:n/u/.wowrwg./gsnouf.t\
| owragr/es/obfitswoanr/em/abniusaoln//hmtamnlu_a
| nlo/dhet/mDli_angondoes/tDiicasg.nhotsmtli#cWsc.ohntfmlli#cWtcso-nrfrl\c\
| -Wconflicts-rrt[-3r9r;\9-Wconflicts-rrm389;;;4\m]
| awkgram.y: note:note: erun with option '-Wcounterexamples' to generate \
| conflict counterexamples[f111d207]580;0i0d00=050919;h4ttdpcs7:/7/0w0w0w.\
| gnu.org/softw6a1r6ef/1b1i1sdo2n/ma0nu7a4l2/0h0t0
| 39;49m rerun with option '-Wcounterexamples' to generate conflict \
| counterexamplescts-rri[o3n9/;m4a9nmu]l8/;h;t\l_no]de
| cc -g -Wall -pedantic -Wcast-qual -O2 -c -o [.]
| ...
|
|From warning:warning it is purple, from note:note turquoise, then
|purple, then .. etc. The terminal is not properly restored,
|i need to do "tput reset" to see the cursor again. The screen is
|flushed, ie cleared initially, too.
|Note that if i do ls(1) --color=yes in the same environment,
|colors are ok. (However, vim(1) only starts up as rvim.)
|
|It is like that for years, i can reproduce it a hundred percent
|(also see the nawk issue). Todd Miller said in the issue that
|bison uses some GNU specific library for these terminal sequences,
|but i have zero idea from neither. From a fast glance into the
|very large bison codebase it seems quite logical (if it really is
|that isatty(STDERR) thing).
|I only wanted to report this issue, finally.
Ie the builder results in such a process tree:
steffen 1399 1397 0 0.0 2456 6516 Ss 00:00:00 Aug05 pts/2 \_
-bash
root 16564 1399 0 0.0 1506 3656 S 00:00:00 16:05 pts/2 |
\_ /usr/bin/doas /usr/ports/box-ports.sh
root 16570 16564 0 0.0 655 988 S 00:00:00 16:05 pts/2 |
\_ /bin/sh /usr/ports/box-ports.sh
root 16575 16570 0 0.0 655 1404 S 00:00:00 16:05 pts/2 |
\_ /bin/sh /usr/ports/box-ports.sh
root 16614 16575 0 0.0 610 904 S 00:00:00 16:05 pts/2 |
\_ /usr/bin/unshare --ipc --uts --pid --fork --mount --mount-proc
--kill-child --root=/tmp/ports-yahBGr/root /init
root 16615 16614 0 0.0 655 976 S 00:00:00 16:05 pts/2 |
\_ /bin/sh - /init
root 16616 16615 0 0.0 1506 3792 S 00:00:00 16:05 pts/2 |
\_ /usr/bin/doas -u ports /usr/bin/nice -n +20 /bin/bash -l
ports 16618 16616 19 0.0 1256 4340 SN 00:00:00 16:05 pts/2 |
| \_ /bin/bash -l
ports 16646 16618 19 0.0 655 1820 SN+ 00:00:00 16:06 pts/2 |
| \_ /bin/sh /usr/bin/fakeroot pkgmk -d
ports 16661 16646 19 0.0 2169 4760 SN+ 00:00:00 16:06 pts/2 |
| \_ /bin/bash /usr/bin/pkgmk -d
ports 16707 16661 19 0.0 2169 4120 SN+ 00:00:00 16:06 pts/2 |
| \_ /bin/bash /usr/bin/pkgmk -d
ports 16869 16707 19 0.0 7223 11544 SNl+ 00:00:00 16:06 pts/2 |
| \_ cmake --build build
ports 16871 16869 19 0.0 2115 5708 SN+ 00:00:00 16:06 pts/2 |
| \_ /usr/bin/ninja
Ok it is strange, but anyway it only ever happens with bison.
--End of <20240426195426.tY4qjp12@steffen%sdaoden.eu>
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
|
| Only during dog days:
| On the 81st anniversary of the Goebbel's Sportpalast speech
| von der Leyen gave an overlong hypocritical inauguration one.
| The brew's essence of our civilizing advancement seems o be:
| Total war - shortest war -> Permanent war - everlasting war
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: build: bison compat: colour mess,
Steffen Nurpmeso <=