From: Lucas De Marchi Date: Tue, 25 Mar 2025 20:10:11 +0000 (-0500) Subject: autotools: Fix generated files in tarball X-Git-Tag: v34.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edfde290c9f371088d3ebb06da1e4664bee5ff5f;p=thirdparty%2Fkmod.git autotools: Fix generated files in tarball Tweak the autogen.sh so the commands used do not create symlinks and also remove the autom4te.cache dir that was not in the kmod-33 release. This is v34-only since autotools was completely removed from master branch. Closes: https://github.com/kmod-project/kmod/issues/292 Signed-off-by: Lucas De Marchi --- diff --git a/autogen.sh b/autogen.sh index 33f363f0..e42a5354 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,13 +6,17 @@ oldpwd=$(pwd) if [ -n "$MESON_DIST_ROOT" ]; then topdir="$MESON_DIST_ROOT" + gtkdocize_args="--copy" + autoreconf_args= else topdir=$(dirname $0) + gtkdocize_args= + autoreconf_args="--symlink" fi cd $topdir -gtkdocize --docdir libkmod/docs || NO_GTK_DOC="yes" +gtkdocize ${gtkdocize_args} --docdir libkmod/docs || NO_GTK_DOC="yes" if [ "x$NO_GTK_DOC" = "xyes" ] then for f in libkmod/docs/gtk-doc.make m4/gtk-doc.m4 @@ -22,7 +26,7 @@ then done fi -autoreconf --force --install --symlink +autoreconf --force --install ${autoreconf_args} libdir() { echo $(cd "$1/$(gcc -print-multi-os-directory)"; pwd) diff --git a/meson.build b/meson.build index d801337f..1b30e09b 100644 --- a/meson.build +++ b/meson.build @@ -548,7 +548,7 @@ endif # dist && autotools compat # ------------------------------------------------------------------------------ -meson.add_dist_script('autogen.sh') +meson.add_dist_script('scripts/autogen-for-tarball.sh') # ------------------------------------------------------------------ # documentation diff --git a/scripts/autogen-for-tarball.sh b/scripts/autogen-for-tarball.sh new file mode 100755 index 00000000..4ea84362 --- /dev/null +++ b/scripts/autogen-for-tarball.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cd "$MESON_DIST_ROOT" +./autogen.sh +rm -rf autom4te.cache