%%PORTVERSION%%

Marco van de Voort marcov at stack.nl
Sat Jan 10 09:22:25 PST 2004


> > 
> > PORTVERSION=    1.9.2
> > 
> > and I made sure that the makefiles do indeed end up in
> > /fpc/porttest/lib/fpc/1.9.2/msg/errord.msg 
> > 
> > The whole (68 line) Makefile is at http://www.stack.nl/~marcov/fpcdevelport.tar.gz
> >> end of "%%PORTVERSION%%" from Marco van de Voort <<
> 
> Add
> 
> PLIST_SUB+=	PORTVERSION="${PORTVERSION}"

Thanks. The port now does make install/deinstall ok. pkg-plist was ok, but a part was
not negatively sorted. Nothing is left behind except $PREFIX/src  and other standard dirs
($PREFIX/lib man bin and share, there are no FPC generated subdirs in there),
should I try to remove these too, or will this result in errors.

However make package after a make install (as advised in the test sequence in the porters
handbook) now goes wrong:

make install PREFIX=/fpc/porttest

[goes fine, ends with registering the port.]

make package

[_restarts_  building adding the prefix doesn't help]

===>  Installing for fpc-devel-1.9.2
===>   Generating temporary packing list
===>  Checking if lang/fpc-devel already installed
===>   fpc-devel-1.9.2 is already installed
      You may wish to 
ake deinstall'' and install this port again
      by 
ake reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of lang/fpc-devel
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/fpc/fpc-devel.

make deinstall PREFIX=/fpc/porttest

[generally goes ok, with already mentioned exceptions. making a mistake with the prefix (like appending
a backslash), will deregister the port though]
--

I suspect something goes wrong with the semaphore flags that signal build done. Since restarting building for the package
seems not necessary:

  56 -rw-r--r--   1 root    wheel  233611 Jan 10 17:40 .PLIST.mktmp
  0 -rw-r--r--   1 root    wheel       0 Jan 10 17:40 .build_done.fpc-devel-1.9.2._fpc_porttest
  0 -rw-r--r--   1 root    wheel       0 Jan 10 17:39 .configure_done.fpc-devel-1.9.2._fpc_porttest
  0 -rw-r--r--   1 root    wheel       0 Jan 10 17:39 .extract_done.fpc-devel-1.9.2._fpc_porttest
  0 -rw-r--r--   1 root    wheel       0 Jan 10 17:39 .patch_done.fpc-devel-1.9.2._fpc_porttest

P.s. sorry for mailing it personally. Adam.


More information about the freebsd-ports mailing list