Pkgsrc torture test

From NetBSD Wiki

Jump to: navigation, search

On this page I am collecting ideas on how to make pkgsrc work in even the most horrible environments.

Setting up a horrible environment

  • /bin, /sbin and /usr are missing completely.
  • All tools work at the lowest requirements (limited line length for sed and awk, a minimal shell).
  • Somewhere at the front of the PATH, there is a directory that has all possible tools in it, but they don't work, so pkgsrc really is forced to make use of the tools wrapper.
  • Low limit for the length of the command line (see IRIX for a good example).
  • Set PKG_CONFIG_PATH to ${LOCALBASE}/lib/pkgconfig, so that pkg-config finds all the packages installed, although it was supposed to not see them.
  • echo exploits the possibility for implementation-defined behavior if the first argument is -n or there is a backslash in any argument.

mk.conf

  • Custom PKGMANDIR, PKGINFODIR, PKGLOCALEDIR.
  • LOCALBASE contains /man/ and other special names.

Things that won't work

  • White-space in WRKDIR, LOCALBASE, PKGSRCDIR.
Personal tools