Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2000 00:54:46 +0400
From:      Martin McFlySr <Martin@McFlySr.Kurgan.Ru>
To:        FreeBSD-Stable LIST <freebsd-stable@freebsd.org>
Subject:   Error: your port uses an old layout.  Please update it to match this bsd.port.mk. - SOLVED
Message-ID:  <13110241316.20001015005446@McFlySr.Kurgan.Ru>

next in thread | raw e-mail | index | archive | help
Hello FreeBSD-Stable LIST,

uname -a: FreeBSD 3.5S


And now, we have a
"Error:  your  port  uses  an  old  layout.  Please update it to match this
bsd.port.mk." error.

let we want compile /sysutils/pwgen (depends on /devel/libgnugetopt)

look into /devel/libgnugetopt

1 drwxr-xr-x  2 root  wheel  512 Oct 10 08:26 CVS
1 -rw-r--r--  1 root  wheel  601 Jun 29 06:31 Makefile
1 -rw-r--r--  1 root  wheel   65 May  7  1999 distinfo
1 drwxr-xr-x  3 root  wheel  512 Oct 10 08:26 patches
1 drwxr-xr-x  3 root  wheel  512 Oct 10 08:26 pkg
1 -rw-r--r--  1 root  wheel   19 Jun 26  1999 pkg-comment
1 -rw-r--r--  1 root  wheel  124 May  3  1999 pkg-descr
1 -rw-r--r--  1 root  wheel   59 Jun 16 12:47 pkg-plist


look into /devel/libgnugetopt on other machine:


1 -rw-r--r--  1 root  wheel  601 Jun 29 06:31 Makefile
1 -rw-r--r--  1 root  wheel   65 May  7  1999 distinfo
1 -rw-r--r--  1 root  wheel   19 Jun 26  1999 pkg-comment
1 -rw-r--r--  1 root  wheel  124 May  3  1999 pkg-descr
1 -rw-r--r--  1 root  wheel   59 Jun 16 12:47 pkg-plist


hhhm...... may be, CVS, pathes, pkg subdirs are not need?
deleting its...

run 'make'

OOPS! It RUN!! Nice!

1. If you have a "Error: your port uses an old layout.  Please update it to
match  this  bsd.port.mk."  error,  check CVS, pathes, pkg subdirectories -
they are not need, deleting.



Next question:


Machine1 /sysutils/pwgen/Makefile:
PORTNAME=      pwgen
PORTVERSION=   1.15
CATEGORIES=    sysutils
MASTER_SITES=  http://www.tricknology.org/ports/
MAINTAINER=    oddbjorn@tricknology.org
BUILD_DEPENDS= ${LOCALBASE}/include/getopt.h:${PORTSDIR}/devel/libgnugetopt
MAN1=          pwgen.1
WRKSRC=        ${WRKDIR}/pwgen-1
.include <bsd.port.mk>


Machine2 /sysutils/pwgen/Makefile:
PORTNAME=       pwgen
PORTVERSION=    1.15
CATEGORIES=     sysutils
MASTER_SITES=   http://www.tricknology.org/ports/
MAINTAINER=     oddbjorn@tricknology.org
LIB_DEPENDS=    getopt.1:${PORTSDIR}/devel/libgnugetopt
WRKSRC=         ${WRKDIR}/${PORTNAME}-1
MAN1=           pwgen.1
.include <bsd.port.mk>

diff:

>BUILD_DEPENDS= ${LOCALBASE}/include/getopt.h:${PORTSDIR}/devel/libgnugetopt
<LIB_DEPENDS=    getopt.1:${PORTSDIR}/devel/libgnugetopt

make install libgnugetopt on both,

then run 'make' in machine 1:

# make
===>  Extracting for pwgen-1.15
>> Checksum OK for pwgen-1.15.tar.gz.
===>   pwgen-1.15 depends on file: /usr/local/include/getopt.h - found
===>  Patching for pwgen-1.15
===>  Applying FreeBSD patches for pwgen-1.15
===>  Configuring for pwgen-1.15
===>  Building for pwgen-1.15
cc -O -pipe -I/usr/local/include -DALLBYOPTS -DRAND48 -DDEBIAN -c -o pwgen.o pwg
en.c
cc -L/usr/local/lib -o pwgen pwgen.o -lm -lgnugetopt


OK, nice....


then run 'make' in machine 2:

#pwd
/usr/ports/sysutils/pwgen
#make
===>  Extracting for pwgen-1.15
>> Checksum OK for pwgen-1.15.tar.gz.
===>   pwgen-1.15 depends on shared library: getopt.1 - not found
===>    Verifying install for getopt.1 in /usr/ports/devel/libgnugetopt
===>   Returning to build of pwgen-1.15
Error: shared library "getopt.1" does not exist
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Bad :((


Machine1:
#find /usr -name "getopt.1" -print
/usr/src/usr.bin/getopt/getopt.1

#find /usr -name "getopt.h" -print
/usr/local/include/getopt.h

5 -r--r--r--  1 root  wheel  4558 Oct 14 23:35 /usr/local/include/getopt.h
4 -rw-r--r--  1 root  wheel  3301 Mar  6  2000 /usr/src/usr.bin/getopt/getopt.1

Machine2: SOME....


And what??? What we are must do for fix?

Thank you,


-- 
Saturday, October 14, 2000,
23:40

Best regards from future,
Martin McFlySr, HillDale.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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