Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2008 14:00:02 +0500
From:      "Roman Serbski" <mefystofel@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   portupgrade and quotes inside pkgtools.conf
Message-ID:  <cca5083b0804210200o504692c2la721b2a673400140@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi list-

I'm trying to upgrade apache22 installed from ports using portupgrade
under FreeBSD 6.3-STABLE.

%portupgrade --version
portupgrade 2.4.3

Here is apache22 related information in pkgtools.conf:

MAKE_ARGS = {
        'www/apache22' => [
                'WITHOUT_IPV6=1',
                'WITH_STATIC_MODULES="include rewrite auth vhost_alias"',
                'WITH_SUEXEC=yes',
                'SUEXEC_DOCROOT=/home',
                'WITH_SSL_MODULES=yes',
                ],
}

It looks like I'm having problems with WITH_STATIC_MODULES="include
rewrite auth vhost_alias" containing quotes ("").

Here is the error I receive while executing 'portupgrade apache-2.2.4':

** Makefile possibly broken: www/apache22:
        Syntax error: Unterminated quoted string
        "/usr/ports/Mk/bsd.apache.mk", line 228: warning: "for module
in auth_basic auth_digest authn_file authn_dbd authn_dbm authn_anon
authn_default  authn_alias authz_host authz_groupfile authz_user
authz_dbm  authz_owner authz_default cache disk_cache file_cache
mem_cache dav dav_fs actions alias asis autoindex cern_meta  cgi
charset_lite dbd deflate dir dumpio env expires  headers imagemap
include info log_config logio mime  mime_magic negotiation rewrite
setenvif speling status  unique_id userdir usertrack vhost_alias
filter version ssl suexec ; do  echo "include |  /usr/bin/grep -wq
${module} 2> /dev/null ;  if [ "${?}" = "0" ] ; then  echo
"--enable-${module}";  else  echo "--enable-${module}=shared";  fi;
done" returned non-zero status
        Syntax error: Unterminated quoted string
        "/usr/ports/Mk/bsd.apache.mk", line 254: warning: "for module
in auth_basic auth_digest authn_file authn_dbd authn_dbm authn_anon
authn_default  authn_alias authz_host authz_groupfile authz_user
authz_dbm  authz_owner authz_default cache disk_cache file_cache
mem_cache dav dav_fs actions alias asis autoindex cern_meta  cgi
charset_lite dbd deflate dir dumpio env expires  headers imagemap
include info log_config logio mime  mime_magic negotiation rewrite
setenvif speling status  unique_id userdir usertrack vhost_alias
filter version ssl suexec ; do  echo "include | /usr/bin/grep -wq
${module} 2> /dev/null ||  echo ${module};  done" returned non-zero
status
        apache-2.2.8

/usr/local/sbin/portupgrade:1433:in `get_pkgname': Makefile broken
(MakefileBrokenError)
        from /usr/local/sbin/portupgrade:622:in `main'
        from /usr/local/sbin/portupgrade:613:in `each'
        from /usr/local/sbin/portupgrade:613:in `main'
        from /usr/local/sbin/portupgrade:588:in `catch'
        from /usr/local/sbin/portupgrade:588:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `call'
        from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `order!'
        from /usr/local/lib/ruby/1.8/optparse.rb:1205:in `catch'
        from /usr/local/lib/ruby/1.8/optparse.rb:1205:in `order!'
        from /usr/local/lib/ruby/1.8/optparse.rb:1196:in `order'
        from /usr/local/sbin/portupgrade:565:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize'
        from /usr/local/sbin/portupgrade:229:in `new'
        from /usr/local/sbin/portupgrade:229:in `main'
        from /usr/local/sbin/portupgrade:2173

Removing quotes gives the following:

--->  Upgrading 'apache-2.2.4' to 'apache-2.2.8' (www/apache22)
--->  Building '/usr/ports/www/apache22' with make flags:
WITHOUT_IPV6=1 WITH_STATIC_MODULES=include rewrite auth vhost_alias
WITH_SUEXEC=yes SUEXEC_DOCROOT=/home WITH_SSL_MODULES=yes
make: don't know how to make rewrite. Stop
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/apache22 (apache-2.2.4)   (clean error)

Your advise would be greatly appreciated.

Thank you.



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