Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 2004 10:13:11 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Sven Hohage <hohage@muenster.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Java installation: pdmu not found
Message-ID:  <20040308101311.GB2081@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <404C214B.8050303@muenster.de>
References:  <404C214B.8050303@muenster.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--5/uDoXvLw7AC5HRs
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Mar 08, 2004 at 08:31:23AM +0100, Sven Hohage wrote:
> I'm a newbie using FreeBSD  - almost using 5.2 for some days as a server=
=20
> in my homelan(Pentium 3 700).
> So I'm not sure if my question is more likely to be thrown in the=20
> Newbies list.
>=20
> I tried to install the linux-sun-jdk14.
> Before that I updated the port because I couldn't find 1.4.2_02 on the=20
> sun website which was neeced by the distfinfo checksum.
> I made a portupgrade -a and the started as root with make install but=20
> the compilation process stopped very quickly with:
> cd /usr/ports/java/linux-sun-jdk14/work/j2sdk1.4.2_03 && /usr/bin/find .=
=20
> -print  |  -pdmu -R root:wheel /usr/local/linux-sun-jdk1.4.2
> -pdmu: not found
> *** Error code 127
>=20
> Any hint is very welcomed.

You've updated just the java/linux-sun-jdk14 port, but not the common
code in /usr/ports/Mk that it relies upon.  The problem you're seeing
is a missing definition of the $(CPIO) variable that was added to the
bsd.port.mk file.

Attempting to update the ports tree piecemeal as you are doing is
unlikely to be very productive: as well as problems with the core
build system you'll also run into troubles where dependencies have
been updated -- particularly shared libraries.

The most effective way of keeping up to date is to cvsup the *whole*
ports tree -- doing this regularly: say once a week, will not overtax
even a low bandwidth connection such as a POTS dialup, although
pulling down the distfiles for updated ports can be another matter.

The easiest way to get going with cvsup is:

    # pkg_add -r cvsup-without-gui

Then edit /etc/make.conf to set the following variables:

    SUP_UPDATE=3D     yes
    #
    SUP=3D            /usr/local/bin/cvsup
    SUPFLAGS=3D       -g -L 2
    SUPHOST=3D        cvsup.XX.FreeBSD.org
    #SUPFILE=3D        /usr/share/examples/cvsup/stable-supfile
    PORTSSUPFILE=3D   /usr/share/examples/cvsup/ports-supfile
    #DOCSUPFILE=3D     /usr/share/examples/cvsup/doc-supfile

where the SUPHOST setting should be set to your local cvsup mirror.
I've shown entries for cvsup'ing src and docs commented out, but you
can use those as well, if you want.

Then whenever you want to update your ports tree, just do:

    # cd /usr/ports
    # make update
    # make index

and then portupgrade(1) to your heart's content.

One (entirely optional) tip that can save you some bandwidth is to
tell cvsup not to update the files INDEX (used on 4.x) and INDEX-5
(which 'make index' will replace anyhow).  Do that by adding the
lines:

    ports/INDEX
    ports/INDEX-5

to the /usr/sup/refuse file -- just create one if it doesn't exist already.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--5/uDoXvLw7AC5HRs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFATEc3dtESqEQa7a0RAkPXAJ9XxS2vbQ8u3EvlRp4m8EqyTJNN6wCfQulg
r3Z6vj8YFKBncN03ggQ3iw4=
=2eNB
-----END PGP SIGNATURE-----

--5/uDoXvLw7AC5HRs--



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