Discussion:
Bizarre dependency on gnatcross-sysroot-aarch64?
Steve Watt
2021-04-05 03:15:34 UTC
Permalink
[ Originally sent to freebsd-pkg, but it appears that nobody really
reads that list... ]

Greetings!

I have a puzzle. I've got a 12.2-RELEASE-p4 amd64 system, and pkg seems
to be fixated on installing gnatcross-sysroot-aarch64. I don't do any
Arm development on this system, never have. And certainly not Ada
(because it's one of the few I've never bothered to learn).

Here's some output from "pkg -ddd install -n p5-Astro-SunTime" with
rather a lot of trimming to look about for that package:

- - - 8< - - -
[ ... ]
DBG(3)[50731]> Pkg: add a new dependency origin: archivers/liblz4,
name:liblz4
DBG(2)[50731]> Pkg> adding options: LZ4 = on
DBG(2)[50731]> Pkg> adding options: LZO = on
DBG(2)[50731]> Pkg> adding options: NETTLE = off
DBG(2)[50731]> Pkg> adding options: OPENSSL = on
DBG(2)[50731]> Pkg> adding options: ZSTD = off
DBG(3)[50731]> added shlib deps for libarchive on liblzo2.so.2
DBG(3)[50731]> added shlib deps for libarchive on liblz4.so.1
DBG(3)[50731]> added shlib deps for libarchive on libexpat.so.1
DBG(3)[50731]> added shlib provide libarchive.so.13 for libarchive
DBG(2)[50731]> universe: add new remote pkg: libarchive,
(libarchive-3.4.3,1:2$2$eozraqhwoj3freut9a5phsxgyz3dyubeu6czec67qnnjaozxwh1mgzmuheun8oxokj8irkur9r44m5pnz8dwq56huk553on5hxgz65y)
DBG(2)[50731]> Pkg> adding options: DOCS = on
DBG(3)[50731]> added shlib provide libexecinfo.so.1 for libexecinfo
DBG(3)[50731]> added shlib provide libzpool.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs_core.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libz.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libypclnt.so.4 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libxo.so.0 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwrap.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwind.so.11 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libuutil.so.2 for
gnatcross-sysroot-aarch64
[ ... ]
DBG(3)[66243]> added shlib provide lib80211.so.1 for
gnatcross-sysroot-aarch64
DBG(3)[66243]> added shlib provide lib4758cca.so for
gnatcross-sysroot-aarch64
DBG(2)[66243]> universe: add new remote pkg: gnatcross-sysroot-aarch64,
(gnatcross-sysroot-aarch64-1_1:2$2$u89mzc46i3ip13r9afgyu7xayub1yg7nqqbonwakkfiu9rjjwdbnpiqd8jhfowp136zwp8d5rdy9j67zhacxbz3unhj7gfyd1dz1hsn)
[ ... ]
DBG(2)[66243]> set automatic flag for gnatcross-sysroot-aarch64
[ ... ]
DBG(2)[66243]> require rule: package cmake(l) depends on a requirement
provided by: gnatcross-sysroot-aarch64(r)
- - - >8 - - -

Ok, so maybe cmake is somehow calling for it? But:

1325# pkg info -B cmake
cmake-3.19.6:
librhash.so.0
libexpat.so.1
libarchive.so.13
libuv.so.1
libexecinfo.so.1
libjsoncpp.so.24
libcurl.so.4

Maybe it's libarchive?

1326# pkg info -B libarchive
libarchive-3.5.1,1:
liblzo2.so.2
libexpat.so.1
libcrypto.so.11
liblz4.so.1
libzstd.so.1

On sniffing around in /var/db/pkg, I can tell that it's mentioned in
local.sqlite (and, of course, in repo-FreeBSD.sqlite), but I run out of
clue to figure out where and in what table(s).

