From owner-freebsd-ports Wed Jul 4 2:22:52 2001 Delivered-To: freebsd-ports@freebsd.org Received: from k0r3.reflektor.cz (k0r3.reflektor.cz [212.24.129.54]) by hub.freebsd.org (Postfix) with SMTP id 3031A37B408 for ; Wed, 4 Jul 2001 02:22:48 -0700 (PDT) (envelope-from cynic@mail.cz) Received: (qmail 15934 invoked by uid 202); 4 Jul 2001 09:22:46 -0000 Received: from unknown (HELO zvahlav.mail.cz) (212.24.143.100) by k0r3.reflektor.cz with SMTP; 4 Jul 2001 09:22:46 -0000 Message-Id: <5.1.0.14.2.20010704111952.01f655f8@mail.cz> X-Sender: cynic@mail.cz X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 04 Jul 2001 11:31:00 +0200 To: "David W. Chapman Jr." , From: Cynic Subject: Re: samba port install failure... general question In-Reply-To: <014b01c10283$f944ede0$fe0c4042@inethouston.net> References: <5.1.0.14.2.20010701231030.020399d0@mail.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi there, At 01:17 7/2/2001, David W. Chapman Jr. wrote the following: -------------------------------------------------------------- >> is there a reason for a port to assume it's installed in >> /usr/local? I just tried to build samba-devel, and it failed, >> because there's no /usr/local/samba/share/ (the command line >> was # make PREFIX="/usr/local/samba" install, Makefile contains >> >> post-install: >> ${MKDIR} ${PREFIX}/share/examples/samba >> >PREFIX is not always /usr/local, but you can assume that the ports system >wants to install into a PREFIX that looks like /usr/local or it will try to >make your PREFIX look like /usr/local basically. # make PREFIX=/tmp/samba install succeeded indeed, so it's the constraints stuff you mention below >> and other things like that, and # make install failed with >> >> Installing SWAT in /usr/local/samba/share/swat >> Installing the Samba Web Administration Tool >> mkdir: /usr/local/samba/share: No such file or directory >> Failed to make directory /usr/local/samba/share/swat, does root >> have privileges? >> >This would be because ports can't modify directories under /usr/local or >create them for that matter(to the best of my knowledge, I"m sure someone >more knowledgeable could comment). If you want it installed in I don't understand why this is so. The ports stuff requires one to be logged in as root anyway, so why should it be designed so that one cannot install a port where they want? >/usr/local/samba, just download the tarball and compile it to avoid this >problem if you absolutely need it in /usr/local/samba, but that's not the >best place for it, where the port puts it is probably the place you would >want it 95% of the time. Well, that depends, I guess. Clobbering /usr/local with loads of software is not what I'd like to achieve. >> I tried to workaround the limitation with this: >> >> [toor(root)@freepuppy samba-devel]# mkdir /usr/local/samba/share >> [toor(root)@freepuppy samba-devel]# make clean >> [toor(root)@freepuppy samba-devel]# make PREFIX="/usr/local/samba" build >> [toor(root)@freepuppy samba-devel]# make install >> >If you run > >mkdir /tmp/samba >make clean install PREFIX=/tmp/samba > >that will prove that they don't assume PREFIX=/usr/local > > From my understanding ports can't modify anything under /usr/local that >doesn't already exist and that's where your problem lies. So a solution for >you would be to let it install it where it wants or compile it from the >source. Is this documented anywhere? And what is the rationale? I surely couldn't find anything related in the Handbook or Porter's Handbook. Thanks for your reply cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message