qLinux
… a distribution study
<< Prev Ubase-0.1
Next >> Slang-2.3.2
Reference: GLib-2.68.4. The package is required by mc. We use an older version here because it uses GNU autotools and not meson/ninja which requires python which is (maybe) not available yet. Fix the build system:
patch -Np1 -i glib-2.56.2-bld-20220215.patch
This package requires gettext, otherwise glib searches for libxml2 and more dependencies.
Apply a patch to suppress warnings at the command line:
patch -Np1 -i glib-2.56.2-skip_warnings-1.patch
Apply a patch to ensure that glib compiles with gcc version >=9:
patch -Np1 -i glib-gcc-null-pointer.patch
Apply a patch to work around an issue with an inconsistent path of localedir:
patch -Np1 -i glib-2.56.2-localedir.patch
Apply a patch to fix the sources accordingly to qLinux:
patch -Np1 -i glib-2.56.2-bld-20220216.patch
Now build and install glib:
./configure --prefix=/libs \ --with-pcre=internal \ --enable-static \ --with-gio-module-dir= \ --enable-gtk-doc=no \ --includedir=/libs/inc \ --datarootdir=/libs/dat \ --localedir=/libs/dat/locale \ --libexecdir=/libs/bin/libexec \ --htmldir=/libs/tmp \ --docdir=/libs/tmp
All options for documentation doesn't work too. Thus remove the unwanted docs:
rm -rf /libs/dat/gtk-doc The option [m]--localedir[/m] doesn't work reliable, but internal it is set correct in [m]config.h[/m]. Thus we move the locale to the correct location after [i]install[/i]. <code> make make install cp -vr /libs/lib/locale/* /libs/dat/locale rm -rfv /libs/lib/locale
Remove the documentation:
rm -rf /libs/dat/gtk-doc
<< Prev Ubase-0.1
Next >> Slang-2.3.2