Subject: Re: pkg_delete "Executing" output
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 02/10/2005 21:15:50
[ On Thursday, February 10, 2005 at 18:23:19 (+0000), Alistair Crooks wrote: ]
> Subject: Re: pkg_delete "Executing" output
>
> So the display of commands run as root is now making it so that you
> can't view anything else? I do find that hard to believe.
The whole bloody procedure runs as root, for goodness sake!
The oft-mentioned INSTALL/DEINSTALL scripts certainly run as root. Do
you really want to run them with 'sh -x' too!?!?!?!? This is just a
hint from the very few packages I've built recently of how much crap
would be spewed back at you as a result:
$ cd /var/db/pkg; wc */+*STALL
449 1067 9631 GConf2-2.8.1/+DEINSTALL
633 1781 15673 GConf2-2.8.1/+INSTALL
486 1170 10572 ORBit-0.5.15nb7/+DEINSTALL
670 1884 16614 ORBit-0.5.15nb7/+INSTALL
465 1164 11941 apache+modssl-1.3.33/+DEINSTALL
633 1834 17670 apache+modssl-1.3.33/+INSTALL
486 1171 10592 autoconf-2.59/+DEINSTALL
670 1885 16634 autoconf-2.59/+INSTALL
486 1170 10583 autoconf213-2.13/+DEINSTALL
670 1884 16625 autoconf213-2.13/+INSTALL
486 1170 10577 automake-1.9.3/+DEINSTALL
670 1884 16619 automake-1.9.3/+INSTALL
486 1170 10581 automake14-1.4.6/+DEINSTALL
670 1884 16623 automake14-1.4.6/+INSTALL
449 1069 9631 bind8-8.4.5/+DEINSTALL
633 1783 15673 bind8-8.4.5/+INSTALL
486 1174 10613 binutils-2.15.0.0/+DEINSTALL
670 1888 16655 binutils-2.15.0.0/+INSTALL
486 1170 10571 bison-1.875nb1/+DEINSTALL
670 1884 16613 bison-1.875nb1/+INSTALL
449 1065 9570 bogofilter-0.92.8/+DEINSTALL
633 1779 15612 bogofilter-0.92.8/+INSTALL
449 1064 9516 bytebench-4.1.0/+DEINSTALL
633 1778 15558 bytebench-4.1.0/+INSTALL
449 1069 9730 conserver-7.2.7nb2/+DEINSTALL
633 1783 15772 conserver-7.2.7nb2/+INSTALL
486 1170 10569 cssc-1.0.1/+DEINSTALL
670 1884 16611 cssc-1.0.1/+INSTALL
496 1251 10813 cyberbit-ttf-2.0nb3/+DEINSTALL
680 1965 16855 cyberbit-ttf-2.0nb3/+INSTALL
487 1185 10578 cyrus-imapd-2.2.10/+DEINSTALL
639 1818 15909 cyrus-imapd-2.2.10/+INSTALL
468 1107 9974 cyrus-sasl-2.1.20/+DEINSTALL
633 1779 15613 cyrus-sasl-2.1.20/+INSTALL
460 1085 9696 cyrus-saslauthd-2.1.20nb1/+DEINSTALL
633 1778 15559 cyrus-saslauthd-2.1.20nb1/+INSTALL
449 1065 9567 dict-server-1.8.0nb3/+DEINSTALL
633 1779 15609 dict-server-1.8.0nb3/+INSTALL
449 1065 9556 dillo-0.8.3/+DEINSTALL
633 1779 15598 dillo-0.8.3/+INSTALL
480 1181 10732 docbook-4.2nb4/+DEINSTALL
664 1897 16777 docbook-4.2nb4/+INSTALL
480 1151 10220 docbook-xml-4.2nb6/+DEINSTALL
664 1867 16265 docbook-xml-4.2nb6/+INSTALL
480 1151 10220 docbook-xsl-1.67.0/+DEINSTALL
664 1867 16265 docbook-xsl-1.67.0/+INSTALL
449 1078 9682 dspam-3.2.3/+DEINSTALL
639 1829 15956 dspam-3.2.3/+INSTALL
486 1195 10813 emacs-21.3nb5/+DEINSTALL
670 1909 16855 emacs-21.3nb5/+INSTALL
449 1065 9564 enscript-1.6.1nb2/+DEINSTALL
633 1779 15606 enscript-1.6.1nb2/+INSTALL
449 1065 9552 esound-0.2.35nb1/+DEINSTALL
633 1779 15594 esound-0.2.35nb1/+INSTALL
449 1065 9550 fam-2.7.0nb4/+DEINSTALL
633 1779 15592 fam-2.7.0nb4/+INSTALL
449 1069 9730 fontconfig-2.2.96nb1/+DEINSTALL
633 1783 15772 fontconfig-2.2.96nb1/+INSTALL
486 1171 10583 gawk-3.1.4nb1/+DEINSTALL
670 1885 16625 gawk-3.1.4nb1/+INSTALL
486 1173 10608 gcc3-c-3.3.4/+DEINSTALL
670 1887 16650 gcc3-c-3.3.4/+INSTALL
486 1170 10570 gcpio-2.5/+DEINSTALL
670 1884 16612 gcpio-2.5/+INSTALL
486 1177 10656 gdb-6.2.1nb1/+DEINSTALL
670 1891 16698 gdb-6.2.1nb1/+INSTALL
486 1170 10569 gdbm-1.8.3nb1/+DEINSTALL
670 1884 16611 gdbm-1.8.3nb1/+INSTALL
486 1170 10569 glib-1.2.10nb8/+DEINSTALL
670 1884 16611 glib-1.2.10nb8/+INSTALL
486 1170 10570 gmake-3.80nb4/+DEINSTALL
670 1884 16612 gmake-3.80nb4/+INSTALL
486 1170 10567 gmp-4.1.4/+DEINSTALL
670 1884 16609 gmp-4.1.4/+INSTALL
463 1092 9913 gnome-desktop-2.8.1/+DEINSTALL
647 1806 15955 gnome-desktop-2.8.1/+INSTALL
449 1087 10337 gnome-dirs-1.5/+DEINSTALL
633 1801 16379 gnome-dirs-1.5/+INSTALL
449 1065 9595 gnome-mime-data-2.4.2/+DEINSTALL
633 1779 15637 gnome-mime-data-2.4.2/+INSTALL
475 1145 11435 gnome-vfs2-2.8.3/+DEINSTALL
659 1859 17472 gnome-vfs2-2.8.3/+INSTALL
449 1087 10338 gnome1-dirs-1.5/+DEINSTALL
633 1801 16380 gnome1-dirs-1.5/+INSTALL
449 1069 9708 gnome2-dirs-1.5/+DEINSTALL
633 1783 15750 gnome2-dirs-1.5/+INSTALL
486 1170 10575 gnuplot-4.0.0nb1/+DEINSTALL
670 1884 16617 gnuplot-4.0.0nb1/+INSTALL
486 1170 10569 grep-2.5.1nb3/+DEINSTALL
670 1884 16611 grep-2.5.1nb3/+INSTALL
486 1170 10568 gsed-4.1.1nb1/+DEINSTALL
670 1884 16610 gsed-4.1.1nb1/+INSTALL
486 1170 10573 gtar-info-1.14/+DEINSTALL
670 1884 16615 gtar-info-1.14/+INSTALL
486 1172 10600 gtexinfo-4.7nb1/+DEINSTALL
670 1886 16642 gtexinfo-4.7nb1/+INSTALL
503 1214 10932 gtk+-1.2.10nb8/+DEINSTALL
687 1928 16974 gtk+-1.2.10nb8/+INSTALL
493 1170 10550 gtk2+-2.4.14/+DEINSTALL
677 1884 16592 gtk2+-2.4.14/+INSTALL
486 1170 10565 gv-3.6.0/+DEINSTALL
670 1884 16607 gv-3.6.0/+INSTALL
449 1071 9792 imlib-1.9.15nb1/+DEINSTALL
633 1785 15834 imlib-1.9.15nb1/+INSTALL
480 1151 10210 iso8879-1986nb3/+DEINSTALL
664 1867 16255 iso8879-1986nb3/+INSTALL
449 1106 11751 jdk-1.1.8nb7/+DEINSTALL
633 1820 17793 jdk-1.1.8nb7/+INSTALL
486 1175 10687 jwhois-3.2.2nb10/+DEINSTALL
670 1889 16729 jwhois-3.2.2nb10/+INSTALL
449 1065 9621 kaffe-1.1.4nb5/+DEINSTALL
633 1779 15663 kaffe-1.1.4nb5/+INSTALL
449 1064 9502 kaffe-x11-1.1.4nb1/+DEINSTALL
633 1778 15544 kaffe-x11-1.1.4nb1/+INSTALL
486 1170 10574 libIDL-0.8.4nb1/+DEINSTALL
670 1884 16616 libIDL-0.8.4nb1/+INSTALL
449 1065 9643 libbonobo-2.8.0nb1/+DEINSTALL
633 1779 15685 libbonobo-2.8.0nb1/+INSTALL
486 1170 10576 libgcrypt-1.2.0nb3/+DEINSTALL
670 1884 16618 libgcrypt-1.2.0nb3/+INSTALL
480 1150 10290 libglade2-2.4.0nb1/+DEINSTALL
664 1866 16335 libglade2-2.4.0nb1/+INSTALL
475 1142 11004 libgnome-2.8.0nb1/+DEINSTALL
659 1856 17041 libgnome-2.8.0nb1/+INSTALL
449 1065 9574 libiconv-1.9.2nb1/+DEINSTALL
633 1779 15616 libiconv-1.9.2nb1/+INSTALL
486 1170 10580 libtool-info-1.5.10nb9/+DEINSTALL
670 1884 16622 libtool-info-1.5.10nb9/+INSTALL
486 1170 10565 m4-1.4.2/+DEINSTALL
670 1884 16607 m4-1.4.2/+INSTALL
486 1170 10579 mailcrypt-3.5.8/+DEINSTALL
670 1884 16621 mailcrypt-3.5.8/+INSTALL
449 1065 9554 metamail-2.7nb6/+DEINSTALL
633 1779 15596 metamail-2.7nb6/+INSTALL
449 1065 9559 nas-1.7/+DEINSTALL
633 1779 15601 nas-1.7/+INSTALL
486 1170 10569 nasm-0.98.38nb1/+DEINSTALL
670 1884 16611 nasm-0.98.38nb1/+INSTALL
475 1125 10227 nautilus-2.8.1nb1/+DEINSTALL
659 1839 16264 nautilus-2.8.1nb1/+INSTALL
464 1110 10062 net-snmp-5.1.2nb2/+DEINSTALL
633 1779 15577 net-snmp-5.1.2nb2/+INSTALL
449 1078 9995 netatalk-2.0.1/+DEINSTALL
633 1792 16037 netatalk-2.0.1/+INSTALL
449 1118 11125 nmh-1.0.4nb5/+DEINSTALL
633 1832 17167 nmh-1.0.4nb5/+INSTALL
481 1158 10424 openmotif-2.1.30nb3/+DEINSTALL
671 1888 16601 openmotif-2.1.30nb3/+INSTALL
449 1070 9665 openslp-1.2.0/+DEINSTALL
633 1784 15707 openslp-1.2.0/+INSTALL
449 1064 9498 pango-1.6.0nb1/+DEINSTALL
633 1778 15540 pango-1.6.0nb1/+INSTALL
449 1064 9502 papersize-1.0.8/+DEINSTALL
633 1778 15544 papersize-1.0.8/+INSTALL
449 1065 9550 pine-4.61nb1/+DEINSTALL
633 1779 15592 pine-4.61nb1/+INSTALL
486 1170 10579 plotutils-2.4.1nb3/+DEINSTALL
670 1884 16621 plotutils-2.4.1nb3/+INSTALL
449 1065 9560 psutils-1.17nb1/+DEINSTALL
633 1779 15602 psutils-1.17nb1/+INSTALL
449 1064 9504 rsync-2.6.3/+DEINSTALL
633 1778 15546 rsync-2.6.3/+INSTALL
486 1170 10573 screen-4.0.2nb1/+DEINSTALL
670 1884 16615 screen-4.0.2nb1/+INSTALL
497 1228 11411 scrollkeeper-0.3.14nb5/+DEINSTALL
681 1944 17456 scrollkeeper-0.3.14nb5/+INSTALL
462 1089 9781 shared-mime-info-0.15nb1/+DEINSTALL
646 1803 15823 shared-mime-info-0.15nb1/+INSTALL
449 1073 9807 smail-3.2.0.121-Pre-20050115/+DEINSTALL
742 2337 19643 smail-3.2.0.121-Pre-20050115/+INSTALL
449 1071 9758 ssh2-3.2.9.1nb2/+DEINSTALL
633 1785 15800 ssh2-3.2.9.1nb2/+INSTALL
449 1064 9525 static-ast-ksh-20030724/+DEINSTALL
633 1778 15567 static-ast-ksh-20030724/+INSTALL
449 1067 9658 t1lib-5.0.2nb3/+DEINSTALL
633 1781 15700 t1lib-5.0.2nb3/+INSTALL
486 1184 10751 teTeX-bin-2.0.2nb2/+DEINSTALL
676 1935 17025 teTeX-bin-2.0.2nb2/+INSTALL
486 1171 10616 wget-1.9.1nb2/+DEINSTALL
670 1885 16658 wget-1.9.1nb2/+INSTALL
449 1065 9565 whoson-2.02a/+DEINSTALL
633 1779 15607 whoson-2.02a/+INSTALL
449 1071 9699 xdg-dirs-1.1/+DEINSTALL
633 1785 15741 xdg-dirs-1.1/+INSTALL
449 1064 9505 xdg-x11-dirs-1.1/+DEINSTALL
633 1778 15547 xdg-x11-dirs-1.1/+INSTALL
449 1072 9852 xmlcatmgr-2.2/+DEINSTALL
633 1786 15894 xmlcatmgr-2.2/+INSTALL
449 1065 9544 xpdf-3.00pl3/+DEINSTALL
639 1816 15818 xpdf-3.00pl3/+INSTALL
507 1224 10927 xpkgwedge-1.12/+DEINSTALL
697 1948 17276 xpkgwedge-1.12/+INSTALL
449 1068 9586 xsoldier-0.96/+DEINSTALL
633 1782 15628 xsoldier-0.96/+INSTALL
108800 287852 2570382 total
Either the installer/deinstaller trusts the whole package, or none of
it. Period. Installing something you don't trust and then hoping to
find out if it did anything nefarious during the process by visually
scanning through tons of mindless verbiage is bogus beyond belief.
Some, OK, most of the pkg_{add,delete} logging ideas that were mentioned
would be extremely nice to have (esp. the logging of which packages were
installed by way of implicit dependencies), but I still would _NOT_ want
the @exec/@unexec lines, nor the 'sh -x' output logged. Anyone who
wants to debug exactly what's happening during an (de)install can use
'-v' (or multiple '-v's if that's ever implemented).
No spew is good news, but minimal progress indication from a
long-running, complex, task is often desirable.
I.e. It might be nice if, as has been suggested, pkg_add printed a
one-line message to stdout for every package that it successfully
installed, and the same kind of thing was done for 'pkg_delete -[rR]',
I'm also sure I'm not alone in desiring the _option_ of turning on some
fkind of _simple_ progress indicator without having to suffer from the
full barage of '-v' (which is really only useful for debugging and for
the entertainment of the insanely curious).
--
Greg A. Woods
H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>