Date: Thu, 11 Jun 2015 14:01:27 +0800 From: "Euan Thoms" <euan@potensol.com> Cc: freebsd-ports@freebsd.org, "Chris H" <bsd-lists@bsdforge.com> Subject: =?utf-8?q?Re:_New_port_with_USES=3Dgmake_will_not_stage?= Message-ID: <72b3-55792400-25-6b8b4580@60834252> In-Reply-To: <72b3-55792000-1f-6b8b4580@197501871>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, June 11, 2015 13:44 SGT, "Euan Thoms" <euan@potensol.com> = wrote: > > On Thursday, June 11, 2015 13:33 SGT, "Euan Thoms" <euan@potensol.com= > wrote: > > > > > On Thursday, June 11, 2015 13:18 SGT, "Chris H" <bsd-lists@bsdforge= .com> wrote: > > > > > On Thu, 11 Jun 2015 11:33:03 +0800 "Euan Thoms" <euan@potensol.co= m> wrote > > > > > > > I'm making a port for OpenSIPS. It builds successfully, but the= even with > > > > just "make" it installs files to the system instead of to stage= (i.e. to > > > > /usr/local/... instead of /usr/ports/net/opensips/work/stage/us= r/local/...). > > > > > > > > I am using gmake and gcc since that's what's required for OpenS= IPS. > > > > > > > > I've done a similar port before and the FreeBSD ports macros do= the staging > > > > for me. However, even when I tell gmake the DESTDIR=3D${STAGEDI= R} in do-build > > > > and do-install, a "make" just installs the files to /usr/local/= ... . > > > > > > > > I can't find any documentation on how to ensure building uses s= taging. > > > > OpenSIPS doesn't have a configure script AFAIK. It has it's own= menuconfig > > > > which normally generates a Makefile.conf. The only thing useful= in there is > > > > PREFIX=3D , but that is to specify the final destination paths = (also used in > > > > linking I guess). My port passes the compile flags in MAKE=5FAR= GS instead of > > > > using a Makefile.conf file. > > > Kind of a tough call w/o any real information -- your Makefile, t= he source > > > location? :) > > > > Sorry about that. > > > > Source file is here: http://opensips.org/pub/opensips/1.11.5/opensi= ps-1.11.5-latest=5Fsrc.tar.gz > > > > here is my Makefile contents: > > > > # cat Makefile > > # Created by: Euan Thoms <euan@potensol.com> > > # $FreeBSD$ > > > > PORTNAME=3D opensips1-lts > > PORTVERSION=3D 1.11.5 > > CATEGORIES=3D net > > MASTER=5FSITES=3D http://opensips.org/pub/opensips/1.11.5= / > > DISTNAME=3D opensips-${PORTVERSION}-latest=5Fsrc > > > > MAINTAINER=3D euan@potensol.com > > COMMENT=3D OpenSIPS (Open SIP Server) is a mature Op= en Source implementation of a SIP server. > > > > LICENSE=3D GPLv2 > > LIB=5FDEPENDS=3D libxml2.so:${PORTSDIR}/textproc/libxml2= \ > > libmemcached.so:${PORTSDIR}/databases/libme= mcached > > > > BUILD=5FDEPENDS=3D python:${PORTSDIR}/lang/python > > > > WRKSRC=3D ${WRKDIR}/opensips-${PORTVERSION}-tls > > > > OPTIONS=5FDEFINE=3D LDAP MYSQL PGSQL MEMCACHED > > OPTIONS=5FDEFAULT=3D LDAP PGSQL MEMCACHED > > OPTIONS=5FSUB=3D yes > > > > LDAP=5FDESC=3D Build with LDAP support > > MYSQL=5FDESC=3D Build with MySQL support > > PGSQL=5FDESC=3D Build with PostgreSQL support > > MEMCACHED=5FDESC=3D Build with memcached support > > > > USES=3D gmake shebangfix > > USE=5FGCC=3D yes > > > > .include <bsd.port.options.mk> > > > > #post-patch: > > # ${REINPLACE=5FCMD} -e 's|^#include <Python.h>|#include "Pyt= hon.h"|' ${WRKSRC}/ > > > > EXCLUDE=5FMODULES=3D aaa=5Fradius b2b=5Flogic cachedb=5Fcass= andra cachedb=5Fcouchbase \ > > cachedb=5Fmemcached cachedb=5Fmongodb cache= db=5Fredis carrierroute cpl-c db=5Fberkeley \ > > db=5Fhttp db=5Fmysql db=5Foracle db=5Fperlv= db db=5Fpostgres db=5Funixodbc dialplan \ > > event=5Frabbitmq h350 regex identity jabber= json ldap lua httpd mi=5Fxmlrpc=5Fng \ > > mi=5Fxmlrpc mmgeoip osp perl pi=5Fhttp pres= ence presence=5Fdialoginfo presence=5Fmwi \ > > presence=5Fxml pua pua=5Fbla pua=5Fdialogin= fo pua=5Fmi pua=5Fusrloc pua=5Fxmpp python \ > > rest=5Fclient rls sngtc snmpstats xcap xcap= =5Fclient xmpp > > > > INCLUDE=5FMODULES=3D aaa=5Fradius b2b=5Flogic cachedb=5Fmemc= ached carrierroute \ > > cpl-c db=5Fpostgres dialplan event=5Frabbit= mq h350 regex identity jabber json \ > > ldap httpd mi=5Fxmlrpc=5Fng mi=5Fxmlrpc mmg= eoip perl pi=5Fhttp presence \ > > presence=5Fdialoginfo presence=5Fmwi presen= ce=5Fxml pua pua=5Fbla pua=5Fdialoginfo \ > > pua=5Fmi pua=5Fusrloc pua=5Fxmpp python res= t=5Fclient rls xcap xcap=5Fclient xmpp > > > > MAKE=5FARGS+=3D PREFIX=3D${LOCALBASE} > > MAKE=5FARGS+=3D exclude=5Fmodules=3D"${EXCLUDE=5FMODULE= S}" include=5Fmodules=3D"${INCLUDE=5FMODULES}" > > > > #do-build: > > # cd ${WRKSRC} && ${GMAKE} ${MAKE=5FARGS} ${ALL=5FTARGET} > > # > > #do-install: > > # cd ${WRKSRC} && ${GMAKE} ${MAKE=5FARGS} ${INSTALL=5FTARGET}= > > > > .include <bsd.port.mk> > > #### EOF ############ > > > > I can't find the make files for stage to drill down and see what's = going wrong. Any pointers to the script that "make stage" uses? > > Oops, I just found a folder in the source tarballs packaging folder c= alled "freebsd". And inside that is what looks like a fully baked port.= > > # ls work/opensips-1.11.5-tls/packaging/freebsd > Makefile distinfo files/ pkg-descr > > > I haven't tried it yet, but I am now wondering why it isn't in the po= rts tree. Somebody has gone to the effort to make it. Well, that port in the tarballs' use of macros is outdated and it only = support i386 which is strange (ONLY=5FFOR=5FARCHS=3Di386). But the patc= hes may come in handy getting it to build with clang. Currently my port= got it building with USE=5FGCC=3Dyes without any patching. Just that I= can't get it to stage. -- Regards, Euan Thoms
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?72b3-55792400-25-6b8b4580>