Bug 31754 - [FR] патч для старых препроцессоров
Summary: [FR] патч для старых препроцессоров
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ash (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL: http://www.mailbrowse.com/dash/1025.html
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-02 18:43 MSK by Michael Shigorin
Modified: 2016-02-04 18:24 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Shigorin 2016-02-02 18:43:48 MSK
Просьба при сборке/починке ash-0.5.8 по возможности добавить патч по ссылке:

Encontered this on ancient gcc-2.95.3 environment;
src/builtins.def.in -> src/builtins.def generation emitted
^ $
lines (likely by /* */), which where NOT ignored by 
src/mkbuiltins and generating bogus builtins.c.

-- kabe

diff -U6 -p dash-0.5.8/src/mkbuiltins.dist dash-0.5.8/src/mkbuiltins
--- dash-0.5.8/src/mkbuiltins.dist	Sun Sep 28 17:19:32 2014
+++ dash-0.5.8/src/mkbuiltins	Mon Dec 22 14:36:43 2014
@@ -66,13 +66,13 @@ cat <<\!
  */
 
 #include "shell.h"
 #include "builtins.h"
 
 !
-< $builtins sed '/^#/d; /^$/d' > $temp
+< $builtins sed '/^#/d; /^ *$/d' > $temp
 awk '{	printf "int %s(int, char **);\n", $1}' $temp
 echo '
 const struct builtincmd builtincmd[] = {'
 awk '{	for (i = 2 ; i <= NF ; i++) {
 		line = $i "\t" $1
 		if ($i ~ /^-/)

Вылезло на lcc.
Comment 1 Michael Shigorin 2016-02-04 18:24:06 MSK
Спасибо, ash-0.5.8-alt1.2e5842258 собирается.