Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 1996 18:47:02 -0800
From:      John Polstra <jdp@polstra.com>
To:        freebsd-ports@freebsd.org
Subject:   pkg_{add,create}: Stop me before I kill again!
Message-ID:  <199603200247.SAA12891@austin.polstra.com>

next in thread | raw e-mail | index | archive | help
OK.  I'm about to strangle somebody -- possibly myself.

I'm trying to get a new port packed up and committed, but I CANNOT seem
to get the package-related stuff to work right.  I'm running a recent
version of -current:

    FreeBSD 2.2-CURRENT (FREEBIE) #0: Sun Mar 17 15:17:04 PST 1996

The port is "modula-3" and the package name is "modula-3-3.5.3".
Here's how I'm testing it, and how it's failing.

    1.  cd $PORTSDIR/lang/modula-3; make; make install	  -- Works OK.
    2.  make package					  -- Works OK.
    3.  pkg_delete -d modula-3-3.5.3			  -- Works OK.
    4.  pkg_add -v $PORTSDIR/packages/modula-3-3.5.3.tgz  -- Fails.

The output from pkg_add looks like this.  Note, there seems to be
interleaved output from 2 different processes.

-------------------------------------------------------------------------------
Requested space: 47178088 bytes, free space: 378542080 bytes in /usr/tmp/instmp.
008346
extract: Package name is modula-3-3.5.3
extract: CWD to /usr/local
extract: /usr/local/bin/BadBricks
extract: /usr/local/bin/Calculator
extract: /usr/local/bin/Cube
... many more similar lines
extract: /usr/local/lib/m3/pkg/parseparams/FreeBSD2/libm3parseparams.m3x
extract: /usr/local/lib/m3/pkg/parseparams/FreeBSD2/libm3parseparams.so.353.0
Change working directory to /usr/local
Delete file /usr/localFile `/usr/local/lib/m3/FreeBSD2/libGeometry.so.353.0' doe
sn't really exist.
File `/usr/local/lib/m3/FreeBSD2/libImages.so.353.0' doesn't really exist.
File `/usr/local/lib/m3/FreeBSD2/libPEX.so.353.0' doesn't really exist.
File `/usr/local/lib/m3/FreeBSD2/libTempFiles.so.353.0' doesn't really exist.
... many more similar lines
File `/usr/local/lib/m3/pkg/formsedit/FreeBSD2/.M3EXPORTS' doesn't really exist.
File `/usr/local/lib/m3/pkg/formsedit/FreeBSD2/.M3IMPTAB' doesn't really exist.
File `/usr/local/lib/m3/pkg/formsedit/FreeBSD2/.M3WEB' doesn't really exist.
/bin/BadBricks
Delete file /usr/local/bin/Calculator
Delete file /usr/local/bin/Cube
Delete file /usr/local/bin/Fours
Delete file /usr/local/bin/Postcard
... many more lines of "File ... doesn't really exist." and "Delete file ..."
Delete file /usr/local/man/man6/columns.6.gz
Delete file /usr/local/man/man6/solitaire.6.gz
Delete file /usr/local/man/man6/tetris.6.gz
Change working directory to .
-------------------------------------------------------------------------------

Pkg_add exits with status=2, and nothing gets installed.

The "pkg/PLIST" file in my port looks like this:

-------------------------------------------------------------------------------
bin/BadBricks
bin/Calculator
bin/Cube
bin/Fours
... zillions more filenames
man/man6/columns.6.gz
man/man6/solitaire.6.gz
man/man6/tetris.6.gz
@exec /sbin/ldconfig -m %D/lib/m3/FreeBSD2
-------------------------------------------------------------------------------

All the files seem to be present in the modula-3-3.5.3.tgz (package)
file.  In fact, I can't see anything wrong with the package.

Have I run into a bug in pkg_add?  I can only think of two things about
my port that are unusual.  First, there are a _lot_ of files in the
PLIST:

    freebie$ wc pkg/PLIST
	2124    2127   85049 pkg/PLIST

I know that used to cause a problem in pkg_create, but I committed the
fix for that long ago.  (And the package looks OK.)  I thought I had
determined that a large PLIST wouldn't be a problem for pkg_add.  Was I
wrong?

Second, some of the files in the PLIST are symbolic links.  That's OK,
isn't it?

Any other ideas on what the problem might be?
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603200247.SAA12891>