Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jun 2007 19:49:20 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        Rene Ladan <r.c.ladan@gmail.com>
Cc:        freebsd-x11@freebsd.org, bug-followup@freebsd.org
Subject:   Re: ports/113099: [PATCH] sysutils/libchk may skip $X11BASE now
Message-ID:  <86vee8ar0v.knu@iDaemons.org>
In-Reply-To: <465DD002.6020205@gmail.com>
References:  <20070528185007.03E9C16A50C@hub.freebsd.org> <465B2AEA.5050102@gmail.com> <200705292322.35299.dejan.lesjak@ijs.si> <465DD002.6020205@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--pgp-sign-Multipart_Fri_Jun__1_19:49:20_2007-1
Content-Type: text/plain; charset=US-ASCII

Hi,

At Wed, 30 May 2007 21:26:58 +0200,
Rene Ladan wrote:
> Dejan Lesjak wrote:
> > USE_NONDEFAULT_X11BASE is only relevant on FreeBSD before 6.2 (as we
> > cant set the default X11BASE in ports infrastructure there). On
> > newer versions one can define different X11BASE even without also
> > setting USE_NONDEFAULT_X11BASE. The ability to do that is left
> > intentionally.
> > Anyhow, perhaps a more general solution for libchk might be to skip
> > $X11BASE if it is the same as $LOCALBASE?
> >
> This sounds reasonable.  Akinori, what do you think of the attached patch?

> +  if $x11base != $localbase
> +    $bindirs += [
> +      "#{$x11base}/bin",
> +      "#{$x11base}/libexec",
> +      "#{$x11base}/sbin",
> +    ]
> +  end

I suppose this would not make any difference to the behavior, since
duplicated or redundant directories (descendant of another entry,
etc.) are removed in compact_dirs!().

The real problem might be that in that process libchk does not use
realpath(3) to follow symlinks but just performs static, literal
string matching.

So if you have /usr/X11R6 symlinked to /usr/local, libchk will dive
into the directory twice.

Regards,

--
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Different eyes see different things,
    Different hearts beat on different strings --
       But there are times for you and me when all such things agree"

--pgp-sign-Multipart_Fri_Jun__1_19:49:20_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGX/mwkgvvx5/Z4e4RAiXPAJ0UkXVCFJ/X5NV4MruxkntJojbivQCdGYmF
aL6f7fFTbovxqN2rChmq5+Q=
=HhdN
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Fri_Jun__1_19:49:20_2007-1--



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