Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 12:52:55 +0100
From:      Mike Clarke <jmc-freebsd2@milibyte.co.uk>
To:        freebsd-ports@freebsd.org, papowell@astart.com, ports@freebsd.org
Cc:        freebsd-x11@freebsd.org, freebsd-pkg@freebsd.org
Subject:   Re: FreeBSD Port: x11-servers/xorg-server
Message-ID:  <1661807.9J09C5k3ze@curlew.lan>
In-Reply-To: <54223E95.6080305@astart.com>
References:  <5414A4B6.5010706@UToledo.edu> <CAN6yY1u%2B3y2y0FDgcvbZKHaVCC3htvDPHZ%2BsjoptVa_%2BWjBUig@mail.gmail.com> <54223E95.6080305@astart.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 23 Sep 2014 20:46:29 Patrick Powell wrote:

> I can't check this out right now,  BUT are the keyboard/mouse
> drivers on  the WITH_NEW_XORG
> repo server built correctly?

They appear to be built OK,

curlew:/home/mike% pkg rquery "%n %v %R" xf86-input-mouse
xf86-input-mouse 1.9.0_4 FreeBSD
xf86-input-mouse 1.9.0_4 FreeBSD_new_xorg
curlew:/home/mike% pkg rquery "%n %v %R" xf86-input-keyboard
xf86-input-keyboard 1.8.0_5 FreeBSD
xf86-input-keyboard 1.8.0_5 FreeBSD_new_xorg

Both repos have the same version but when I ran pkg upgrade it used 
FreeBSD for both these drivers with the result that I couldn't log in 
with KDM until I forcibly installed them from FreeBSD_new_xorg

> If that is the case then you can
> force  PKG to fetch them from that REPO
> and then you can (using some magic I don't understand, setting
> something  in the comment field) force
> PKG to always fetch from this repo.
> 
> I have a plan B on this,  which is to have a 'repo search order' 
> capability added to PKG.
> IF you search the WITH_NEW_XORG repo first,  THEN search the
> standard repo AND if you have two packages with the same version,
> etc, then you get it from the first
> repository you searched.

Would an alternative approach when upgrading a package be to check to 
see if the existing package is annotated with a repository tag and use 
its value to decide which repository to use. This would have worked in 
my above example.

curlew:/home/mike% pkg query "%n %At %Av" xf86-input-mouse xf86-input-
keyboard
xf86-input-mouse repo_type binary
xf86-input-mouse repository FreeBSD_new_xorg
xf86-input-keyboard repo_type binary
xf86-input-keyboard repository FreeBSD_new_xorg

It would however require the repository to be specified by the user 
when initially installing the package.

The instructions in https://lists.freebsd.org/pipermail/freebsd-ports/2013-November/087487.html give the impression that the value of 
the annotation should influence the choice of repository  but this 
does not appear to happen.

-- 
Mike Clarke



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