From b3280938953aa0aba4ba3ea4ef5876f9f967dbad Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Mon, 24 Feb 2025 19:34:10 +0100 Subject: [PATCH] build: support missing gtkdocize in releases The release tarballs may already contain symbolic links into the file system for gtk-doc specific files. If gtk-doc is not installed, and thus not desired for building, remove the symbolic links and create empty files instead. Signed-off-by: Tobias Stoeckmann Link: https://github.com/kmod-project/kmod/pull/295 Signed-off-by: Lucas De Marchi (cherry picked from commit 889473e801984382bd08927717e9322c20418144) --- autogen.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index ab97de4f..33f363f0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -12,7 +12,16 @@ fi cd $topdir -gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make +gtkdocize --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 + do + rm -f $f + touch $f + done +fi + autoreconf --force --install --symlink libdir() { -- 2.47.2