Utterly puzzled. Thoughts?
--
Steve Watt PP-ASEL-IA factories.words.yappy
Don't let your schooling get in the way of your education.
Paul Procacci
2021-04-05 03:45:49 UTC
Permalink
I have FBSD 12.2-p4 as well and don't have this problem.
Shot in the dark, but do you happen to have anything defined in pkg.conf
that would alter the behavior of pkg?
ABI is something that _could_ effect it though I'm not entirely sure it
would in this case.

Looking at the source code it appears pkg doesn't slurp in any environment
variable that I would consider "altering" in this case; so that's out of
the question.
I obviously don't know why this is happening to you, but some alteration in
pkg.conf is really the only thing that comes to my mind.

~Paul
Post by Steve Watt
[ Originally sent to freebsd-pkg, but it appears that nobody really
reads that list... ]
Greetings!
I have a puzzle. I've got a 12.2-RELEASE-p4 amd64 system, and pkg seems
to be fixated on installing gnatcross-sysroot-aarch64. I don't do any
Arm development on this system, never have. And certainly not Ada
(because it's one of the few I've never bothered to learn).
Here's some output from "pkg -ddd install -n p5-Astro-SunTime" with
- - - 8< - - -
[ ... ]
DBG(3)[50731]> Pkg: add a new dependency origin: archivers/liblz4,
name:liblz4
DBG(2)[50731]> Pkg> adding options: LZ4 = on
DBG(2)[50731]> Pkg> adding options: LZO = on
DBG(2)[50731]> Pkg> adding options: NETTLE = off
DBG(2)[50731]> Pkg> adding options: OPENSSL = on
DBG(2)[50731]> Pkg> adding options: ZSTD = off
DBG(3)[50731]> added shlib deps for libarchive on liblzo2.so.2
DBG(3)[50731]> added shlib deps for libarchive on liblz4.so.1
DBG(3)[50731]> added shlib deps for libarchive on libexpat.so.1
DBG(3)[50731]> added shlib provide libarchive.so.13 for libarchive
DBG(2)[50731]> universe: add new remote pkg: libarchive,
(libarchive-3.4.3,1:2$2$eozraqhwoj3freut9a5phsxgyz3dyubeu6czec67qnnjaozxwh1mgzmuheun8oxokj8irkur9r44m5pnz8dwq56huk553on5hxgz65y)
DBG(2)[50731]> Pkg> adding options: DOCS = on
DBG(3)[50731]> added shlib provide libexecinfo.so.1 for libexecinfo
DBG(3)[50731]> added shlib provide libzpool.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs_core.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libz.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libypclnt.so.4 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libxo.so.0 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwrap.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwind.so.11 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libuutil.so.2 for
gnatcross-sysroot-aarch64
[ ... ]
DBG(3)[66243]> added shlib provide lib80211.so.1 for
gnatcross-sysroot-aarch64
DBG(3)[66243]> added shlib provide lib4758cca.so for
gnatcross-sysroot-aarch64
DBG(2)[66243]> universe: add new remote pkg: gnatcross-sysroot-aarch64,
(gnatcross-sysroot-aarch64-1_1:2$2$u89mzc46i3ip13r9afgyu7xayub1yg7nqqbonwakkfiu9rjjwdbnpiqd8jhfowp136zwp8d5rdy9j67zhacxbz3unhj7gfyd1dz1hsn)
[ ... ]
DBG(2)[66243]> set automatic flag for gnatcross-sysroot-aarch64
[ ... ]
DBG(2)[66243]> require rule: package cmake(l) depends on a requirement
provided by: gnatcross-sysroot-aarch64(r)
- - - >8 - - -
1325# pkg info -B cmake
librhash.so.0
libexpat.so.1
libarchive.so.13
libuv.so.1
libexecinfo.so.1
libjsoncpp.so.24
libcurl.so.4
Maybe it's libarchive?
1326# pkg info -B libarchive
liblzo2.so.2
libexpat.so.1
libcrypto.so.11
liblz4.so.1
libzstd.so.1
On sniffing around in /var/db/pkg, I can tell that it's mentioned in
local.sqlite (and, of course, in repo-FreeBSD.sqlite), but I run out of
clue to figure out where and in what table(s).
Utterly puzzled. Thoughts?
--
Steve Watt PP-ASEL-IA factories.words.yappy
Don't let your schooling get in the way of your education.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
__________________

