Bug 235071 - pkg fails to use port settings in repo file.
Summary: pkg fails to use port settings in repo file.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-20 08:16 UTC by crypt47
Modified: 2019-01-20 08:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crypt47 2019-01-20 08:16:56 UTC
Hello, i'm currently having this entry in my /usr/local/etc/pkg/repos/FreeBSD.conf (could somebody remind me how to put a code block here):


cryptsme: {
  url: "http://XXX.XXX.XXX.XXX:8668/f12-default",
  enabled: yes
}

pkg utility seems to ignore the port 8668 above:

f12 ~ # pkg -d update
DBG(1)[2342]> pkg initialized
Updating cryptsme repository catalogue...
DBG(1)[2342]> PkgRepo: verifying update for cryptsme
pkg: Repository cryptsme load error: access repo file(/var/db/pkg/repo-cryptsme.sqlite) failed: No such file or directory
DBG(1)[2342]> PkgRepo: need forced update of cryptsme
DBG(1)[2342]> Pkgrepo, begin update of '/var/db/pkg/repo-cryptsme.sqlite'
DBG(1)[2342]> Fetch: fetching from: http://XXX.XXX.XXX.XXX/f12-default/meta.txz with opts "i"
Fetching meta.txz: 100%    260 B   0.3kB/s    00:01    
DBG(1)[2342]> PkgRepo: extracting meta of repo cryptsme
DBG(1)[2343]> PkgRepo: extracting signature of repo in a sandbox
DBG(1)[2342]> Fetch: fetching from: http://XXX.XXX.XXX.XXX/f12-default/packagesite.txz with opts "i"
Fetching packagesite.txz: 100%   70 KiB  71.9kB/s    00:01    
DBG(1)[2342]> PkgRepo: extracting packagesite.yaml of repo cryptsme
DBG(1)[2344]> PkgRepo: extracting signature of repo in a sandbox
DBG(1)[2342]> Pkgrepo, reading new packagesite.yaml for '/var/db/pkg/repo-cryptsme.sqlite'
Processing entries: 100%
cryptsme repository update completed. 265 packages processed.
Updating FreeBSD repository catalogue...
DBG(1)[2342]> PkgRepo: verifying update for FreeBSD
DBG(1)[2342]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[2342]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz with opts "i"
DBG(1)[2342]> Fetch: fetching from: http://pkg0.isc.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz with opts "i"
DBG(1)[2342]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz with opts "i"
DBG(1)[2342]> Fetch: fetching from: http://pkg0.isc.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz with opts "i"
FreeBSD repository is up to date.
All repositories are up to date.



after that executing "pkg install" on some package that seems to be not belonging to FreeBSD official repo fails with coredump:

f12 ~ # pkg -d install llvm60-6.0.1_6
DBG(1)[4111]> pkg initialized
Updating cryptsme repository catalogue...
DBG(1)[4111]> PkgRepo: verifying update for cryptsme
DBG(1)[4111]> Pkgrepo, begin update of '/var/db/pkg/repo-cryptsme.sqlite'
DBG(1)[4111]> Fetch: fetching from: http://XXX.XXX.XXX.XXX/f12-default/meta.txz with opts "i"
DBG(1)[4111]> Fetch: fetching from: http://XXX.XXX.XXX.XXX/f12-default/packagesite.txz with opts "i"
cryptsme repository is up to date.
Updating FreeBSD repository catalogue...
DBG(1)[4111]> PkgRepo: verifying update for FreeBSD
DBG(1)[4111]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[4111]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz with opts "i"
DBG(1)[4111]> Fetch: fetching from: http://pkg0.nyi.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz with opts "i"
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01    
DBG(1)[4111]> PkgRepo: extracting meta of repo FreeBSD
DBG(1)[4112]> PkgRepo: extracting signature of repo in a sandbox
DBG(1)[4111]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz with opts "i"
DBG(1)[4111]> Fetch: fetching from: http://pkg0.nyi.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz with opts "i"
Fetching packagesite.txz: 100%    6 MiB 668.7kB/s    00:10    
DBG(1)[4111]> PkgRepo: extracting packagesite.yaml of repo FreeBSD
DBG(1)[4114]> PkgRepo: extracting signature of repo in a sandbox
DBG(1)[4111]> Pkgrepo, reading new packagesite.yaml for '/var/db/pkg/repo-FreeBSD.sqlite'
Processing entries: 100%
FreeBSD repository update completed. 32063 packages processed.
All repositories are up to date.
DBG(1)[4111]> want to get an advisory lock on a database
DBG(1)[4111]> removing pkg from the request as it is the same as local
Segmentation fault (core dumped)


f12 ~ # pkg info llvm60-6.0.1_6
pkg: No package(s) matching llvm60-6.0.1_6

This problem is still present after executing "pkg clean --all". The core file is attached.

Regards,
Konstantin