Python issue solved the "redneck repair" way, installing *everything* to /usr/lib64 (on a 64bit system) instead of *just* the architecture-dependent stuff. Now, python works and finds all its modules... 🙄
After porting lots of extra python tools (cause #pip won't do it for proper packaging with staging), it seems I finally have a working #meson in my #FreeBSD #Linuxulator userland 🥳
Nevermind all these extra modules install to /usr/lib. Well, it works, I don't care 😂
Doing a full rebuild of all the #Linux ports now just to be sure (cause I also changed stuff in my USES). If all is fine, branch will be updated 🙏
#pip #meson #freebsd #linuxulator #linux
Hitting the next roadblock in my #FreeBSD #Linuxulator "userland from source" project: #Linux #Python is causing trouble. I got it to build and package, but runtime parts are wrong, *somehow* the "/compat/linux" prefix "sneaks in" 😞 (still didn't understand how exactly...).
You might ask why port python at all, and indeed, I didn't plan to do so initially.
The issue is build systems. With the goal to port shared libraries that might be needed by (closed-source) Linux binaries, not all of them use plain #make (or #GNU #autotools) for building.
#cmake is popular, so I'll need it. To build it using shared libraries itself, one of its prerequisites needs #meson, which, in turn, requires python. 🤯
Ahh, welcome to dependency hell 😜
#freebsd #linuxulator #linux #python #make #gnu #autotools #cmake #meson
2023-07-21 Meson – Storyville, Moldejazz
Meson er Torgrim Sollid, Elin Rosseland, Ingeborg Gravem Sollid og Andreas Wildhagen som improviserer fritt rundt stemmer, trompet og trommer. Gruppa har hatt litt lenger levetid enn det gjengse meson (størrelsesorden 10–8 sekund) – de har både vært i studio og gitt ut plate før denne spennende konserten på Moldejazz.
Ingeborg Gr
https://thoregilphoto.com/2023/07/21/2023-07-21-meson-storyville-moldejazz/
#Konsert #Meson #Moldejazz #Storyville
#storyville #moldejazz #meson #konsert
If I have a python/C++ project using meson and a pyproject.toml file and I want to build a wheel WITH debug symbols. How would I do that?
My current wheels build without the symbols making debugging much more difficult.
Update: I added , '--debug' to the setup array under [tool.meson-python.args]
I just tried out using precompiled headers for a rather big project with a whole load of headers. Increased my clean build time from 42s to 62s. Yay
In other news, #meson's precompiled headers support is pretty good. It was really easy to set up. It freaks me out to have source files with *no* includes though.
#meson #cpp #programming #clang #llvm #cplusplus
Ohey I encountered a bug in #meson, https://github.com/mesonbuild/meson/issues/11966
I think I'm getting the hang of designing #gtk4 guis. The secret seems to be "just put it in a GtkBox lol, if that's not enough then add another GtkBox". It would be even more enjoyable if Blueprint build process in #meson worked correctly for #Vala, but I guess that would be too convenient.
Now let's hope that this project won't be abandoned like all the others I've started
You know how some people that know Java don't put it on their résumé because they don't want to work in Java?
For me, that's #autotools, #autoconf, #automake
PSA: please switch your projects to #Meson
#autotools #autoconf #automake #meson
#Meson lacks any internal documentation, so I have no idea how to add new compilers.
#Meson is very nice if used instead of make as build tool, but it has limited support for languages.
Today's sigh: meson-python suddenly decided that they won't call `#meson compile` anymore and they'be calling #ninja directly instead. As a result, `compile-args` in the `config_settings` dict suddenly changed from passing meson options to passing ninja options.
Yes, you guessed right. This sudden API change broke our workflow.
https://bugs.gentoo.org/904677
https://github.com/mesonbuild/meson-python/issues/409
#meson #ninja #gentoo #python #pep517
💡Want to develop your #Meson project in a modern IDE? With the recent release of Meson 1.1.0, the VSCode extension is now fully functional & ready to use! Here's how it works: https://col.la/mesonvscode #OpenSource #Meson #VisualStudio #Coding #HowTo
#meson #OpenSource #VisualStudio #coding #HOWTO
Another homework assignment for myself: gotta teach myself a little bit about the #meson build system so that I can poke around with the experimental xfce4-python-sample-plugin https://gitlab.xfce.org/itsManjeet/xfce4-python-sample-plugin #Xfce #python The learning just never stops...Good times!
@cadey #Meson build system has top tier pkg-config support (from both user and dev PoV). On the other end of the spectrum there is #CMake.
If you need to generate it manually, you need to be aware of the subtleties between static and dynamic libraries (the distributed .pc file depends on the user configuration). Aside from that it's relatively straightforward.
For Go specifically, I'm afraid I can't help though.
#clang's scan-build is really awesome for simple to setup #StaticAnalysis, all you need is a compile-commands.json which is easily generated by #Meson or #CMake but also with classic #Makefiles when using bear(1). Then, just point it to the JSON and run a new build. Output is on the console as well as an HTML with a nice taint analysis which branches need to be taken for what to happen. Trade off benefit/time is real good
#clang #staticanalysis #meson #cmake #makefiles