/usr/local removed... but entries for it exist yet!
From: Igor Sobrado (igor_at_no-spam.on.the.net)
Date: 12/13/04
- Previous message: Igor Sobrado: "Re: binaries not stripped in NetBSD 2.0?"
- Next in thread: Igor Sobrado: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: Igor Sobrado: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: Frederick Bruckman: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: nabis: "Re: /usr/local removed... but entries for it exist yet!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 13 Dec 2004 10:09:12 +0100
Hello.
I do not want to open another wrong PR about NetBSD. I prefer asking
here before opening it. The issue I want to manage is the next one:
NetBSD 2.0 has removed /usr/local. I understand that this directory
will not be used in the future. From my knowledge, it was not used
for its real purpose since mid-90's at least. It should have software
developed locally (e.g., shell scripts and tools not generally
available), and not third party packages. That is the reason
/opt exists in SVR4.x and /usr/pkg in NetBSD.
If it is right, entries related with /usr/local should be removed
from both the shell initialization scripts and /etc/man.conf, as
this directory will not contain binaries or man pages again, though.
These are the patches I propose, any advice will be greatly
appreciated:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./dot.cshrc.patch
# ./dot.profile.patch
# ./man.conf.patch
# ./shar.txt
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./dot.cshrc.patch
sed 's/^X//' >./dot.cshrc.patch << 'END-of-./dot.cshrc.patch'
X--- dot.cshrc 2004-12-13 09:40:51.000000000 +0100
X+++ dot.cshrc.proposed 2004-12-13 09:43:13.000000000 +0100
X@@ -21,8 +21,7 @@
X setenv EXINIT 'set autoindent'
X setenv PAGER more
X
X-set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} \
X- /usr/local/{,s}bin)
X+set path = (~/bin /{,s}bin /usr/{{,s}bin,X11R6/bin,pkg/{,s}bin,games})
X
X if ($?prompt) then
X # An interactive shell -- set some stuff up
END-of-./dot.cshrc.patch
echo x - ./dot.profile.patch
sed 's/^X//' >./dot.profile.patch << 'END-of-./dot.profile.patch'
X--- dot.profile 2004-12-13 09:40:51.000000000 +0100
X+++ dot.profile.proposed 2004-12-13 09:44:10.000000000 +0100
X@@ -9,8 +9,8 @@
X # See sh(1) for details.
X #
X
X-PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin
X-PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
X+PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
X+PATH=${PATH}:/usr/pkg/bin:/usr/pkg/sbin:/usr/games
X export PATH
X
X EDITOR=vi
END-of-./dot.profile.patch
echo x - ./man.conf.patch
sed 's/^X//' >./man.conf.patch << 'END-of-./man.conf.patch'
X--- man.conf 2004-12-13 09:39:26.000000000 +0100
X+++ man.conf.proposed 2004-12-13 09:41:24.000000000 +0100
X@@ -7,7 +7,6 @@
X _whatdb /usr/share/man/whatis.db
X _whatdb /usr/X11R6/man/whatis.db
X _whatdb /usr/pkg/man/whatis.db
X-_whatdb /usr/local/man/whatis.db
X
X # Subdirectories for paths ending in '/', IN SEARCH ORDER.
X _subdir cat1 man1 cat8 man8 cat6 man6 cat2 man2 cat3 man3 cat4 man4 cat5 man5 cat7 man7 cat3f man3f cat9 man9 catn mann catl manl
X@@ -33,12 +32,11 @@
X # directory with all of the subdirectories listed for the keyword _subdir.
X
X # default
X-_default /usr/{share,X11R6,pkg,local}/man/
X+_default /usr/{share,X11R6,pkg}/man/
X
X # Other sections that represent complete man subdirectories.
X X11R6 /usr/X11R6/man/
X packages /usr/pkg/man/
X-local /usr/local/man/
X
X doc /usr/{pkg,share}/doc/{sendmail/op,sendmail/intro}
X
END-of-./man.conf.patch
echo x - ./shar.txt
sed 's/^X//' >./shar.txt << 'END-of-./shar.txt'
X# This is a shell archive. Save it in a file, remove anything before
X# this line, and then unpack it by entering "sh file". Note, it may
X# create directories; files and directories will be owned by you and
X# have default permissions.
X#
X# This archive contains:
X#
X# .
X# ./dot.cshrc.patch
X# ./dot.profile.patch
X# ./man.conf.patch
X# ./shar.txt
X#
Xecho c - .
Xmkdir -p . > /dev/null 2>&1
Xecho x - ./dot.cshrc.patch
Xsed 's/^X//' >./dot.cshrc.patch << 'END-of-./dot.cshrc.patch'
XX--- dot.cshrc 2004-12-13 09:40:51.000000000 +0100
XX+++ dot.cshrc.proposed 2004-12-13 09:43:13.000000000 +0100
XX@@ -21,8 +21,7 @@
XX setenv EXINIT 'set autoindent'
XX setenv PAGER more
XX
XX-set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} \
XX- /usr/local/{,s}bin)
XX+set path = (~/bin /{,s}bin /usr/{{,s}bin,X11R6/bin,pkg/{,s}bin,games})
XX
XX if ($?prompt) then
XX # An interactive shell -- set some stuff up
XEND-of-./dot.cshrc.patch
Xecho x - ./dot.profile.patch
Xsed 's/^X//' >./dot.profile.patch << 'END-of-./dot.profile.patch'
XX--- dot.profile 2004-12-13 09:40:51.000000000 +0100
XX+++ dot.profile.proposed 2004-12-13 09:44:10.000000000 +0100
XX@@ -9,8 +9,8 @@
XX # See sh(1) for details.
XX #
XX
XX-PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin
XX-PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
XX+PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
XX+PATH=${PATH}:/usr/pkg/bin:/usr/pkg/sbin:/usr/games
XX export PATH
XX
XX EDITOR=vi
XEND-of-./dot.profile.patch
Xecho x - ./man.conf.patch
Xsed 's/^X//' >./man.conf.patch << 'END-of-./man.conf.patch'
XX--- man.conf 2004-12-13 09:39:26.000000000 +0100
XX+++ man.conf.proposed 2004-12-13 09:41:24.000000000 +0100
XX@@ -7,7 +7,6 @@
XX _whatdb /usr/share/man/whatis.db
XX _whatdb /usr/X11R6/man/whatis.db
XX _whatdb /usr/pkg/man/whatis.db
XX-_whatdb /usr/local/man/whatis.db
XX
XX # Subdirectories for paths ending in '/', IN SEARCH ORDER.
XX _subdir cat1 man1 cat8 man8 cat6 man6 cat2 man2 cat3 man3 cat4 man4 cat5 man5 cat7 man7 cat3f man3f cat9 man9 catn mann catl manl
XX@@ -33,12 +32,11 @@
XX # directory with all of the subdirectories listed for the keyword _subdir.
XX
XX # default
XX-_default /usr/{share,X11R6,pkg,local}/man/
XX+_default /usr/{share,X11R6,pkg}/man/
XX
XX # Other sections that represent complete man subdirectories.
XX X11R6 /usr/X11R6/man/
XX packages /usr/pkg/man/
XX-local /usr/local/man/
XX
XX doc /usr/{pkg,share}/doc/{sendmail/op,sendmail/intro}
XX
XEND-of-./man.conf.patch
Xecho x - ./shar.txt
Xsed 's/^X//' >./shar.txt << 'END-of-./shar.txt'
END-of-./shar.txt
exit
- Previous message: Igor Sobrado: "Re: binaries not stripped in NetBSD 2.0?"
- Next in thread: Igor Sobrado: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: Igor Sobrado: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: Frederick Bruckman: "Re: /usr/local removed... but entries for it exist yet!"
- Reply: nabis: "Re: /usr/local removed... but entries for it exist yet!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|