source:
patches/coreutils-6.4-suppress_uptime_kill_su-1.patch@
9717098
Last change on this file since 9717098 was 7c0b4b3, checked in by , 18 years ago | |
---|---|
|
|
File size: 15.0 KB |
-
coreutils-6.4
Submitted By: Matthew Burgess <matthew at linuxfromscratch dot org> Date: 2006-10-22 Initial Package Version: 6.4 Origin: original suppress_hotname_uptame_kill_su patch (Robert Connolly) Upstream Status: N/A Description: This patch supresses the building of uptime, and kill. The su command is built so the testsuite can run, use './src/su', but it will not be installed. Also see: Updated for 6.3 and 6.4 by Jim Gifford diff -Naur coreutils-6.4.orig/AUTHORS coreutils-6.4/AUTHORS
old new 35 35 hostname: Jim Meyering 36 36 id: Arnold Robbins, David MacKenzie 37 37 join: Mike Haertel 38 kill: Paul Eggert39 38 link: Michael Stone 40 39 ln: Mike Parker, David MacKenzie 41 40 logname: FIXME: unknown … … 89 88 unexpand: David MacKenzie 90 89 uniq: Richard Stallman, David MacKenzie 91 90 unlink: Michael Stone 92 uptime: Joseph Arceneaux, David MacKenzie, Kaveh Ghazi93 91 users: Joseph Arceneaux, David MacKenzie 94 92 vdir: Richard Stallman, David MacKenzie 95 93 wc: Paul Rubin, David MacKenzie -
coreutils-6.4
diff -Naur coreutils-6.4.orig/configure coreutils-6.4/configure
old new 49517 49517 { echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5 49518 49518 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6; } 49519 49519 if test $gnulib_cv_have_boot_time = yes; then 49520 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime\$(EXEEXT)" 49521 MAN="$MAN uptime.1" 49520 echo "uptime is suppressed" 49522 49521 fi 49523 49522 49524 49523 -
coreutils-6.4
diff -Naur coreutils-6.4.orig/Makefile.in coreutils-6.4/Makefile.in
old new 175 175 $(top_srcdir)/m4/tzset.m4 $(top_srcdir)/m4/unicodeio.m4 \ 176 176 $(top_srcdir)/m4/unistd-safer.m4 $(top_srcdir)/m4/unistd_h.m4 \ 177 177 $(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \ 178 $(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4\178 $(top_srcdir)/m4/unlocked-io.m4 \ 179 179 $(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \ 180 180 $(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \ 181 181 $(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \ -
man/Makefile.in
diff -Naur coreutils-6.4.orig/man/Makefile.in coreutils-6.4/man/Makefile.in
old new 170 170 $(top_srcdir)/m4/tzset.m4 $(top_srcdir)/m4/unicodeio.m4 \ 171 171 $(top_srcdir)/m4/unistd-safer.m4 $(top_srcdir)/m4/unistd_h.m4 \ 172 172 $(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \ 173 $(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4\173 $(top_srcdir)/m4/unlocked-io.m4 \ 174 174 $(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \ 175 175 $(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \ 176 176 $(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \ … … 380 380 base64.1 basename.1 cat.1 chgrp.1 chmod.1 chown.1 chroot.1 cksum.1 comm.1 \ 381 381 cp.1 csplit.1 cut.1 date.1 dd.1 df.1 dir.1 dircolors.1 dirname.1 du.1 \ 382 382 echo.1 env.1 expand.1 expr.1 factor.1 false.1 fmt.1 fold.1 groups.1 \ 383 head.1 hostid.1 hostname.1 id.1 install.1 join.1 kill.1\383 head.1 hostid.1 hostname.1 id.1 install.1 join.1 \ 384 384 link.1 ln.1 logname.1 \ 385 385 ls.1 md5sum.1 mkdir.1 mkfifo.1 mknod.1 mv.1 nice.1 nl.1 nohup.1 od.1 \ 386 386 paste.1 pathchk.1 pinky.1 pr.1 printenv.1 printf.1 ptx.1 pwd.1 readlink.1 \ 387 387 rm.1 rmdir.1 seq.1 sha1sum.1 sha224sum.1 sha256sum.1 sha384sum.1 sha512sum.1 \ 388 388 shred.1 shuf.1 sleep.1 sort.1 split.1 stat.1 stty.1 \ 389 su .1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \390 tty.1 uname.1 unexpand.1 uniq.1 unlink.1 u ptime.1 users.1 vdir.1 wc.1 \389 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \ 390 tty.1 uname.1 unexpand.1 uniq.1 unlink.1 users.1 vdir.1 wc.1 \ 391 391 who.1 whoami.1 yes.1 392 392 393 393 man_aux = $(dist_man_MANS:.1=.x) … … 663 663 id.1: $(common_dep) $(srcdir)/id.x ../src/id.c 664 664 install.1: $(common_dep) $(srcdir)/install.x ../src/install.c 665 665 join.1: $(common_dep) $(srcdir)/join.x ../src/join.c 666 kill.1: $(common_dep) $(srcdir)/kill.x ../src/kill.c667 666 link.1: $(common_dep) $(srcdir)/link.x ../src/link.c 668 667 ln.1: $(common_dep) $(srcdir)/ln.x ../src/ln.c 669 668 logname.1: $(common_dep) $(srcdir)/logname.x ../src/logname.c … … 701 700 split.1: $(common_dep) $(srcdir)/split.x ../src/split.c 702 701 stat.1: $(common_dep) $(srcdir)/stat.x ../src/stat.c 703 702 stty.1: $(common_dep) $(srcdir)/stty.x ../src/stty.c 704 su.1: $(common_dep) $(srcdir)/su.x ../src/su.c705 703 sum.1: $(common_dep) $(srcdir)/sum.x ../src/sum.c 706 704 sync.1: $(common_dep) $(srcdir)/sync.x ../src/sync.c 707 705 tac.1: $(common_dep) $(srcdir)/tac.x ../src/tac.c … … 717 715 unexpand.1: $(common_dep) $(srcdir)/unexpand.x ../src/unexpand.c 718 716 uniq.1: $(common_dep) $(srcdir)/uniq.x ../src/uniq.c 719 717 unlink.1: $(common_dep) $(srcdir)/unlink.x ../src/unlink.c 720 uptime.1: $(common_dep) $(srcdir)/uptime.x ../src/uptime.c721 718 users.1: $(common_dep) $(srcdir)/users.x ../src/users.c 722 719 vdir.1: $(common_dep) $(srcdir)/vdir.x ../src/ls.c 723 720 wc.1: $(common_dep) $(srcdir)/wc.x ../src/wc.c … … 749 746 check-x-vs-1: 750 747 PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH; \ 751 748 t=ls-files.$$$$; \ 752 (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | $(ASSORT) > $$t;\749 (cd $(srcdir) && ls -1 *.x) | grep -v -e 'kill.x' -e 'su.x' -e 'uptime.x' | sed 's/\.x$$//' | $(ASSORT) > $$t;\ 753 750 echo $(dist_man_MANS) | tr -s ' ' '\n' | sed 's/\.1$$//' \ 754 751 | $(ASSORT) | diff - $$t || { rm $$t; exit 1; }; \ 755 752 rm $$t -
coreutils-6.4
diff -Naur coreutils-6.4.orig/README coreutils-6.4/README
old new 9 9 10 10 [ base64 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date 11 11 dd df dir dircolors dirname du echo env expand expr factor false fmt fold 12 ginstall groups head hostid hostname id join killlink ln logname ls12 ginstall groups head hostid hostname id join link ln logname ls 13 13 md5sum mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr 14 14 printenv printf ptx pwd readlink rm rmdir seq sha1sum sha224sum sha256sum 15 15 sha384sum sha512sum shred shuf sleep sort split stat stty su sum sync tac 16 tail tee test touch tr true tsort tty uname unexpand uniq unlink uptime16 tail tee test touch tr true tsort tty uname unexpand uniq unlink 17 17 users vdir wc who whoami yes 18 18 19 19 See the file NEWS for a list of major changes in the current release. -
src/Makefile.in
diff -Naur coreutils-6.4.orig/src/Makefile.in coreutils-6.4/src/Makefile.in
old new 35 35 host_triplet = @host@ 36 36 EXTRA_PROGRAMS = chroot$(EXEEXT) df$(EXEEXT) hostid$(EXEEXT) \ 37 37 nice$(EXEEXT) pinky$(EXEEXT) stty$(EXEEXT) su$(EXEEXT) \ 38 uname$(EXEEXT) u ptime$(EXEEXT) users$(EXEEXT) who$(EXEEXT)38 uname$(EXEEXT) users$(EXEEXT) who$(EXEEXT) 39 39 bin_PROGRAMS = [$(EXEEXT) chgrp$(EXEEXT) chown$(EXEEXT) chmod$(EXEEXT) \ 40 40 cp$(EXEEXT) dd$(EXEEXT) dircolors$(EXEEXT) du$(EXEEXT) \ 41 41 ginstall$(EXEEXT) link$(EXEEXT) ln$(EXEEXT) dir$(EXEEXT) \ … … 53 53 tsort$(EXEEXT) unexpand$(EXEEXT) uniq$(EXEEXT) wc$(EXEEXT) \ 54 54 basename$(EXEEXT) date$(EXEEXT) dirname$(EXEEXT) echo$(EXEEXT) \ 55 55 env$(EXEEXT) expr$(EXEEXT) factor$(EXEEXT) false$(EXEEXT) \ 56 hostname$(EXEEXT) id$(EXEEXT) kill$(EXEEXT)logname$(EXEEXT) \56 hostname$(EXEEXT) id$(EXEEXT) logname$(EXEEXT) \ 57 57 pathchk$(EXEEXT) printenv$(EXEEXT) printf$(EXEEXT) \ 58 58 pwd$(EXEEXT) seq$(EXEEXT) sleep$(EXEEXT) tee$(EXEEXT) \ 59 59 test$(EXEEXT) true$(EXEEXT) tty$(EXEEXT) whoami$(EXEEXT) \ … … 178 178 $(top_srcdir)/m4/tzset.m4 $(top_srcdir)/m4/unicodeio.m4 \ 179 179 $(top_srcdir)/m4/unistd-safer.m4 $(top_srcdir)/m4/unistd_h.m4 \ 180 180 $(top_srcdir)/m4/unlink-busy.m4 $(top_srcdir)/m4/unlinkdir.m4 \ 181 $(top_srcdir)/m4/unlocked-io.m4 $(top_srcdir)/m4/uptime.m4\181 $(top_srcdir)/m4/unlocked-io.m4 \ 182 182 $(top_srcdir)/m4/userspec.m4 $(top_srcdir)/m4/utimbuf.m4 \ 183 183 $(top_srcdir)/m4/utime.m4 $(top_srcdir)/m4/utimecmp.m4 \ 184 184 $(top_srcdir)/m4/utimens.m4 $(top_srcdir)/m4/utimes-null.m4 \ … … 364 364 join_LDADD = $(LDADD) 365 365 join_DEPENDENCIES = ../lib/libcoreutils.a $(am__DEPENDENCIES_1) \ 366 366 ../lib/libcoreutils.a 367 kill_SOURCES = kill.c368 kill_OBJECTS = kill.$(OBJEXT)369 kill_LDADD = $(LDADD)370 kill_DEPENDENCIES = ../lib/libcoreutils.a $(am__DEPENDENCIES_1) \371 ../lib/libcoreutils.a372 367 link_SOURCES = link.c 373 368 link_OBJECTS = link.$(OBJEXT) 374 369 link_LDADD = $(LDADD) … … 617 612 unlink_LDADD = $(LDADD) 618 613 unlink_DEPENDENCIES = ../lib/libcoreutils.a $(am__DEPENDENCIES_1) \ 619 614 ../lib/libcoreutils.a 620 uptime_SOURCES = uptime.c621 uptime_OBJECTS = uptime.$(OBJEXT)622 uptime_DEPENDENCIES = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \623 $(am__DEPENDENCIES_1)624 615 users_SOURCES = users.c 625 616 users_OBJECTS = users.$(OBJEXT) 626 617 users_LDADD = $(LDADD) … … 664 655 csplit.c cut.c date.c dd.c df.c $(dir_SOURCES) dircolors.c \ 665 656 dirname.c du.c echo.c env.c expand.c expr.c factor.c false.c \ 666 657 fmt.c fold.c $(ginstall_SOURCES) head.c hostid.c hostname.c \ 667 id.c join.c kill.clink.c ln.c logname.c $(ls_SOURCES) \658 id.c join.c link.c ln.c logname.c $(ls_SOURCES) \ 668 659 $(md5sum_SOURCES) mkdir.c mkfifo.c mknod.c $(mv_SOURCES) \ 669 660 nice.c nl.c nohup.c od.c paste.c pathchk.c pinky.c pr.c \ 670 661 printenv.c printf.c ptx.c pwd.c readlink.c $(rm_SOURCES) \ … … 673 664 $(sha512sum_SOURCES) shred.c shuf.c sleep.c sort.c split.c \ 674 665 stat.c stty.c su.c sum.c sync.c tac.c tail.c tee.c test.c \ 675 666 touch.c tr.c true.c tsort.c tty.c uname.c unexpand.c uniq.c \ 676 unlink.c u ptime.c users.c $(vdir_SOURCES) wc.c who.c whoami.c \667 unlink.c users.c $(vdir_SOURCES) wc.c who.c whoami.c \ 677 668 yes.c 678 669 DIST_SOURCES = $(__SOURCES) base64.c basename.c cat.c $(chgrp_SOURCES) \ 679 670 chmod.c $(chown_SOURCES) chroot.c cksum.c comm.c $(cp_SOURCES) \ 680 671 csplit.c cut.c date.c dd.c df.c $(dir_SOURCES) dircolors.c \ 681 672 dirname.c du.c echo.c env.c expand.c expr.c factor.c false.c \ 682 673 fmt.c fold.c $(ginstall_SOURCES) head.c hostid.c hostname.c \ 683 id.c join.c kill.clink.c ln.c logname.c $(ls_SOURCES) \674 id.c join.c link.c ln.c logname.c $(ls_SOURCES) \ 684 675 $(md5sum_SOURCES) mkdir.c mkfifo.c mknod.c $(mv_SOURCES) \ 685 676 nice.c nl.c nohup.c od.c paste.c pathchk.c pinky.c pr.c \ 686 677 printenv.c printf.c ptx.c pwd.c readlink.c $(rm_SOURCES) \ … … 689 680 $(sha512sum_SOURCES) shred.c shuf.c sleep.c sort.c split.c \ 690 681 stat.c stty.c su.c sum.c sync.c tac.c tail.c tee.c test.c \ 691 682 touch.c tr.c true.c tsort.c tty.c uname.c unexpand.c uniq.c \ 692 unlink.c u ptime.c users.c $(vdir_SOURCES) wc.c who.c whoami.c \683 unlink.c users.c $(vdir_SOURCES) wc.c who.c whoami.c \ 693 684 yes.c 694 685 HEADERS = $(noinst_HEADERS) 695 686 ETAGS = etags … … 947 938 tail_LDADD = $(nanosec_libs) 948 939 949 940 # If necessary, add -lm to resolve use of pow in lib/strtod.c. 950 uptime_LDADD = $(LDADD) $(POW_LIB) $(GETLOADAVG_LIBS)951 941 su_LDADD = $(LDADD) $(LIB_CRYPT) 952 942 SUFFIXES = .sh 953 943 installed_su = $(DESTDIR)$(bindir)/`echo su|sed '$(transform)'` … … 1194 1184 join$(EXEEXT): $(join_OBJECTS) $(join_DEPENDENCIES) 1195 1185 @rm -f join$(EXEEXT) 1196 1186 $(LINK) $(join_OBJECTS) $(join_LDADD) $(LIBS) 1197 kill$(EXEEXT): $(kill_OBJECTS) $(kill_DEPENDENCIES)1198 @rm -f kill$(EXEEXT)1199 $(LINK) $(kill_OBJECTS) $(kill_LDADD) $(LIBS)1200 1187 link$(EXEEXT): $(link_OBJECTS) $(link_DEPENDENCIES) 1201 1188 @rm -f link$(EXEEXT) 1202 1189 $(LINK) $(link_OBJECTS) $(link_LDADD) $(LIBS) … … 1359 1346 unlink$(EXEEXT): $(unlink_OBJECTS) $(unlink_DEPENDENCIES) 1360 1347 @rm -f unlink$(EXEEXT) 1361 1348 $(LINK) $(unlink_OBJECTS) $(unlink_LDADD) $(LIBS) 1362 uptime$(EXEEXT): $(uptime_OBJECTS) $(uptime_DEPENDENCIES)1363 @rm -f uptime$(EXEEXT)1364 $(LINK) $(uptime_OBJECTS) $(uptime_LDADD) $(LIBS)1365 1349 users$(EXEEXT): $(users_OBJECTS) $(users_DEPENDENCIES) 1366 1350 @rm -f users$(EXEEXT) 1367 1351 $(LINK) $(users_OBJECTS) $(users_LDADD) $(LIBS) … … 1456 1440 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/id.Po@am__quote@ 1457 1441 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/install.Po@am__quote@ 1458 1442 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/join.Po@am__quote@ 1459 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/kill.Po@am__quote@1460 1443 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lbracket.Po@am__quote@ 1461 1444 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link.Po@am__quote@ 1462 1445 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ln.Po@am__quote@ … … 1516 1499 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unexpand.Po@am__quote@ 1517 1500 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uniq.Po@am__quote@ 1518 1501 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unlink.Po@am__quote@ 1519 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uptime.Po@am__quote@1520 1502 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/users.Po@am__quote@ 1521 1503 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wc.Po@am__quote@ 1522 1504 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/who.Po@am__quote@ … … 1837 1819 && can_create_suid_root_executable=yes; \ 1838 1820 rm -f $$TMPFILE; \ 1839 1821 if test $$can_create_suid_root_executable = yes; then \ 1840 $(INSTALL_SU); \1822 echo "Installation of su is suppressed"; \ 1841 1823 else \ 1842 1824 echo "WARNING: insufficient access; not installing su"; \ 1843 1825 echo "NOTE: to install su, run 'make install-root' as root"; \ -
src/Makefile.in.rej
diff -Naur coreutils-6.4.orig/src/Makefile.in.rej coreutils-6.4/src/Makefile.in.rej
old new 1 *************** 2 *** 1196,1204 **** 3 join$(EXEEXT): $(join_OBJECTS) $(join_DEPENDENCIES) 4 @rm -f join$(EXEEXT) 5 $(LINK) $(join_LDFLAGS) $(join_OBJECTS) $(join_LDADD) $(LIBS) 6 - kill$(EXEEXT): $(kill_OBJECTS) $(kill_DEPENDENCIES) 7 - @rm -f kill$(EXEEXT) 8 - $(LINK) $(kill_LDFLAGS) $(kill_OBJECTS) $(kill_LDADD) $(LIBS) 9 link$(EXEEXT): $(link_OBJECTS) $(link_DEPENDENCIES) 10 @rm -f link$(EXEEXT) 11 $(LINK) $(link_LDFLAGS) $(link_OBJECTS) $(link_LDADD) $(LIBS) 12 --- 1186,1191 ---- 13 join$(EXEEXT): $(join_OBJECTS) $(join_DEPENDENCIES) 14 @rm -f join$(EXEEXT) 15 $(LINK) $(join_LDFLAGS) $(join_OBJECTS) $(join_LDADD) $(LIBS) 16 link$(EXEEXT): $(link_OBJECTS) $(link_DEPENDENCIES) 17 @rm -f link$(EXEEXT) 18 $(LINK) $(link_LDFLAGS) $(link_OBJECTS) $(link_LDADD) $(LIBS) 19 *************** 20 *** 1361,1369 **** 21 unlink$(EXEEXT): $(unlink_OBJECTS) $(unlink_DEPENDENCIES) 22 @rm -f unlink$(EXEEXT) 23 $(LINK) $(unlink_LDFLAGS) $(unlink_OBJECTS) $(unlink_LDADD) $(LIBS) 24 - uptime$(EXEEXT): $(uptime_OBJECTS) $(uptime_DEPENDENCIES) 25 - @rm -f uptime$(EXEEXT) 26 - $(LINK) $(uptime_LDFLAGS) $(uptime_OBJECTS) $(uptime_LDADD) $(LIBS) 27 users$(EXEEXT): $(users_OBJECTS) $(users_DEPENDENCIES) 28 @rm -f users$(EXEEXT) 29 $(LINK) $(users_LDFLAGS) $(users_OBJECTS) $(users_LDADD) $(LIBS) 30 --- 1348,1353 ---- 31 unlink$(EXEEXT): $(unlink_OBJECTS) $(unlink_DEPENDENCIES) 32 @rm -f unlink$(EXEEXT) 33 $(LINK) $(unlink_LDFLAGS) $(unlink_OBJECTS) $(unlink_LDADD) $(LIBS) 34 users$(EXEEXT): $(users_OBJECTS) $(users_DEPENDENCIES) 35 @rm -f users$(EXEEXT) 36 $(LINK) $(users_LDFLAGS) $(users_OBJECTS) $(users_LDADD) $(LIBS)
Note:
See TracBrowser
for help on using the repository browser.