Date: Wed, 29 Mar 2006 16:23:11 +0200 From: "Spil Oss" <spil.oss@googlemail.com> To: "Alex Zbyslaw" <xfb52@dial.pipex.com>, freebsd-questions@freebsd.org Subject: Re: Incorrect inline documentation in /usr/local/etc/pkgtools.conf Message-ID: <5fbf03c20603290623g33ccce0dy@mail.gmail.com> In-Reply-To: <442A9072.8070500@dial.pipex.com> References: <5fbf03c20603290220l358768fy@mail.gmail.com> <442A9072.8070500@dial.pipex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Alex,
Thanks a lot, that makes it very clear for me.
Would it be a good idea to make that specific in the pkgtools.conf
file? There must be more FreeBSD newbies that can run into the same
trouble.
Once I got a correct glob in, I could indeed see that the knob I had
set was used.
Thanks again,
Spil.
On 29/03/06, Alex Zbyslaw <xfb52@dial.pipex.com> wrote:
> Spil Oss wrote:
>
> >Dear all,
> >
> >Spent a lot of time trying to get portupgrade to install phpbb in the
> >directory I want.
> >
> >Tried a lot of things, but only when I found out that ports_glob does
> >NOT return anything on 'www/phpbb-*' I could fix it.
> >
> >The inline documentation in pkgtools.conf lead me to believe I had to ad=
d
> > MAKE_ARGS =3D {
> > 'www/phpbb-*' =3D> 'WWWDOCROOT',
> > }
> >to my pkgtools.conf file to add it.
> >[...]
> > # e.g.:
> > # MAKE_ARGS =3D {
> > # 'databases/mysql323-*' =3D> 'WITH_CHARSET=3Dujis',
> > # 'ruby18-*' =3D> 'RUBY_VER=3D1.8',
> > # 'ruby16-*' =3D> 'RUBY_VER=3D1.6',
> > # }
> >
> >
> The short answer is that you want either 'www/phpbb' or 'phpbb-*'
>
> The 'directory/package' form matches against the directory structure
> under /usr/ports. The directory you are after is 'www/phpbb'.
>
> The form without the directory structure matches against the installed
> version of the package (I'm not sure how it finds it if the package
> isn't installed, but I believe it does).
>
> You are probably being mislead by the "databases/mysql323-*" example,
> as, at first glance, it looks like it is wildcarding against a version
> number, like the following ruby examples, but it isn't. If you look
> under /usr/ports, you will find directories like
> "databases/mysql323-server" and "databases/mysql323-client" and it is
> those directory names that the wildcard pertains to.
>
> I prefer the directory form, myself, because it tells me immediately
> where I can find the package if I want to read the Makefile to find any
> new or interesting knobs.
>
> Having said that, I have had occasional trouble in the past with
> portupgrade refusing to recognise a directory in this format.
> Specifically, I could not, for love nor money, get it to recognise
> "www/apache20" and went with "apache-2*" instead. I have no idea if
> this was a portupgrade problem or something obvious I was missing; if it
> was a problem it might have been fixed by now.
>
> When building with portupgrade, you can clearly see when options are
> picked up. Try re-installing a package for which you set knobs, and
> watch the output. For any new items I add, I always check the output
> carefully first time in case I made a typo or other snafu.
>
> --Alex
>
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5fbf03c20603290623g33ccce0dy>
