On Wed, Apr 4, 2018 at 11:16 AM, Stefan Sperling <s...@stsp.name> wrote:
> On Wed, Apr 04, 2018 at 10:10:20AM -0400, sven falempin wrote:
>> On Wed, Apr 4, 2018 at 4:23 AM, Stuart Henderson <s...@spacehopper.org> 
>> wrote:
>> > Is there any particular reason for building from source anyway?
>>
>> Thank you for the pointers,
>> i wanted to have a lighter version , and
>> it is probably not a silly idea because someone already did it
>> but before building with Flavors, i just wanted to build the basic package.
>
> I don't see why compiling the subversion port would be useful.
>
> The subversion port only has PSEUDO_FLAVORS, which means you can compile
> just the core 'subversion' package with less build dependencies installed
> if you want, and avoid also compiling the py-subversion, ruby-subversion,
> etc.  sub-packages.
> This can be useful on a -current OpenBSD system in case packages and base
> system sets on the mirrors are out of sync with respect to base system
> libraries, and you need subversion on your -current system "right now".
>
> But there is no advantage to compiling this port on a -release system.
> As long as you don't install additional packages like py-subversion or
> ruby-subversion, the behaviour and content of the core 'subversion' package
> on official mirrors and the one you've compiled is effectively identical.
>
> (There is one exception: The 'maintainer_mode' flavor enables additional
> debugging output, but it doesn't sound like that's what you want.)

I used the FLAVOR option using the Makefile info :

FLAVOR?=
.if ${FLAVOR:Mno_bindings}
FLAVOR += no_perl no_python no_ruby

to get my package doing FLAVOR='no_perl no_python no_ruby' make package

Ports are great because you can patch stuff quickly in case of trouble.
If they build.

AFAIK the no_bindings option is new, and thanks for whoever did it.

Another example:

I am adding the DAV module of nginx and passenger is not building.
I just removed passenger as i do not need it.

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.120
diff -u -p -r1.120 Makefile
--- Makefile    1 Mar 2018 15:58:19 -0000       1.120
+++ Makefile    4 Apr 2018 17:22:16 -0000
@@ -12,7 +12,6 @@ COMMENT-naxsi=                nginx web application fi
 COMMENT-lua=           nginx lua scripting module
 COMMENT-headers_more=  nginx module for setting/adding/clearing headers
 COMMENT-perl=          nginx perl scripting module
-COMMENT-passenger=     nginx passenger (ruby/python/nodejs) integration module

 VERSION=       1.12.2
 DISTNAME=      nginx-${VERSION}
@@ -28,7 +27,6 @@ PKGNAME-naxsi=                nginx-naxsi-${VERSION}
 PKGNAME-lua=           nginx-lua-${VERSION}
 PKGNAME-headers_more=  nginx-headers-more-${VERSION}
 PKGNAME-perl=          nginx-perl-${VERSION}
-PKGNAME-passenger=     nginx-passenger-${VERSION}

 MASTER_SITES=  https://nginx.org/download/
 MASTER_SITES0= https://github.com/simpl/ngx_devel_kit/archive/
@@ -51,7 +49,7 @@ MAINTAINER=   Robert Nagy <robert@openbsd.
 PERMIT_PACKAGE_CDROM=  yes

 MULTI_PACKAGES =       -main -image_filter -geoip -xslt -mailproxy -stream \
-                       -naxsi -perl -passenger -headers_more -lua
+                       -naxsi -perl -headers_more -lua

 FLAVOR ?=
 PSEUDO_FLAVORS =       no_lua
@@ -68,9 +66,6 @@ WANTLIB-naxsi=
 WANTLIB-lua=           ${MODLUA_WANTLIB} m
 WANTLIB-headers_more=
 WANTLIB-perl=          c m perl
-WANTLIB-passenger=     m pthread ${COMPILER_LIBCXX}
-
-BUILD_DEPENDS+=
${MODRUBY_PKG_PREFIX}-passenger-*:www/ruby-passenger

 LIB_DEPENDS-main=      devel/pcre
 LIB_DEPENDS-xslt=      textproc/libxml \
@@ -89,8 +84,6 @@ RUN_DEPENDS-naxsi=    www/nginx,-main=${VER
 RUN_DEPENDS-lua=       www/nginx,-main=${VERSION}
 RUN_DEPENDS-headers_more=www/nginx,-main=${VERSION}
 RUN_DEPENDS-perl=      www/nginx,-main=${VERSION}
-RUN_DEPENDS-passenger= www/nginx,-main=${VERSION} \
-                       ruby23-passenger-*|ruby24-passenger-*:www/ruby-passenger

 NGINX_DIR=     /var/www
 SUBST_VARS=    NGINX_DIR
@@ -103,7 +96,6 @@ PREFIX-geoip=                ${NGINX_MODULES_DIR}
 PREFIX-xslt=           ${NGINX_MODULES_DIR}
 PREFIX-lua=            ${NGINX_MODULES_DIR}
 PREFIX-headers_more=   ${NGINX_MODULES_DIR}
-PREFIX-passenger=      ${NGINX_MODULES_DIR}

 CFLAGS+=       -Wall -Wpointer-arith \
                -I "${LOCALBASE}/include/libxml2" \
@@ -153,11 +145,11 @@ CONFIGURE_ARGS+=  --prefix=${NGINX_DIR} \
                        --with-http_xslt_module=dynamic \
                        --with-mail=dynamic \
                        --with-ipv6 \
+                       --with-http_dav_module \
                        --with-stream=dynamic \
                        --add-dynamic-module=${WRKSRC}/naxsi/naxsi_src/ \
                        --add-dynamic-module=${WRKSRC}/ngx_devel_kit \

--add-dynamic-module=${WRKSRC}/headers-more-nginx-module \
-
--add-dynamic-module=${LOCALBASE}/lib/phusion-passenger${GEM_BIN_SUFFIX}/src/nginx_module

 SUBSTFILES=            conf/nginx.conf \
                        lua-nginx-module/config

and it works.

Maybe i screw up again with cvs, but normally i did not (this time).
Last screw up i did is ignoring the fact CVS file now gave a TAG and cvs up
wont move to HEAD if not explicitly asked.

I know given the order you build them , you may encounter some strange behavior.
That is why i always try to build without modification first.

For subversion , i always go look if i can easily get a <client only>
package, with the svn and svnversion command , not svnserve.

-- 
--
---------------------------------------------------------------------------------------------------------------------
Knowing is not enough; we must apply. Willing is not enough; we must do

Reply via email to