AlienSoldier has quit [Quit: Vision[]: i've been blurred!]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x10z has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trungnt2910[m]>
About the `dl_iterate_phdr`:
<trungnt2910[m]>
It is possible to retrieve the first 4 members of the `dl_phdr_info` struct through Haiku's `get_next_image_info`, but some other information, such as `dlpi_tls_modid`, `dlpi_adds`, and `dlpi_subs` are stuff that only the `runtime_loader` knows. (And Haiku's `dl_phdr_info` struct defined here: https://xref.landonf.org/source/xref/haiku/headers/compatibility/bsd/sys/link_elf.h#85 has all 8 members)
<trungnt2910[m]>
Is it acceptable to implement this function (or parts of this, as a helper), in the `runtime_loader` and export the function through the `__gRuntimeLoader` symbol?
<Begasus>
I already knew that prepareInstalledDevelLib(s) doesn't need (s) if there is only one library, but it does need it when there are more then one ;)
<Anarchos>
Begasus i began to work again on my native haiku interface for my mathematical demonstration verifier :)
<Begasus>
Keeping busy Anarchos :)
<Begasus>
Got TeXstudio and texlive running good so far it seems :) https://ibb.co/7VGLHTj
<Anarchos>
Begasus i use latex in my interface to get nice formulas
<Anarchos>
latex ->dvipng -> use png images :)
<Begasus>
not that far here Anarchos , but nice to see it working
<Anarchos>
and i use mime types for drag and drop : if the application receives images, it receives the png, if the application receives text, it get the latex source of the png image :)
<Begasus>
cool :)
<Anarchos>
Begasus yes, nice features of beos/haiku :)
<Anarchos>
Begasus is texstudio competing with BeTeX ?
<Anarchos>
Begasus the biggest trouble with betex is that it becomes really slow to do syntax coloring when the document size is > few kilobytes :/
<Begasus>
I don't know Anarchos haven't use BeTeX that much
<Anarchos>
ok
<Anarchos>
Begasus it is still on my todo list to get my betex fixes to be accepted upstream in haikuarchives
<Begasus>
great Anarchos !
<Begasus>
ok, BeTeX doesn't want to open the samplefile.tex ?
<jmairboeck>
I think this is something separate, so we probably just need a recipe for it :)
<Anarchos>
Begasus it seems TeXLive gets 'tex4ht' to do tex > html conversion
<Begasus>
Ah, needs looking into jmairboeck :)
<Begasus>
worth a shot Anarchos
<Anarchos>
Begasus it seems latex2html command is not modifiable in my BeTeX version : will add that to my todo list
<Begasus>
found out Anarchos ;)
<Begasus>
does BeTex store it's settings/preferences somewhere? or are they hardcoded?
<Begasus>
could have a look at that latex2html thing
<Anarchos>
Begasus they are stored in a ~/config/betex.settings file (not sure of the case)
<Begasus>
ah, maybe that's why Anarchos
<Begasus>
~/config is read-only (so the file isn't created)
<Begasus>
better would be ~/config/settings/betex ?
<Anarchos>
Begasus Verified; it is ~/config/settings/betex.settings
<Anarchos>
Begasus time to lunch :)
Anarchos has quit [Quit: don't forget we need to make a better world]
humdinger has quit [Quit: Vision[]: Oi with the poodles already!!]
stux- has quit []
stux|away has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
<trungnt2910[m]>
x512: Did you patch any code for the `libunwind` port on Haiku working, or was it the same code from the LLVM project?
<trungnt2910[m]>
I'm building my own copy of `libunwind` from the LLVM source. It builds well (with a few special flags), but fails when I tested `make check-unwind`.
<x512[m]>
trungnt2910: Yes, I modified LLVM libunwind code to add GCC-specific eh_frame register functions and Haiku signal frame unwinding.
<x512[m]>
Haiku currently do not use eh_frame_hdr in program table.
<x512[m]>
LLVM will not work until libgcc_s.so conflict will be resolved.
<x512[m]>
LLVM libunwind
<trungnt2910[m]>
<x512[m]> "trungnt2910: Yes, I modified..." <- Which version of LLVM did you base on (so that I can compare)
<Begasus>
don't think it's ready for merge yet (maybe you could have a look) but it's working ok in BeTeX
<Begasus>
Guessing TeXstudio is using the one from texlive_core ;)
<Begasus>
bbl
m199 has quit [Remote host closed the connection]
_Dario_ has joined #haiku
ClaudioM has joined #haiku
HaikuUser has joined #haiku
<HaikuUser>
hi, n0toose showing off haiku to a friend here sending their greetings
doomquakekeen has quit [Quit: leaving]
<PulkoMandy>
hi :D
<PulkoMandy>
have fun!
<n0toose[m]>
i also gave him some of your stickers
<n0toose[m]>
:^)
DKnoto has quit [Ping timeout: 480 seconds]
DKnoto has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
mmu_man has joined #haiku
ablyss_ has quit [Quit: Leaving]
<trungnt2910[m]>
<x512[m]> "trungnt2910: Yes, I modified..." <- Hmm, tried to apply your patch and build a copy of `libunwind` (I built it using LLVM's cmake, independently from Haiku, and not using your Jam version). `make check-unwind` always fails, the resulting program always crashes on `__register_frame_info`.
<Begasus>
jmairboeck, this is less comments on github
<Begasus>
reworking and adding the needed cmd's atm to the list, will check a build for "any" in a bit
<jmairboeck>
ok, thanks Begasus
<Begasus_32>
Note: trying to install LaTeX2HTML style files in TeX directory tree
<Begasus_32>
(/html)
<jmairboeck>
I didn't actually try to use it yet
<Begasus>
not sure what to do with that
<Begasus>
it creates a html directory in $portDir
<jmairboeck>
Begasus_32: yes, I noticed that too, the files end up in the work-dir outside of packaging and are not packaged
<Begasus>
included some *.sty files
<Begasus>
right
<jmairboeck>
I suppose they should go into $dataDir/texlive/texmf-dist somewhere
<Begasus>
yeah
<jmairboeck>
could you try adding texlive to build requirements?
<Begasus_32>
I think /boot/system/data/texlive/texmf-dist/tex/latex
<Begasus>
as that contains other *.sty files?
<jmairboeck>
maybe if kpsewhich actually works, it can determine where to put the files
<jmairboeck>
just a suggestion into the blue
<Begasus>
jmairboeck, I got a warning from mktexlsr that it can't find the texmf.cnf configuration file ... I don't see that warning here?
<Begasus>
I've seen it though, but outside of the package
jmairboeck_haiku has joined #haiku
<Begasus>
let me check "any"
<jmairboeck_haiku>
Begasus: I got this: Info: Running /bin/mktexlsr to rebuild ls-R database... warning: kpathsea: configuration file texmf.cnf not found in these directories: /packages/texlive_core-2022-1/.self/data/texlive/texmf-dist/web2c:/boot/system/non-packaged/data/texmf-dist/web2c:/boot/home/config/settings/texmf-dist/web2c. mktexlsr: Done.
<Begasus>
ah, saw that when running the "test" case
<Begasus>
although the file is present
<jmairboeck>
adding texlive would mean that the recipe would have to be marked as "untested" though
<Begasus>
err .. bugger
<jmairboeck>
the texmf.cnf file is part of the texlive package, not texlive_core
<x512[m]>
trungnt2910: Can you attach crash report?
<trungnt2910[m]>
x512[m]: Crash report? I only have the terminal output...
<Begasus>
ok, "any" doesn't work (no libgs for primary arch)
<Begasus>
but then, ghostscript isn't picked up correctly also
<x512[m]>
It can be shared library initialization order problem causing malloc to fail because libroot.so is not yet fully initialized when __register_frame_info is called. This is one of reasons why I moved libunwind inside libroot.
<jmairboeck>
ok, then we could probably use an if [ $effectiveTargetArchitecture = "x86_gcc2" ] and require lib:libgs_x86 instead?
<jmairboeck>
similar to what is done with commandBinDir etc.
<x512[m]>
trungnt2910: Haiku should show crash report dialog. If not, someone handling SIGSEGV signal.
<Begasus>
or drop libgs for now jmairboeck ... that works atm
<Begasus_32>
checking for gs... /bin/gs
<Begasus>
maybe that's enough ...
<jmairboeck>
if you require cmd:gs instead of the library, that would work too?
<x512[m]>
Also note that putting libraries to "lib" directory near application can be used for easy testing.
<x512[m]>
No need to fully rebuild system to replace libroot or libgcc_s.
<Begasus>
ah right, version mismatch ... old one kept around
AnacletoGames has joined #haiku
<x512[m]>
trungnt2910: You can compile only libroot with `jam -q libroot.so` with my 2 patches and put it into "lib" directory near to application for testing.
<x512[m]>
And libgcc_s stub too.
<Begasus>
maybe needs ghostscript_gpl$secondaryArchSuffix instead of cmd:gs ...
<trungnt2910[m]>
lib directory near to application?
<trungnt2910[m]>
What's "near to application"?
<Begasus>
nope ... won't work
<x512[m]>
Than you can make some simple exception catching or stack tracing unwinding tests.
<Begasus>
"any" doesn't pull in $secondaryArchSuffix
AnacletoGames has quit [Ping timeout: 480 seconds]
AnacletoGames has joined #haiku
jmairboeck_haiku has quit [Ping timeout: 480 seconds]
humdinger has joined #haiku
<humdinger>
waddlesplash: Can we induct nielx as member of HaikuArchives, since he'll mentor Calendar for GSoC?
<waddlesplash>
yes.
<humdinger>
thanks. has to be done by an "owner".
<waddlesplash>
done
<humdinger>
quick! :)
<humdinger>
thanks
HaikuUser2 has joined #haiku
AnacletoGames has quit [Ping timeout: 480 seconds]
HaikuUser3 has joined #haiku
AnacletoGames has joined #haiku
<jmairboeck>
Begasus: I found the bug in your recipe with the /html/* files: the correct configure argument is --with-texpath instead of --with-tex
<jmairboeck>
--with-tex would be the path to the "tex" binary
<jmairboeck>
and I think you can remove every $secondaryArchSuffix and the binDir stuff
<Begasus>
will check in a bit jmairboeck ... fighting with ghostscript_gpl ;)
<Begasus>
rebuild ...
<Begasus>
ok, no "html" directory left behind ...
<Begasus>
thanks jmairboeck , in the right place now
<Begasus>
jmairboeck, which package provides texmf.cnf
<Begasus>
(I can disable that for the check)
<jmairboeck>
that is in texlive (the base package)
<Begasus_32>
I can't find the format file `pdflatex.fmt'!
<Begasus>
ok, got a bit further for the tests
<Begasus>
but then ... the above
<jmairboeck>
ok, so you have to regenerate the format files (that would be done by the post-install script of the texlive packages). The simplest way is probably to use texlive_update.sh (from texlive).
<Begasus>
running
<Begasus>
think this could take some time ... ;)
<Begasus>
PM
<rennj>
till the heat death of the universe, turing complete
<rennj>
halt!
selfish- has joined #haiku
DKnoto has quit [Ping timeout: 480 seconds]
selfish has quit [Ping timeout: 480 seconds]
DKnoto has joined #haiku
xet7 has joined #haiku
Gautam has joined #haiku
dpirate has quit [Remote host closed the connection]
HaikuUser has quit [Remote host closed the connection]