Mailing List Archive

More bashrc usage
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

While I was waiting for a package to compile, I worked on a new bashrc
some. You can get the bashrc file from here:

http://dev.gentoo.org/~chriswhite/bashrc

to which you can stick it in /etc/portage/ if you want to use it.

two main things it includes are pathchk and whatis FEATURES. Pathchk is
used to check for POSIX compatibility in file naming. This can be
helpful when trying to see how POSIX compatible your packages are. This
includes (taken from info page):

1. one of the existing directories in NAME does not have search
(execute) permission,

2. the length of NAME is larger than its filesystem's maximum file
name length,

3. the length of one component of NAME, corresponding to an existing
directory name, is larger than its filesystem's maximum length for
a file name component.

I really hope #1 doesn't come up on your package.. because that would
really not be a Good Thing(tm) #2 and #3 is probably what you're after.
Note that this program seems to be pretty strict (14 characters max
filenames to work on ALL POSIX systems). The bashrc file simply
recurses the source directory, pathchk-ing every file and putting the
results in ${PATHCHECK_LOG_DIR}/pathcheck.log (which is set to
/var/log/pathcheck by defualt).

the whatis FEATURE will update the whatis database when you're done
installing a package. This is helpful for keeping it up to date. If
you haven't updated the whatis database in awhile, it could take a
_long_time_. After that it's not really that bad and shouldn't take but
a minute or so (depends on system) to get the update finished.

This is something I slapped together late at night, so don't expect the
world, cause I'm not going to give it to you (...yet /me takes out world
domination plans).

Chris White
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCiftjFdQwWVoAgN4RAvbgAJ9nF/amQlbrkofAVXUthK0Pc4FA0QCgow96
UBnzr7L7uUYVGw7TthJBuFU=
=mkR3
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list