From b8db87be577d935e31bea44768df7492fc8da9cf Mon Sep 17 00:00:00 2001 From: Sylvain BERTRAND Date: Wed, 22 Nov 2023 13:47:55 +0000 Subject: [PATCH] libxkbfile:update and move to /usr mono block runtime We did remove the costly SDK at the same time. --- builders/libxkbfile-1.1.2/builder.sh | 117 +++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 builders/libxkbfile-1.1.2/builder.sh diff --git a/builders/libxkbfile-1.1.2/builder.sh b/builders/libxkbfile-1.1.2/builder.sh new file mode 100644 index 0000000..ca70fe3 --- /dev/null +++ b/builders/libxkbfile-1.1.2/builder.sh @@ -0,0 +1,117 @@ +src_name=libxkbfile +version=${pkg_name##*-} +slot=$version +archive_name=$src_name-$version.tar.xz +url0=http://xorg.freedesktop.org/releases/individual/lib/$archive_name + +pkg_dir=$pkgs_dir_root/$src_name-$version +rm -Rf $pkg_dir +mkdir -p $pkgs_dir_root +cp -f $src_dir_root/$archive_name $pkgs_dir_root +cd $pkgs_dir_root +tar xf $archive_name + +build_dir=$builds_dir_root/$pkg_name +rm -Rf $build_dir +mkdir -p $build_dir +cd $build_dir + +# XXX: for all X11 based header we do not define MALLOC_0_RETURNS_NULL for glibc allocator + +mkdir -p $build_dir/bin +cat >$build_dir/bin/cc <$o\n" + cc -c $pkg_dir/src/$f -o $build_dir/$o \ + -DHAVE_UNLOCKED_STDIO \ + -DHAVE_STRCASECMP \ + -DHAVE_STRNDUP \ + -I$pkg_dir/include/X11/extensions \ + -I$pkg_dir/include & +done +#--------------------------------------------------------------------------------------------------- +wait +#--------------------------------------------------------------------------------------------------- +# TODO: we are still using the compiler driver, bad +# no version file and it expects all symbols to end up in dynamic table, aka must not use default +# hidden visibility +printf "CCLD libxkbfile.so.1.0.2\n" +cc -o $build_dir/libxkbfile.so.1.0.2 \ + -shared -Wl,--soname=libxkbfile.so.1 -Wl,-s -Wl,-no-undefined \ + $os \ + -lX11 +#--------------------------------------------------------------------------------------------------- +mkdir -p /nyan/$src_name/$slot/lib +rm -Rf /nyan/$src_name/$slot/include/X11/extensions +mkdir -p /nyan/$src_name/$slot/include/X11 + +cp -r $pkg_dir/include/X11/extensions /nyan/$src_name/$slot/include/X11 +cp -f $build_dir/libxkbfile.so.1.0.2 /nyan/$src_name/$slot/lib + +ln -sTf libxkbfile.so.1.0.2 /nyan/$src_name/$slot/lib/libxkbfile.so +#--------------------------------------------------------------------------------------------------- +mkdir -p /usr/lib +# XXX:current and not slot +ln -sTf /nyan/$src_name/current/lib/libxkbfile.so.1.0.2 /usr/lib/libxkbfile.so.1 +#--------------------------------------------------------------------------------------------------- + +export PATH=$PATH_SAVED +unset PATH_SAVED +rm -f $pkgs_dir_root/$archive_name +rm -Rf $build_dir $pkg_dir -- 2.11.4.GIT