#123 closed defect (fixed)
Change patches to sed's where possible
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | CVS |
Severity: | normal | Keywords: | |
Cc: |
Description
sysvinit: mv src/init.c init.c.temp && sed 's/\(.*\)\(Sending processes\)\(.*\)/\1\2 started by init\3/' \
init.c.temp > src/init.c &&
make -C src && make -C src install
shadow-20001016 install .. mv src/useradd.c useradd.c.temp &&
\(.*\)/\1\2/' useradd.c.temp > src/useradd.c && |
blah blah
Change History (7)
comment:1 by , 23 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 23 years ago
comment:3 by , 23 years ago
We could replace the man-1.5i2 patch with this:
for i in configure src/Makefile.in src/makewhatis.sh ; do sed s/gawk/awk/g $i
$i.fixed ; mv $i.fixed $i; done
Comments?
comment:4 by , 23 years ago
We can also replace the sh-utils patch with the following:
sed s/mon_yday/mon_yday2/g lib/mktime.c > mktime.c.temp && sed s/mktime_internal/mktime_internal2/g mktime.c.temp > lib/mktime.c
I'm going to copy this and the suggested man one to lfs-discuss.
comment:5 by , 23 years ago
Last one I think!
Instead of the gzip patch we could use: for i in gzip.h util.c do sed s/basename/basename2/g $i > $i.fixed mv $i.fixed $i done
comment:6 by , 23 years ago
The only ones left which could be changed are the sh-utils and gzip ones.
comment:7 by , 23 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
AFAIK all the reasonable ones have been seded ;-) I'm therefore closing this bug for now although I have no doubt it'll get reopened at some point.
i've changed the sysvinit and shadowutils installs to use sed's instead of patches. I'm currently checking whether it's feasible for any of the other patches before I close the bug.