:(){ :|:& };:
Steve Watt
2021-04-05 03:52:55 UTC
Permalink
Nice thought! Unfortunately, pkg.conf is an exact duplicate of pkg.conf.sample.
--
Steve Watt KD6GGD PP-ASEL-IA factories.words.yappy

Don't let your schooling get in the way of your education.



From: Paul Procacci <***@gmail.com>
Sent: Sunday, April 4, 2021 20:46
To: Steve Watt <***@watt.com>
Cc: FreeBSD Questions <freebsd-***@freebsd.org>
Subject: Re: Bizarre dependency on gnatcross-sysroot-aarch64?



I have FBSD 12.2-p4 as well and don't have this problem.

Shot in the dark, but do you happen to have anything defined in pkg.conf that would alter the behavior of pkg?
ABI is something that _could_ effect it though I'm not entirely sure it would in this case.

Looking at the source code it appears pkg doesn't slurp in any environment variable that I would consider "altering" in this case; so that's out of the question.

I obviously don't know why this is happening to you, but some alteration in pkg.conf is really the only thing that comes to my mind.



~Paul



On Sun, Apr 4, 2021 at 11:15 PM Steve Watt <***@watt.com <mailto:***@watt.com> > wrote:

[ Originally sent to freebsd-pkg, but it appears that nobody really
reads that list... ]

Greetings!

I have a puzzle. I've got a 12.2-RELEASE-p4 amd64 system, and pkg seems
to be fixated on installing gnatcross-sysroot-aarch64. I don't do any
Arm development on this system, never have. And certainly not Ada
(because it's one of the few I've never bothered to learn).

Here's some output from "pkg -ddd install -n p5-Astro-SunTime" with
rather a lot of trimming to look about for that package:

- - - 8< - - -
[ ... ]
DBG(3)[50731]> Pkg: add a new dependency origin: archivers/liblz4,
name:liblz4
DBG(2)[50731]> Pkg> adding options: LZ4 = on
DBG(2)[50731]> Pkg> adding options: LZO = on
DBG(2)[50731]> Pkg> adding options: NETTLE = off
DBG(2)[50731]> Pkg> adding options: OPENSSL = on
DBG(2)[50731]> Pkg> adding options: ZSTD = off
DBG(3)[50731]> added shlib deps for libarchive on liblzo2.so.2
DBG(3)[50731]> added shlib deps for libarchive on liblz4.so.1
DBG(3)[50731]> added shlib deps for libarchive on libexpat.so.1
DBG(3)[50731]> added shlib provide libarchive.so.13 for libarchive
DBG(2)[50731]> universe: add new remote pkg: libarchive,
(libarchive-3.4.3,1:2$2$eozraqhwoj3freut9a5phsxgyz3dyubeu6czec67qnnjaozxwh1mgzmuheun8oxokj8irkur9r44m5pnz8dwq56huk553on5hxgz65y)
DBG(2)[50731]> Pkg> adding options: DOCS = on
DBG(3)[50731]> added shlib provide libexecinfo.so.1 for libexecinfo
DBG(3)[50731]> added shlib provide libzpool.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs_core.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libzfs.so.2 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libz.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libypclnt.so.4 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libxo.so.0 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwrap.so.6 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libwind.so.11 for
gnatcross-sysroot-aarch64
DBG(3)[50731]> added shlib provide libuutil.so.2 for
gnatcross-sysroot-aarch64
[ ... ]
DBG(3)[66243]> added shlib provide lib80211.so.1 for
gnatcross-sysroot-aarch64
DBG(3)[66243]> added shlib provide lib4758cca.so for
gnatcross-sysroot-aarch64
DBG(2)[66243]> universe: add new remote pkg: gnatcross-sysroot-aarch64,
(gnatcross-sysroot-aarch64-1_1:2$2$u89mzc46i3ip13r9afgyu7xayub1yg7nqqbonwakkfiu9rjjwdbnpiqd8jhfowp136zwp8d5rdy9j67zhacxbz3unhj7gfyd1dz1hsn)
[ ... ]
DBG(2)[66243]> set automatic flag for gnatcross-sysroot-aarch64
[ ... ]
DBG(2)[66243]> require rule: package cmake(l) depends on a requirement
provided by: gnatcross-sysroot-aarch64(r)
- - - >8 - - -

