pkg.conf is deprecated

Hi,

When I was updating some packages with portmaster, I got this error:
Code:
pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file
I'm not sure what this means and what I should do :\

This is what /usr/local/etc/pkg.conf says:
Code:
# System-wide configuration file for pkg(1)
# For more information on the file format and
# options please refer to the pkg.conf(5) man page

# Configuration options
PACKAGESITE         : http://pkg.freebsd.org/${ABI}/latest
#PKG_DBDIR          : /var/db/pkg
#PKG_CACHEDIR       : /var/cache/pkg
#PORTSDIR           : /usr/ports
#PUBKEY             : /etc/ssl/pkg.conf
#HANDLE_RC_SCRIPTS   : NO
#PKG_MULTIREPOS     : NO
#ASSUME_ALWAYS_YES   : NO
#SYSLOG             : YES
#SHLIBS             : NO
#AUTODEPS           : NO
#PORTAUDIT_SITE     : http://portaudit.FreeBSD.org/auditfile.tbz

# Repository definitions
#repos:
#  default : http://example.org/pkgng/
#  repo1 : http://somewhere.org/pkgng/repo1/
#  repo2 : http://somewhere.org/pkgng/repo2/
It seems identical to the pkg.conf on another FreeBSD 9.1 server, that doesn't complain about anything.
 
Yeah, I went looking in UPGRADING too, I would have expected some information there. My pkg hasn't changed yet, I haven't updated for a while, but is the correct format in pkg.conf(5)? I may need to change my /usr/local/etc/pkg.conf too some time soon I guess :e
 
It's almost all there but it fails to mention the braces that have to enclose the settings. This is how it should be now so that pkg doesn't complain:

Code:
  FreeBSD: { 
    url             : "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
    enabled         : yes,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }

On stable/10 the file to edit is /etc/pkg/FreeBSD.conf, took me while to figure that out.
 
I have mine setup similarly, except I'm using the URL that came with FreeBSD 10.0-BETA3. I still get the error even if I use the ABI URL.
 
Do you still have a PACKAGESITE set in /usr/local/etc/pkg.conf? You should edit that out if you do. In fact redo the file completely by copying the pkg.conf.sample over what you have now:

Code:
mv/usr/local/etc/pkg.conf /usr/local/etc/pkg.conf.old
cp /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf
chmod 640 /usr/local/etc/pkg.conf
 
What's the difference between that and /etc/pkgFreeBSD.conf? pkg.conf.sample doesn't even have a URL or PACKAGESITE line for my FreeBSD 10.0-BETA3 install.

/etc/pkgFreeBSD.conf:
Code:
# $FreeBSD: stable/10/etc/pkg/FreeBSD.conf 257572 2013-11-03 13:00:12Z bdrewery $
FreeBSD: {
  url: "pkg+http://pkg.freebsd.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "none",
  fingerprints: "/usr/share/keys/pkg",
  enabled: "yes"
}

pkg.conf.sample:
Code:
# System-wide configuration file for pkg(8)
# For more information on the file format and
# options please refer to the pkg.conf(5) man page

# Configuration options
#PKG_DBDIR	    : /var/db/pkg
#PKG_CACHEDIR	    : /var/cache/pkg
#PORTSDIR	    : /usr/ports
#PUBKEY		    : /etc/ssl/pkg.conf
#HANDLE_RC_SCRIPTS  : NO
#ASSUME_ALWAYS_YES  : NO
#SYSLOG		    : YES
#SHLIBS		    : NO
#AUTODEPS	    : NO
#PORTAUDIT_SITE	    : http://portaudit.FreeBSD.org/auditfile.tbz
#PKG_PLUGINS_DIR    : /usr/local/lib/pkg/plugins
#PKG_ENABLE_PLUGINS : YES
#PLUGINS	    : [commands/mystat]
#REPO_AUTOUPDATE    : YES
ALIAS              : {
  all-depends: query %dn-%dv,
  annotations: info -A,
  build-depends: info -qd,
  download: fetch,
  iinfo: info -i -g -x,
  isearch: search -i -g -x,
  leaf: query -e "%a == 0" "%n-%v",
  leaf: query -e "%a == 0" "%n-%v",
  list: info -ql,
  origin: info -qo,
  provided-depends: info -qb,
  raw: info -R,
  required-depends: info -qr,
  shared-depends: info -qB,
  show: info -f -k,
  size: info -sq,
  }
 
The /etc/pkg/FreeBSD.conf is the system provided configuration for the official package repository. You should edit that if you still get the warning about the enabled setting:

Code:
    enabled: YES

The /usr/local/etc/pkg.conf.sample is a sample configuration file as the name suggests. It's copied to /usr/local/etc/pkg.conf when installing ports-mgmt/pkg if there's no /usr/local/etc/pkg.conf present. You're not supposed to have a PACKAGESITE setting anymore in pkg.conf with PKG v1.2 but use the system provided repository configurations in /etc/pkg or your own custom repositories at /usr/local/etc/pkg/repos.
 
OK, now it's odd. I put back /etc/pkg/FreeBSD.conf the original way, and used the sample file for /usr/local/etc/pkg.conf and I now get this:

Code:
pkg: /etc/pkg//FreeBSD.conf file is using a deprecated format. Please replace it with the following:
====== BEGIN /etc/pkg//FreeBSD.conf ======
FreeBSD : {
    url : "pkg+http://pkg.freebsd.org/${ABI}/latest",
    enabled : true,
    mirror_type : "SRV",
    signature_type : "FINGERPRINTS",
    fingerprints : "/usr/share/keys/pkg",
}

