From owner-freebsd-ports Wed Sep 6 12:21:50 2000 Delivered-To: freebsd-ports@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id DE55437B422; Wed, 6 Sep 2000 12:21:46 -0700 (PDT) Received: from silvia.hip.berkeley.edu (sji-ca41-227.ix.netcom.com [209.111.208.227]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id PAA16671; Wed, 6 Sep 2000 15:21:42 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.11.0/8.11.0) id e86JLd542118; Wed, 6 Sep 2000 12:21:39 -0700 (PDT) (envelope-from asami) To: Marcel Moolenaar Cc: obrien@FreeBSD.ORG, Akinori -Aki- MUSHA , ports@FreeBSD.ORG, marcel@FreeBSD.ORG Subject: Re: USE_LINUX? References: <200006070819.BAA14744@silvia.hip.berkeley.edu> <86u2f5zy3g.wl@localhost.local.idaemons.org> <20000607101234.A80031@dragon.nuxi.com> <39B5C330.6C1A9CE4@cup.hp.com> <39B5E487.53669CAD@cup.hp.com> From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 06 Sep 2000 12:21:35 -0700 In-Reply-To: Marcel Moolenaar's message of "Tue, 05 Sep 2000 23:30:31 -0700" Message-ID: Lines: 65 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: Marcel Moolenaar * > Actually, looking at PLIST.alpha I just found libc is called * > libc.so.6.1 there. Hmm. Should I switch with ${ARCH}, or is there * > another generic file I can RUN_DEPENDS on? I guess I can just use * > ldconfig for both BUILD_DEPENDS and RUN_DEPENDS? * * Yes. Another option is /compat/linux/etc/redhat-release. I explicitly * kept that file for these purposes (but don't care if it's not used :-). * If such is needed in the future we can parse that file for the version * number and complain if it's not appropriate for the port. It might be better if you change the filename to indicate different versions if the need arises. The *_DEPENDS in bsd.port.mk can't read the contents of the file. (Something like "redhat-release-6.1".) * I just looked in /usr/ports/devel/linux_devtools and it contains the * following dependencies: * * RUN_DEPENDS = * ${PREFIX}/etc/redhat-release:${PORTSDIR}/emulators/linux_base * * where PREFIX .equ. LINUXBASE in the patch. I see. * At this time I don't see the need. If new evidence pops up, we can * always decide to do it then. Ok. NO_MTREE for now then. * Yes. I was thinking about why and when a port would need ldconfig and * concluded that it likely doesn't need ldconfig until after it has * installed the libraries. This of course means that a dependency on * ldconfig for the build phase is wrong. If a port builds linux binaries * from source, it depends on linux_devtools and BUILD_DEPENDS should * contain something like gcc. If it downloads and installs a distribution, * then BUILD_DEPENDS can be something like rpm, but not ldcondig. The * install target will need a dependency on ldconfig or libc.so or whatever * to make sure that linux_base is installed first. * * I think that the BUILD_DEPENDS should be empty by default. Only fFr the * ports that depend on linux_devtools to work (linux_kdump for example), * something like * * BUILD_DEPENDS = * ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools * * will do the trick. You mean there aren't any ports that depend *only* on linux_base that needs the libraries (or anything else that it contains) for building? For instance, isn't there something that will run its own binary installer, that needs shared libraries? * > Anyway, as I said above, I think linux_base can be the only port that * > sets PREFIX=${LINUX_BASE} directly and all others can use one of * > USE_LINUX_PREFIX or USE_LINUX. (Sort of like the relationship between * > USE_X_PREFIX and USE_XLIB -- the former implies the latter.) * * Works for me. Ok. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message