-
Oleg
do any of you run kodi without loading either x11 or wayland first?
-
Oleg
I am asking this because on the console, I can't use either the keyboard or the mouse in kodi.
-
Ltning
After pkg moved to curl it no longer trusts the CA used on my package server (fetching via https). What's the current/new way of specifying trust?
-
Ltning
*sigh* certctl hackery...
-
RhodiumToad
I believe it can still be done using environment vars, but the names of the vars changed
-
RhodiumToad
haven't tested it myself though
-
Ltning
Some of them can, like http_proxy (lowercase), but I have had no luck with the CA stuff
-
Ltning
Not even curl's own vars actually work
-
RhodiumToad
however, specifying a client cert is no longer possible as far as I can see
-
RhodiumToad
are you setting them in PKG_ENV or in the outer environment?
-
Ltning
Neither works
-
RhodiumToad
huh. that's a problem
-
Ltning
I only tried once, so there may have been effups on my part.
-
debdrup
i believe bapt is quite receptive to feedback on it
-
RhodiumToad
yeah, the memory issue with pkg add was fixed pretty fast
-
RhodiumToad
and pkg 1.20.2 just landed in the tree
-
bapt
if anyone has issues with self signed certificate please test: people.freebsd.org/~bapt/patch-compat-libfetch (adding to ports-mgmt/pkg/files/)
-
bapt
Ltning: ^^ I have been told you have issues
-
debdrup
the bapt has been summoned!
-
Ltning
bapt: I am told I have issues too :D
-
» debdrup puts away his robe and summoning paraphanalia
-
bapt
Ltning:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=272406 if your issues are similar to the one there, then they are either addressed by 1.20.2 or by this patch, if not then I need to create another patch :D
-
VimDiesel
Title: 272406 – ports-mgmt/pkg: pkg-1.20.1 does not work with FreeBSD-13.1-RELEASE-p8 GENERIC amd64
-
Ltning
bapt: That's related but not quite the same. I was trying to use the CURL_CA_BUNDLE to get around the issue, but honestly I had expected it to use /etc/ssl/cert.pem as it did before.
-
Ltning
We ended up in a situation where dozens of systems auto-upgraded pkg only to have pkg subsequently fail horribly
-
Ltning
..requiring manual intervention on all of them :D
-
bapt
erg
-
Ltning
And when pkg fails, puppet fails, and mayhem ensues. Config management rocks as long as nobody changes anything :D
-
bapt
so libcurl bundled in pkg expects to find its certificates in /etc/ssl/certs/
-
kevans
sounds like you simply need to reduce the number of hosts you run
-
bapt
compliants to certctl
-
bapt
which is supported and should be the default for all freebsd supported version
-
bapt
that said I bet if you have your own /etc/ssl/cert.pem is because you have your own CA right?
-
Ltning
kevans: Yea but nobody wants to sell me the hardware I need to do that :P
-
Ltning
bapt: Yeah. :)
-
kevans
Ltning: ampere? I imagine you guys don't do a whole lot that's x86-specific, at least?
-
bapt
I can make an option so that you can speficy your own .pem path
-
bapt
like SSL_CA_PATH
-
bapt
would that fit with you ?
-
kevans
160 cores and lots of RAM == lots and lots of jails or VMs
-
Ltning
kevans: Yea, but .. Nobody will sell me any on this side of the pond. Delivery times counted in years.
-
kevans
yikes
-
kevans
"by the time it's delivered, they'll have already released the new and improved next generation"
-
Ltning
bapt: I *could* also simply rip everything out and "fix" my puppet manifests .. but I'd prefer not to do such a big thing starting in production :P
-
debdrup
yeah, europe might have the only company that makes the machines capable of doing the lithography for high-performance cpus, but we don't got anything else
-
Ltning
kevans: So we're stuck with all this epyc garbage until someone decides Norway is important enough
-
debdrup
well, up to when china stole the ip of that company
-
debdrup
sorry, a chinese citizen who then moved to china
-
bapt
I am not against SSL_CA_PATH, tbh I think it will serve a lot of people
-
bapt
who do not want to know how certctl works
-
Ltning
bapt: Yeah, it would be a lot easier for us, that's for sure. Is that the same var fetch would respect?
-
bapt
so if this is ok for you I will can add it, it will take me a few minutes
-
kevans
there's still a lot of cases where certctl could integrate better with ports to make it more compelling
-
bapt
SSL_CA_CERT_PATH
-
debdrup
is SSL_CA_PATH because the cert bundle already uses a similar naming scheme? because "SSL" is kinda.. a misnomer nowadays
-
bapt
this is what fetch expects
-
bapt
I will use that variable so it is compatible
-
Ltning
kevans: We were discussing that here today. We really don't like how it does practically nothing for half of base and most of ports because of the reliance on cert hashes
-
Ltning
bapt: It'd be good if it follows what fetch expects (which I believe worked for old pkg).
-
Ltning
Since that's how we have been doing this until now ..
-
kevans
michael osipov has a wishlist for certctl because they use a custom CA or two or so, but I don't really have free time to work on this and I don't know that anyone's willing to sponsor that when the old way works-ish for them
-
Ltning
Depends what "sponsor" entails. We'd certainly like a certctl that does (more) useful things. Just not as a surprise.
-
Ltning
kevans: You're too busy with the mbp? ;)
-
» Ltning hides
-
kevans
hehe :-) that's one of the projects, kinda waiting on stable/14 to branch to drop the next important changes
-
kevans
I started landing some of the work and have another review or two open
-
dch
looks like my laptop is toast, kevans are you implying I should wait a few weeks and get a fruity one instead?
-
kevans
maybe 6 months t oa year
-
Ltning
Uh-oh, now what did I do
-
bapt
-
VimDiesel
Title: curl: allow to specify the CA to use via env var · freebsd/pkg@f59cb51 · GitHub
-
dch
bapt: while you're here, I had timeouts on large packages today (llvm, lumina-themes etc) using pkg1.20.1 on 13.2-RELEASE-amd64
-
bapt
Ltning: can you try with this patch?
-
bapt
dch: already fixed by kevans
-
Ltning
bapt: Looks sane to me. I'm not able to test that in any useful environment on short notice
-
dch
do you want me to re-try later with 1.20.2?
-
bapt
dch: after 1.20.3
-
dch
I might be on a plan to NZ by then
-
bapt
erg
-
bapt
I miss read fetch3
-
bapt
SSL_CA_CERT_FILE is the right thing
-
Ltning
yea I just realised
-
Ltning
Both are probably useful though, if we want backwards compatibility
-
Ltning
It's also possible our way of doing this has been batshit all the time, and we need to stop. :)
-
bapt
I don't intend to be 100% compatible with libfetch, only on what make sense :D
-
bapt
with my own definition of what make sense
-
Ltning
The power of definition is among the mightiest.
-
bapt
that said we are now probably 90% compatible, the latest 10% might not hurt to implement
-
bapt
anyway I will a batch of tests during the night and issue a 1.20.3 tomorrow
-
RhodiumToad
bapt: while pkg add is using much less memory now than in 1.20, it still uses enough that it's impossible to run it on a 1GB system even for small packages
-
bapt
yes
-
RhodiumToad
(1GB system without swap)
-
bapt
the problem is the ports tree uses pkg add
-
bapt
and pkg add should die in hell
-
bapt
pkg add is a dirty thing made to mimic pkg_add
-
bapt
which was looking for its dependencies around itself
-
bapt
on the filesystem
-
bapt
meaning all dependencies are hardcoded name and version number
-
bapt
(which is why it is still hardcoded in pkg right now ...)
-
bapt
I modified it long ago so it accept only names without version
-
bapt
and it started globbing for name*.pkg
-
bapt
and only keep the newest one
-
bapt
but that does not fit with provides/requires
-
bapt
as I don't know in advance the name of all the candidates
-
bapt
so now pkg look up for all the .pkg around itself, extract the information and keep those information in memory
-
bapt
and this is where it kills kittens
-
bapt
loading all thos manifest in memory including plist was the initial issue
-
bapt
now I load the compact version so it is better
-
RhodiumToad
but still not good enough
-
bapt
but in poudriere you can end up with a quite large number of packages around the package you are trying to add
-
RhodiumToad
for what the ports tree is doing, is provides/requires even appropriate?
-
bapt
yes it is
-
bapt
I want to kill all the LIB_DEPENDS from the manifest
-
bapt
and use shlibs_provides/shlibs_requires instead
-
RhodiumToad
does anyone else want that?
-
bapt
it will make things way more flexible
-
RhodiumToad
there's already an issue with shlibs with the same names but different directories, I think
-
bapt
yes and no
-
bapt
but this is covered
-
bapt
anyway this is a different story
-
bapt
yes the provides/requires path is not easy
-
bapt
the right thing would be to make repository on the fly
-
bapt
I need to mesure how much memory this cost if the repository is "inmemory"
-
RhodiumToad
maybe, but fucking up the RAM usage in the meantime is not polite
-
bapt
agreed
-
bapt
if we do things well we can actually safe a lot of build time and memory
-
bapt
but my initial approach was not done well
-
bapt
so I need to think more about it
-
RhodiumToad
also, how long does it take to read all those manifests, and given how many times pkg add is run in a poudriere build, how much time and disk access is it costing?
-
bapt
it is actually quite fast
-
bapt
and if we do build a repository it can be done only once for the entire make *-depends phases and save a lot of time
-
RhodiumToad
I'm noticing nontrivial times spent in the *_depends build phases, though I don't have any "before" times for comparison
-
bapt
RhodiumToad: right now it is too much, because my approach has been too dumb
-
bapt
if by the end of the week I could not find a better approach I will just entirely back out the feature
-
RhodiumToad
thanks
-
bapt
and bring it back (hopefully fixed) for 1.21 :D
-
bapt
the thing is doing it right will be done in 2 phases
-
bapt
a first one which will be cost a bit, aha only modifiy pkg, then later modify the ports tree to use it properly and save lot of time
-
bapt
aka having one dep will be slower, but every package with multiple deps will be way faster
-
bapt
byw the best place to complain^Wdiscuss pkg is #pkg on libera :D
-
bapt
s/byw/btw/
-
RhodiumToad
I haven't previously had reason to :-)
-
bapt
:D
-
bapt
I actually have an idea which would mean modify the package format
-
bapt
but long to implement
-
RhodiumToad
ok, I think I have an example of the shared lib issue
-
RhodiumToad
I have two packages that both say they provide a shared lib, but they do not include the path and they are not interchangeable
-
RhodiumToad
(in fact they install the lib to different dirs, neither of which should be on any ldconfig path)
-
RhodiumToad
(unfortunately they're not committed yet, since this is part of the guile flavors work which is STILL being ignored)
-
Ltning
So if I want a lightweight 14"-class high-resolution laptop for FreeBSD use today, what do I get? :)
-
skered
Do you want wifi to work?
-
skered
er well I guess there's that wifibox thing now...
-
skered
nm
-
skered
I think the only thing standing in the way of FreeBSD on modern laptops the the performance cores?
-
visl
Ltning: i've been eyeballing the 13" framework. in the end i'll probably pre-order the 16" --
community.frame.work/t/freebsd-on-the-framework-laptop/14823
-
VimDiesel
Title: FreeBSD on the Framework Laptop - Framework Laptop 13 - Framework Community
-
kevans
I have a 13" frame.work, and it's been the biggest rollercoaster I've ever been on
-
markmcb
same experience with my 13" framework. really bumpy ride 18 months ago, but mostly all just works now.
-
kevans
mine still gives me heartburn to this day, and I started actively using it... at the beginning of last year, I think
-
kevans
it locks ups if I try to use it on battery
-
kevans
it didn't boot the linux image we tried at bsdcan (and that particular image on that particular drive worked fine on another frame.work earlier in the week); it's simply cursed.
-
markmcb
yikes, never had that issue. my struggle was mostly wifi driver support.
-
kevans
if you set a charge limit in the firmware, there's no low watermark so it constantly cycles between discharging/charging to maintain the set point
-
visl
ah that's unfortunate to hear
-
kevans
that said, it's still been a pleasant experience as long as I keep it plugged in
-
markmcb
to be clear, i have a first gen framework, so a newer model may be a different experience.
-
kevans
I have a hack to acpi_cmbat to limit notifications from being passed on past the kernel to mitigate the cycling problem
-
kevans
so upowerd only gets a snapshot every 5 minutes of what the laptop thinks it's doing
-
visl
i was mostly under the impression markmcb alluded to. it works except wifi/bluetooth and someone on that forum just swapped out the wnic (there is a different follow up post about giving the option for wnic choice on the build out)
-
yuripv
kevans: are you still working on getting freebsd running on mac m1?
-
antranigv
yuripv oh I would be interested in that!
-
yuripv
i'm just thinking to get rid of that stupid mbp, and get myself a frame.work, it really sounds like a lot of fun :D
-
kevans
yuripv: yeah, we're getting there slowly
-
antranigv
yuripv i wonder if framework and FreeBSD are good together now.
-
mexen
antranigv: What was the FreeBSD on framework experience like before?
-
antranigv
mexen when we got one it was brand new and there were some problems, specifically, as always, WiFi.
-
antranigv
but I gave that laptop to an employee and he's running Gentoo on it, with frequent OpenBSD. OpenBSD doesn't seem to have any issues.
-
mexen
Oh I see
-
markmcb
the wifi driver issue with the original framework was simply lack of support for the wifi6E AX210 card. that's resolved for awhile now.
-
markmcb
speaking of wifi, doesn't freebsd support WPA3 yet? that was the other pain i recall as i couldn't join a wifi network that was WPA3 only.
-
acu
so it seem that FreeBSD current is switched to OpenSSL3.0 --- is there a list of apps that needs to be migrated ? do we have a way of their status with regard to migration ---- obviously pkg needed OpenSSL so I have to reinstall FreeBSD 14 (I assume) ---- but wonder if there is an overview of the process in general ...
-
acu
I assume FreeBSD current will brake while this transition ---- I was trying to use clonos/cbsd which is build on 14 - so I might need to delay
-
aquamo4k
i've been rebuilding / rebooting from HEAD the last couple of months and didn't have much break but I don't run anything mission crit on this box
-
skered
kevans: You didn't report anything related to the pkg timeout?
-
kevans
skered: ?
-
kevans
skered: bapt pointed out what he really wanted and I PR'd it.
freebsd/pkg 546b43d
-
VimDiesel
Title: libpkg: more accurately implement FETCH_TIMEOUT with libpkg · freebsd/pkg@546b43d · GitHub