-
jclulow
FYI: With our apologies for the delays, the manual and the HCL are back online; i.e.,
illumos.org/man and
illumos.org/hcl
-
neko`
Hi. I have a documentation patch for memory(3c), but I have no idea where to send the patch. I've read
illumos.org/docs/contributing and it points to create an account on issue tracker, but no mention where to submit the patch.
-
tsoome
in general, once you have the account, you can post it to gerrit --
code.illumos.org (I hope the steps are documented).
-
neko`
Oh nice, thanks @tsoome!
-
tsoome
of course, the problem with updates to manuals is pain with gerrit - it does not provide diffs for renrered text and such
-
tsoome
rendered*
-
tsoome
historically we have had webrev reviews as well (see /opt/onbld/bin/webrev), but that requires web server
-
tsoome
and today we practically do not see webrev reviews even for manual page updates
-
tsoome
interestingly, cr.illumos.org is still pinging:)
-
tsoome
ah, and it is providing link to gerrit guide as well:)
-
iximeow
the other steps for Gerrit reviews and RTI are described in the Code Review/Submitting A Patch sections of that docs page, though this is a good reminder to nudge folks about
illumos/docs #100
-
iximeow
the docs changes aren't anything super fundamental but i think it helps some of the whys make a little more sense :)
-
tsoome
IMO we should have something better for manuals, it is such an important part and is usually most annoying to review:D
-
tsoome
well, unless its really small change ofc
-
iximeow
yeah i basically assume right now you'd just want to pull the change and see how it looks locally to review and that's not the best...
-
tsoome
whaaat, there is no zilstat. pity...
-
EasyNT
Hurray, the HCL is up again :). If anybody is interested, I asked whether Broadcom PEX 8747 is compatible with Illumos (specifically this card for NVMe SSDs:
delock.com/produkt/90078/merkmale.html). I was able to test it today on the latest SmartOS release and format sees all four NVMes, so looks good!
-
EasyNT
Maybe somebody in charge of the HCL wants to add that?
-
tsoome
.oO 5368709120 bytes (5 GiB) transferred in 7272,137029 secs (721 KiB/sec)
-
gitomat
[illumos-gate] 16879 pkglint fails on openindiana with more unexpected /32 packages -- Bill Sommerfeld <sommerfeld⊙ho>
-
gitomat
[illumos-gate] 17202 unix needs memstr.c -- Toomas Soome <toomas.soome⊙mi>
-
tsoome
errm, is it just me or man -M switch is broken?
-
tsoome
man appears to search system path and ignores path from -M (for me)
-
rmustacc
How are you using it?
-
rmustacc
I use it a bunch while developing manual pages in illumos and haven't had issues.
-
tsoome
for example: man -M /code/illumos-gate/usr/src/man memory
-
tsoome
there is small fix in memory.3c (we are missing const from memchr and memrchr)
-
rmustacc
That works for me on my system.
-
rmustacc
I modified a file in the clone.
-
rmustacc
And seems to be fine whether I use the absolute or relative path.
-
tsoome
so it must be me
-
rmustacc
Just to confirm, it is /usr/bin/man?
-
tsoome
yes, according to which... I'm double checking, it really does not seem to make sense...
-
richlowe
are you sure you gave it the -M switch there, and didn't accidentally give it the manN directory?
-
tsoome
sigh, got it. this vim in omnios is creating backup file with ~ at the end and man command is picking up 951: open64("/code/illumos-gate/usr/src/man/./man3c/memory.3c~", O_RDONLY) = 3
-
richlowe
it treats memory.3c~ as memory(3C)?
-
richlowe
not memory(3C~)?
-
richlowe
eugh
-
tsoome
yes, it seems so
-
tsoome
it seems like another bug to me
-
tsoome
but well...
-
tsoome
this is the command and check:
pastebin.com/FTAvnq7Z
-
tsoome
and thanks!
-
rmustacc
So, here's what's going on.
-
sommerfeld
reading the code in man.c's searchdir() I see why this is happening - when checking for a match, it's ignoring everything in the filename after the last '.', and returning the first match
-
rmustacc
The thing is we're not specifying a section.
-
rmustacc
Yeah, exactly.
-
rmustacc
This would be the same thing with same why you get section 1 before section 4/7 of the same thing.
-
rmustacc
If you did man -a you'd get all of them.
-
rmustacc
So in this case, man is doing what it kind of expects, but in a weird way.
-
rmustacc
If you said memory.3c then it wouldn't find that.
-
rmustacc
But the same would be true if you made man/man3c/memory.a man/man1/memory, etc.
-
tsoome
ok, so the .sectionname suffix is just a decoration
-
rmustacc
Well... it's a bit of a hack.
-
rmustacc
If you don't specify -s to suggest a specific manual, man will always search all sections for something that matches.
-
rmustacc
And .3c~ matches ahead of .3c in this case. And without -a it stops after the first.
-
rmustacc
If you specify foo.3c then it does try to find a file named that in all sections, which it'll only find in 3c.
-
rmustacc
At least, IIRC.
-
richlowe
I think the assumption toomas (and I, honestly) had was that the directory implied in the search and the extension had to match for man to care
-
tsoome
at least its amusing way to shoot myself into the leg:D
-
richlowe
that is, that manfoo/page.bar would never hit
-
richlowe
more generally man(.*)/page.\1
-
rmustacc
Well, I think that would be an optimization that man could imply, but you are saying logically search for every file named foo in the path.
-
rmustacc
So it's just a simple for each path entry, for each section, is page present. But it would be reasonable for it to append something in that search.
-
richlowe
so if I do `man -s 3c foo`, does man search for 'foo.3c' in the entire path, or man3c/foo.*?
-
richlowe
or man3c/foo.3c
-
rmustacc
It just appears to search for foo.3c with upper/lower case logic.
-
rmustacc
I know it finds the right thing, but I haven't looked at how it does.
-
richlowe
yeah, I'm just wondering how wrong my assumptions have been
-
richlowe
it's not like I ever drop random files into my man path, and I have long configured editor files to go somewhere else because of similar disasters to this (though not this one)
-
rmustacc
I dunno. I mean, it'd be reasonable to me to have man only look for foo.X in it's looking in manX.