Ok, so maybe cmake is somehow calling for it? But:

1325# pkg info -B cmake
cmake-3.19.6:
librhash.so.0
libexpat.so.1
libarchive.so.13
libuv.so.1
libexecinfo.so.1
libjsoncpp.so.24
libcurl.so.4

Maybe it's libarchive?

1326# pkg info -B libarchive
libarchive-3.5.1,1:
liblzo2.so.2
libexpat.so.1
libcrypto.so.11
liblz4.so.1
libzstd.so.1

On sniffing around in /var/db/pkg, I can tell that it's mentioned in
local.sqlite (and, of course, in repo-FreeBSD.sqlite), but I run out of
clue to figure out where and in what table(s).

Utterly puzzled. Thoughts?
--
Steve Watt PP-ASEL-IA factories.words.yappy
Don't let your schooling get in the way of your education.
_______________________________________________
freebsd-***@freebsd.org <mailto:freebsd-***@freebsd.org> mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-***@freebsd.org <mailto:freebsd-questions-***@freebsd.org> "
--
__________________

:(){ :|:& };:
Derek Schrock
2021-04-05 04:00:43 UTC
Permalink
Post by Steve Watt
Nice thought! Unfortunately, pkg.conf is an exact duplicate of pkg.conf.sample.
Any chance you have multiple repos?
Steve Watt
2021-04-09 22:35:53 UTC
Permalink
I don't think so, as I haven't done much custom on this system. How would I
check?
--
Steve Watt KD6GGD PP-ASEL-IA factories.words.yappy
Don't let your schooling get in the way of your education.

-----Original Message-----
From: owner-freebsd-***@freebsd.org
<owner-freebsd-***@freebsd.org> On Behalf Of Derek Schrock
Sent: Sunday, April 4, 2021 21:01
To: freebsd-***@freebsd.org
Subject: Re: Bizarre dependency on gnatcross-sysroot-aarch64?
Post by Steve Watt
Nice thought! Unfortunately, pkg.conf is an exact duplicate of pkg.conf.sample.
Any chance you have multiple repos?
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-***@freebsd.org"
Carl Johnson
2021-04-05 15:49:08 UTC
Permalink
Post by Steve Watt
[ Originally sent to freebsd-pkg, but it appears that nobody really
reads that list... ]
Greetings!
I have a puzzle. I've got a 12.2-RELEASE-p4 amd64 system, and pkg
seems to be fixated on installing gnatcross-sysroot-aarch64. I don't
do any Arm development on this system, never have. And certainly not
Ada (because it's one of the few I've never bothered to learn).
I have the same problem as you. It doesn't seem to depend on anything
and nothing depends on it. I can delete it, but it always comes back
the next time I install anything. I have a 12.2-RELEASE-p3 amd64 system
and pkg is standard, except that I modified the config file to enable
plugins for pkg-provides. I had the same problem before I added
pkg-provides, so I don't think that is the cause. I would love to get
rid of it, but it isn't worth deleting it every time I add or upgrade a
package.
--
Carl Johnson ***@peak.org
Loading...