-
|cos|
i had fun building clangd a few days ago. it was actually very straight forward, but took a while. that one doesn't seem to be in oi though..
-
andyf
hpqoue - you're right, it is just ipkg zones that need to be detached.
-
andyf
Oh, they've gone
-
richlowe
hadfl told me about the us-west mirror, and I'm fussy, so I'm putting stuff here
-
richlowe
1) the web page says it's a mirror, which in pkg-land is bad for reasons. Is that true, or is it a full origin?
-
richlowe
if so, the web page should say -g not -m in `pkg set-publisher -m
us-west.mirror.omnios.org/r151044/core omnios` (
omnios.org/info/ipsrepos)
-
richlowe
also, at least back in the day, pkg worked hard to pick the fastest mirror/origin from among those configured, so if you configured it in by default it should Just Work
-
richlowe
oh it maybe _is_ a pure mirror?
-
richlowe
hadfl tells me it is indeed a mirror, if that's not on purpose, a full origin is better (but you can't get metrics as easily, because you're not the sole source of truth about the catalog)
-
richlowe
which is why Sun did mirrors that way
-
richlowe
but the important part of the suggestion is that if you add mirrors etc by default, pkg should be clever, so there shouldn' be a downside
-
andyf
richlowe - so, you came full circle and everything's ok? :)
-
andyf
It is deliberately a mirror
-
richlowe
hadfl told me it's a mirror on purpose, I still think configuring it by default is good?
-
richlowe
pkg should be smart
-
andyf
It seems to do the right thing there when I test it, including using whatever responds quickest
-
andyf
which for me can easily be the US rather than Switzerland on some days!
-
richlowe
yeah, it should use the best, and use them in parallel etc.
-
andyf
Good point, we can look at adding it by default (or via an installer option that defaults to on)
-
papertigers
is it possible for me to host my own mirror locally?
-
richlowe
see the pkgrecv manual page
-
papertigers
noted
-
richlowe
I'm not actually sure about mirror in the pkg sense, but pkgrecv a (subset of) the repo will give you something you can use
-
richlowe
I do it to avoid hammering the servers for disk images and such.
-
richlowe
there's a pretty decent example in the arm64-gate Makefile if you just want to throw something together.
-
papertigers
I know some linux pkg managers let you rsync to mirror a repo
-
richlowe
opensolaris, and maybe oi, used to have rsync. I'm not sure if anyone still does
-
papertigers
I will take a look
-
richlowe
and you have to get the whole repo with rsync, pkgrecv you can choose specific bits
-
andyf
I think the pkg/mirror service works to some extent too - or at least I did fix it up at one point
-
andyf
but it's probably better just to have a `pkgrecv -m latest` cron job
-
hpqoeu
andyf: i saw you replied to my question in the logs, thanks. for the record the upgrade went flawlessly
-
hpqoeu
though i am curious about having to set the publisher in sparse and lipkg zones, since i thought sparse and lipkg zones use the pkg tree from the global zone, and as such i feel like it would inherit such settings
-
andyf
hpqoeu - they share things like the content of /usr with the global zone, but they are still their own IPS image.
-
andyf
You can use `pkg set-publisher -r` from the GZ to set the publisher in all NGZs as well as the GZ.