Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2014 08:52:35 -0500
From:      Jimmy Kelley <ljboiler@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Re: repository for kms
Message-ID:  <20140809135234.GA42206@jmobile.jimmy.localnet>
In-Reply-To: <53E4E313.8030504@gmail.com>
References:  <20140808142559.GA2477@knossos> <53E4E313.8030504@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 08, 2014 at 04:47:47PM +0200, Jan Kokemüller wrote:
> > Yep, I have that exactelly!
> > And still have server 1.7.7_13,1.
> 
> Have you locked some packages related to X? Does "pkg info -ka | grep 
> yes" show any locked packages?
> 
> Can you show the contents of your 
> "/usr/local/etc/pkg/repos/FreeBSD_new_xorg.conf"?
> 
> Can you try "pkg update"? It should output something like this:
> 
>      Updating repository catalogue
>      FreeBSD repository is up-to-date
>      FreeBSD_new_xorg repository is up-to-date
>      All repositories are up-to-date
> 
> And "pkg search xorg-server" should return:
>      xorg-server-1.7.7_13,1
>      xorg-server-1.12.4_8,1
> 
> You could also try "pkg update -f" (update, not upgrade) to forcefully 
> update the repo infos.
> 

Note the order that the different versions of xorg-server are returned in
the search above. If you ran "pkg install", it would pick the first one in
that list, which is NOT the "new" Xorg version.  After reading and re-reading
the pkg.conf(5) man page, I finally figured out what pkg was doing (I have
pkg-1.3.5.1 installed) when it comes to the order in which the defined repos
are searched, and have a repo configuration that appears to work:

  In /usr/local/etc/pkg/repos, add a file FreeBSD.conf with the following contents
  to tell pkg not to search the main FreeBSD repo first when looking for things:

    FreeBSD: {
      enabled: no
    }

  Then paste the contents of /etc/pkg/FreeBSD.conf at the end of the
  /usr/local/etc/pkg/repos/FreeBSD_new_xorg.conf file, with the result being:

    FreeBSD_new_xorg: {
       url: "pkg+http://pkg.FreeBSD.org/${ABI}/new_xorg",
       mirror_type: "srv",
       signature_type: "fingerprints",
       fingerprints: "/usr/share/keys/pkg",
       enabled: yes
    }
    FreeBSD: {
       url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
       mirror_type: "srv",
       signature_type: "fingerprints",
       fingerprints: "/usr/share/keys/pkg",
       enabled: yes
    }
    
"pkg update -f" to rebuild the local catalogs, and
  root@jmobile:/usr/local/etc/pkg/repos # pkg search xorg-server
  xorg-server-1.12.4_8,1
  xorg-server-1.7.7_13,1

This makes the new_xorg repo the first one to search, and even gets the correct
versions of the other bits of new_xorg (dri, etc.).

I'm only seeing one oddity (and others have reported this, too):  for some reason,
the latest "pkg upgrade" wants to install i386-wine-devel along with the other
upgrades needed.

Jimmy



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