Solved pkg-1.6.1 & capsicum.h trouble

Hi
Talking about 9.3-RELEASE
pkg -v
Code:
1.5.4.

The world & kernel has been built, the kernel with
Code:
#CAPSICUM
options CAPABILITY_MODE
options CAPABILITIES
options PROCDESC
Got some problem with pkg-1.6.1 installation from port.

Code:
Making all in src
  CC  pkg-add.o
  CC  pkg-alias.o
  CC  pkg-annotate.o
  CC  pkg-audit.o
audit.c:52:26: error: sys/capsicum.h: No such file or directory
*** [pkg-audit.o] Error code 1

Stop in /ports/ports-mgmt/pkg/work/pkg-1.6.1/src.
*** [all-recursive] Error code 1

Stop in /ports/ports-mgmt/pkg/work/pkg-1.6.1.
*** [all] Error code 1

Stop in /ports/ports-mgmt/pkg/work/pkg-1.6.1.
*** [do-build] Error code 1

Stop in /ports/ports-mgmt/pkg.
*** [/ports/ports-mgmt/pkg/work/.build_done.pkg._usr_local] Error code 1

Stop in /ports/ports-mgmt/pkg.

And can`t install it from the package
Code:
pkg_add -r pkg-1.6.1
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/pkg-1.6.1.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/pkg-1.6.1.tbz' by URL

The pkg-1.6.1 need for letsencrypt-nginx port.

Code:
make install
===>  letsencrypt-nginx-0.0.0.dev20151008 pkg(8) must be version 1.6.0 or greater, but you have 1.5.4. You must upgrade the ports-mgmt/pkg port first.
*** [install] Error code 1

Any ideas? Thanks
 
Code:
pkg_add -r pkg-1.6.1
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/pkg-1.6.1.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9-stable/Latest/pkg-1.6.1.tbz' by URL
The old package tools have been deprecated for quite some time now. Try pkg upgrade pkg, see pkg(8).

I'm not sure where the build error comes from though. I don't have a sys/capsicum.h anywhere on my 9.x systems, I do have it on my 11-CURRENT. Did you perhaps accidentally fetch the sources for -CURRENT instead of 9.3-RELEASE?
 
I'm not sure where the build error comes from though. I don't have a sys/capsicum.h anywhere on my 9.x systems, I do have it on my 11-CURRENT. Did you perhaps accidentally fetch the sources for -CURRENT instead of 9.3-RELEASE?

No, I'm checked

Code:
grep -A 2 'TYPE="' /usr/src/sys/conf/newvers.sh
TYPE="FreeBSD"
REVISION="9.3"
BRANCH="RELEASE-p10"

And got en error
Code:
pkg: Unable to find catalogs

/usr/local/etc/pkg.conf
Code:
# 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,
  }

How to debug sys/capsicum.h problem?
 
Installed from sources successful.

The port`s support wrote, - "That`s a port`s bug, needs for update....." but all ports were updated yesterday, before the installation attempt
ll /usr/ports/ports-mgmt | grep pkg
..........
drwx------ 4 root wheel 512B 29 окт 15:28 pkg

Thanks to all, the thread closed.
 
Back
Top