Subject: pkg_comp build lang/ocaml makes too small package (2006Q1)
To: None <>
From: Rhialto <>
List: pkgsrc-users
Date: 04/04/2006 12:39:20
I am currently rebuilding lots of packages on NetBSD/amd64 3.0, using
pkg_comp. I happened to notice that the resulting binary package for
lang/ocaml looked far to small, especially when compared to the previous

-rw-r--r--  1 root  wheel  4159560 Jan 29 12:45 ocaml-3.08.4nb1.tgz
-rw-r--r--  1 root  wheel    78270 Apr  4 01:08 ocaml-3.09.1nb2.tgz

Indeed, there are just a few files in it.

pkg_tarup produces the same short binary package.

It appears that all the files are actually installed, but pkg_info
doesn't know about them:

pkg_comp:default.conf# pkg_info -L ocaml
Information for ocaml-3.09.1nb2:


This looks suspiciously like only the contents of PLIST.stub, and not
the other PLIST.* files.

$ make show-var VARNAME=PLIST_SRC

It looks like in this fragment:

.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc")
BUILD_TARGET+=  opt opt.opt
.  if (${OPSYS} != "Darwin") && \
      !(${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386") && \
      !(${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc")
.  endif

the last .endif should be moved up a bit - ${PKGDIR}/PLIST is only added
if the condition is true.

___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/        -- Cetero censeo "authored" delendum esse.