====== END /etc/pkg//FreeBSD.conf ======

Updating repository catalogue

digests.txz                                                                                                                   0%    0     0.0KB/s   0.0KB/s   --:-- ETA
digests.txz                                                                                                                  17%  170KB 170.0KB/s 170.0KB/s   00:04 ETA
digests.txz                                                                                                                  50%  480KB 184.0KB/s 310.0KB/s   00:02 ETA
digests.txz                                                                                                                  74%  710KB 188.6KB/s 230.0KB/s   00:01 ETA
digests.txz                                                                                                                 100%  948KB 237.0KB/s 238.0KB/s   00:04    
pkg: No signature found
pkg: Unable to find catalogs

And /etc/pkg/FreeBSD.conf is exactly like it's listed above. Not worried about the signature since I'm using a beta, but unable to find catalogs is odd.
 
I fat fingered and deleted a file. I've been searching the forums, Google, and DuckDuckGo but haven't found the answer. What is the repository URL for FreeBSD 10.0-BETA3? From what I remembered it looked like this:
Code:
url        : "pkg+http://pkg.freebsd.org/freebsd:10:amd64:??/????
Thanks.
 
"pkg+http://pkg.freebsd.org/${ABI}/latest" is the correct one, however it won't work with PKG v1.2 until the repository has been rebuilt with the same version of pkg. There are however other problems that make the package repository unusable for 10.0-BETA versions. You'll have to wait until the problems are sorted out.
 
OK, thanks. I will say that other type of URL was working without issue until today. Guess I'll wait. Thanks again.
 
The new version 1.2.1 of ports-mgmt/pkg is out and it should fix the biggest problems at least for those who build their own packages. I have no idea if you can use the 10.0-BETA repositories yet with this version of pkg.
 
Running as root, I don't see the warning, but commands like sudo pkg version -Ivl'<' still display the warning shown in the first post of the thread.
 
Is anyone else getting
Code:
arting check for build dependencies
===>>> Gathering dependency list for lang/gcc49 from ports
===>>> Launching child to update gcc-4.9.0.20131020_1 to gcc49-4.9.0.20131124

===>>> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20131020_1 >> gcc-4.9.0.20
since the new PKGNG? Unrelated: what's up with the change to phpBB? I love PHP, but I liked our forum before :\
 
Hi,

I've changed my pkg configuration, as mentioned. And pkg does not give me any error, but no matter what command I execute pkg is only updating, see:

Code:
pkg upgrade
Updating repository catalogue

pkg install zsh
Updating repository catalogue

pkg version
Updating repository catalogue

# only this works
pkg info
pkg-1.2.1                      New generation package manager

Is that a bug in PKGNG or am I doing something wrong? I've built a repository with poudriere including PKGNG 1.2.1 running on FreeBSD 9.2.

Thx Thanks.

Update:
Ok I found the problem. The new FreeBSD.conf needs to be under /etc/pkg/FreeBSD.conf and not under /usr/local/etc/pkg/FreeBSD.conf.

So now I have the new configuration running without any problems under FreeBSD 9.2.

pkg.conf under /usr/local/etc/pkg.cong and FreeBSD.conf under /etc/pkg/FreeBSD.conf.
 
Run pkg -vv and see if your own repository is listed in the last lines of the output, something like in my output:

Code:
Repositories:
  FreeBSD: { 
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:32/latest",
    enabled         : no,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  rdnzl: { 
    url             : "http://freebsd10.rdnzl.info/packages/stable10i386-default",
    enabled         : yes,
    signature_type  : "PUBKEY",
    pubkey          : "/usr/local/etc/ssl/certs/pkg.cert"
  }
 
According to https://wiki.freebsd.org/pkgng the location of FreeBSD.conf is /usr/local/etc/pkg/repos/ or is it not?

Also another thing: I followed the instructions of https://wiki.freebsd.org/i386-Wine, but if I do a pkg -vv as described above, I only get this repository:

Code:
Repositories:
  FreeBSD: { 
    url             : "pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest",
    enabled         : yes,
    mirror_type     : "SRV"
  }

But I do have a wine.conf and a wine.cert in the correct path:

Code:
root@amd64:/usr/local/etc/pkg/repos # ls
FreeBSD.conf	wine.cert	wine.conf
root@amd64:/usr/local/etc/pkg/repos #

So what am I missing here?
 
There are two directories that are searched for repository configuration files, /etc/pkg and /usr/local/etc/pkg/repos. On FreeBSD 10 the FreeBSD.conf is in /etc/pkg by default on a fresh install and is also installed there when upgrading from an earlier version to FreeBSD 10. On earlier versions of FreeBSD you have to create it yourself at /usr/local/etc/pkg/repos. Post the contents of this wine.conf file please.

Edit: If you have a /usr/local/etc/pkg.conf you should reset it to the defaults when using ports-mgmt/pkg version 1.2.1. There should be a file /usr/local/etc/pkg.conf.sample that can be copied over your own pkg.conf to reset it to defaults.
 
The old pkg.conf will still work but you get a lot of deprecated warnings and you may need to pkg update once by hand. Ideally you should remove /usr/local/etc/pkg.conf and create a /usr/local/etc/pkg/repos/myrepo.conf. It should look something like this:
Code:
myrepo: {
 URL: http://my.repo.server/packages/
 ENABLED: true
 MIRROR_TYPE: none
}

That way you can have multiple repositories.
 
Back
Top