-
adonis
I am running a camcontrol sanitize -a overwrite command on a disk. The manpage states that by default if -w is not given, that I am in immediate mode and I should have control of my shell. That’s not what I see though, Instead I see Sanitizing Progress.. Can I exit out of here and let the sanitize keep going?
-
dbohdan[phone]
Poetic: `$ less entropy / entropy: Permission denied`
-
ivy
kenrap: fluffy has a fix for the xorg-server build failure
-
kenrap
noice!
-
kenrap
ivy: may I have you give me a link to that fix?
-
ivy
-
kenrap
Thank you!
-
ivy
apparently this was fixed upstream over a year ago but i guess it takes a while to make it into the various server releases
-
kenrap
👍
-
kenrap
happiness, [00:01:58] [02] [00:00:40] Finished x11-servers/xorg-server@xorg | xorg-server-21.1.18,1: Success
-
kenrap
ivy: thanks again!
-
ivy
don't thank me too much, it was me what broke it :-)
-
kenrap
ivy: I understand every change in the src tree is done with good intention in some way. It's -CURRENT, even though sometimes it can make me go "Gaaaaaaaahh!" That's what I have to accept for being on the bleeding edge :)
-
kenrap
It feels good to get my pkg cache rebuilding again
-
ivy
it's definitely been a fun week for 15.0, with this and the gssapi problems and the pkgbase upgrade issue
-
kenrap
Yeah, curl was failing to build with gssapi problems. SponiX was also telling me how he was dealing with pkgbase problems too.
-
ivy
this is the least fun review i've ever prepared:
reviews.freebsd.org/D51874
-
ivy
i can't wait until we can just require pkgbase and get rid of OLD_FILES :-)
-
kenrap
ivy: that must've been a painful cleanup...
-
Tenkawa
ivy: thanks for the help yesterday.. all's good now
-
scoobybejesus_tl
3500 lines of diff... fun
-
Tenkawa
scoobybejesus_tl: not the worst/biggest I've ever seen
-
Tenkawa
Had one to do MNLS support back in the 90's that was massive for Java and Corba code
-
kenrap
So pkgbase will get rid of that form of maintenance, huh?
-
Tenkawa
(In a product I worked on)
-
ivy
kenrap: in theory, but not for a long time as we can't just remove make installworld even when pkgbase becomes the default
-
kenrap
ivy: oh, interesting. So when I build the base from scratch, I'll be able to pkgbase it?
-
ivy
kenrap: yes, just run 'make buildworld buildkernel update-packages' and you'll get a pkg repository for the base system
-
kenrap
Interesting
-
ivy
i vaguely want to remove a lot of WITHOUT_FOO knobs and instead use the pkgbase metadata to handle that even for non-pkgbase users
-
ivy
i'm not sure how that would work, but i guess you'd say make WITHOUT_GSSD=yes and it would just not build things that are in the gss package
-
kenrap
Would it make sense to have one "WITHOUT" knob and be able to pass in values like "gssd" to simplify things?
-
ivy
maybe
-
ivy
also we can't do everything this way, like lib32
-
kenrap
Gotcha
-
kenrap
(the gatekeepers at the forums are going to be foaming at the mouths when they learn about the make installworld to pkgbase transition...)
-
kenrap
Oh, they're already have. Good. :)
-
phryk
env shebangs ('#!/usr/bin/env python3' for example) don't seem to work properly from rc scripts. i assume PATH doesn't contain the stuff from /usr/local/ – how do i best work around this?
-
mfisher
back in the old days before people used /usr/bin/env, they would just specify the full path to the language binary, like /usr/local/bin/python3
-
Tenkawa
or source the system/user profile inside the script
-
Tenkawa
Then call python
-
phryk
mhh, i have that part working now, but it's ugly… I just overwrote PATH in the rc script… does that propagate to outside the rc script?
-
ek
phryk: $PATH should be inherited by anything that the script setting the path is running.
-
ek
... if that makes sense? Maybe could have worded that better.
-
phryk
ek: yeah, but that's not my question. my question is whether this might bubble out into the state of other rc scripts for example.
-
ek
phryk: You're just setting a PATH= in a ${LOCALBASE}/etc/rc.d script?
-
phryk
aye.
-
ek
So, only that rc script (and children it runs) with inherit the PATH change(s). Other rc scripts should be fine.
-
phryk
great, thanks. :)
-
ek
Unless, of course, this particular rc script is run in order to execute other rc scripts? That would be... interesting.
-
phryk
no, i'm just running a python executable. it's multiprocessed, tho. :P
-
ek
That'll be fine.
-
phryk
now i only have to find out why status is lying…
-
phryk
forums say "something something command_interpreter", but the docs in man 8 rc.subr on that option is sparse and only leaves me with more question… pidfile is created fine and contains the correct pid… status claims service isn't running when it actually is…
-
phryk
if i set it to /usr/local/bin/python3 it complains that it's not just "python3" as in the env shebang of the executable. if i set it to just python3 it doesn't report any problems, but in both cases 'onestatus' falsely claims the service ain't running.
-
phryk
the rc script i'm currently working on is essentially identical to this:
rnd.phryk.net/phryk/prometheus_poud…/main/files/prometheus_poudriere.in
-
ek
phryk: Just out of curiosity, why aren't you using #!/bin/sh for the rc script?
-
phryk
but i am?
-
phryk
look at the link, literally the first line is #!/bin/sh
-
ek
Ah. You said it was essentially identical to that. I didn't know it *WAS* that. I guess I misunderstood from the beginning. I thought you were creating a python rc script.
-
phryk
ah, no. that sounds painful.^^
-
ek
Hence the reason I had a raised eyebrow for a bit there. :)
-
Tenkawa
Anyone seen this one? specificly trying to build OpenJDK...
-
Tenkawa
er rather.. running it
-
ek
Tenkawa: Which one?
-
Tenkawa
Error occurred during initialization of VM
-
Tenkawa
Could not allocate compressed class space: 1073741824 bytes
-
ek
Tenkawa: I have not.
-
Tenkawa
anything newer than 8 on arm64 here
-
ek
This is within a VM?
-
Tenkawa
Both
-
Tenkawa
vm and 12 core ARMv9
-
ek
bhyve?
-
Tenkawa
no
-
ek
Oh, wait. Doesn't matter.
-
Tenkawa
Vmware host
-
ek
You're saying in VM and also on non-VM.
-
ek
Does the same thing happen on non-ARM?
-
ek
I don't use JDK, so I have no way to test.
-
Tenkawa
Don't have a non-arm machine setup atm..
-
Tenkawa
90% of what I do is either arm or risc-v
-
ek
What exactly are you running? I can spin up a jail or VM in i386 and/or amd64 real quick.
-
Tenkawa
This is 15-current.. (needs to be for the ARMV9 server)
-
ek
I can do CURRENT. I just want to see if this is ARM-specific?
-
Tenkawa
Let me check my x86
-
Tenkawa
see if any of my offline vms are fbsd
-
Tenkawa
I don't use them much anymore since I got 2 of these 12 core units and my M1
-
ek
I suppose I can also test on my silicon Mac.
-
Tenkawa
No.. appears all I have is netbsd on mine
-
Tenkawa
Natively?
-
ek
Just takes longer. My bhyve hypervisor makes things quick.
-
ek
Naw. It'd be a FBSD VM on my Mac.
-
Tenkawa
ok..thats close to my Mac M1 VMware VM
-
ek
Okay. I have a 15-CURRENT VM ready to go right now. What are you running to see this error?
-
Tenkawa
both from ports
-
Tenkawa
oops
-
Tenkawa
darn /
-
Tenkawa
/usr/local/bootstrap-openjdk8/bin/java works... /usr/local/bootstrap-openjdk17/bin/java fails
-
ek
Okay. Gimme a sec to install some of the ojdk's and bootstrap.
-
Tenkawa
16gb ram allocated to the vm so I know its got plenty of ram to work with....
-
Tenkawa
sure
-
Tenkawa
thanks for checking
-
ek
So, I don't get a bootstrap-* in /usr/local with ojdk8 from the package.
-
ek
But, /usr/local/bin/java works just fine.
-
Tenkawa
just a sec.. they are in a specific pkg
-
Tenkawa
let me find it
-
Tenkawa
and unfortunately dependencies of maven
-
Tenkawa
(and others)
-
ek
Hrm. I've got ojdk 8, 17, and 24 installed. All java(vm) executables seem to be fine on amd64.
-
ek
This is on 15-C (just updated via pkgbase)
-
Tenkawa
just a sec
-
Tenkawa
searching the db
-
Tenkawa
you need bootstrap-openjdk8-r453316_2 also
-
Tenkawa
and bootstrap-openjdk17-17.0.1.12.1
-
Tenkawa
so bootstrap-openjdk17 and bootstrap-openjdk8
-
ek
Got 'em.
-
Tenkawa
pkg provides is a great thing :)
-
ek
Same deal. Both run fine.
-
Tenkawa
Which bins? I want to run the same ones
-
ek
I just ran:
-
Tenkawa
Want to backtrace to see if something goofy is going on with this thing
-
ek
/usr/local/bootstrap-openjdk8/bin/java and /usr/local/bootstrap-openjdk17/bin/java
-
ek
Obviously, it does nothing but provide help. But, there were no errors.
-
ek
Are you passing additional args that may be the problem?
-
Tenkawa
yeah... one works one breaks here ... really odd
-
Tenkawa
nope.. well this is even "more" odd
-
Tenkawa
if I run them like this:
-
Tenkawa
/usr/local/bootstrap-openjdk8/bin/java ; /usr/local/bootstrap-openjdk17/bin/java
-
Tenkawa
they both dump
-
Tenkawa
I'll pastebin
-
phryk
ah, found the root of my problem: $_procname in rc.subr's _find_processes() containts the process *title* if one is set instead of the process *name*.
-
phryk
worked around it by further abusing that i've already overriden PATH – now my procname is just the executable name and status actually matches it because the process title begins with the executable name and the match is non-greedy. hella ugly, but it works.^^
-
Tenkawa
-
Tenkawa
even more odd
-
ek
phryk: Is this something you plan on submitting as a port in the future?
-
phryk
ek: not sure yet, but possibly. it's a work project, but i already got the okay to FOSS it from my boss.
-
ek
Tenkawa: I'm seeing stuff like this in the PR's, but with no noticeable resolution (yet):
bugs.freebsd.org/bugzilla/show_bug.cgi?id=265284
-
phryk
it's another prometheus exporter, but i was already too lazy to officially submit the previous one (prometheus_poudriere) because i didn't have the energy to figure out how to test for all supported python versions…
-
ek
phryk: Very cool! You may want to visit #freebsd-ports for additional help/suggestions regarding the creation.
-
phryk
yeah, really not sure about that yet. last time i maintained a port i was happy i could give maintainership away ^^;
-
ek
phryk: If it work with python3.11~, you should be fine. FBSD isn't too keen on supporting non-supported software. I honestly wouldn't bother with anything too old.
-
ek
phryk: Well, if it's your software/project, you can do whatever you want whenever you please. So, there's that.
-
ivy
ek: it should work with every python version in ports or else have a minimum python version set. but this is quite a pain to test...
-
phryk
ek: well, last time i maintained a port, testing it for all currently used python versions was a requirement to get an updated version of the port merged and i don't have the energy to figure out how to do that. and with this project in particular there isn't even a test suite yet, so i'd know even less how i can assure that it works…
-
ek
Otherwise, you can always submit the port and once it's in place you can request non-ownership and it'll fall into committer's/user's hands.
-
ek
ivy: I agree. I'm basically suggesting testing for python3 and IGNORE/BROKEN for python2 (or however specific they'd like to get.)
-
ivy
ek: this is more about 3.10, 3.11, 3.12, etc
-
ivy
(well i assume it is, i don't think anyone cares about python 2 anymore)
-
ek
ivy: It could be. I have no idea what their code works with. :)
-
ek
ivy: Exactly.
-
phryk
ek: is there a formal way of doing that, or do i just end my port submission with "btw i don't want to maintain this port"?^^
-
ek
phryk: That's pretty much the formal way.
bugs.freebse.org, submit a new port request and just say you have no interest in maintaining it. If it gets approved, it'll like just be assigned to ports@.
-
ek
Of course, that is if there's enough interest. Otherwise, you can be the maintainer and if it bothers you down the road, just submit a report saying you don't want it anymore.
-
phryk
i guess the poudriere exporter might be of interest, the new one not sure – monitors availability, responsiveness and tls expiry of (external) sites.
-
phryk
so potentially more people of whom it would be of interest, but potentially also already existing alternatives.
-
ek
phryk: Sounds solid. I'd give it a go if it were mine.
-
Tenkawa
ek: I saw that bug too however isn't that the env (M1 Mac) you tested on too?
-
Tenkawa
ek: definitely appears to be the M1 only... works fine on my O6 FreeBSD Native box
-
Tenkawa
(Thats the ArmV9)... I just reset the env and tried it
-
regis
I got triggered. Is FreeBSD on Apple Silicon a thing?
-
Tenkawa
regis: only in a vm here... I use it natively on a Radxa Orion-O6 though... with great success