From 08503c2482e97b008ae43c9b87fe632631b682d2 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 18 Feb 2026 11:56:44 -0500 Subject: [PATCH] build: fix `make dist` with java disabled Fails for me with: No rule to make target 'com_redhat_et_libguestfs_GuestFS.h' libguestfs_jni_la_SOURCES is inside the `HAVE_JAVA` conditional, but apparently with automake that doesn't matter, and _SOURCES will always be copied into Makefile.in, making `make dist` fail even if we never built anything in the java/ directory. That header is in BUILT_SOURCES already which apparently does what we want (and is _not_ copied unconditionally to Makefile.in). So just drop the offending line Signed-off-by: Cole Robinson --- java/Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/java/Makefile.am b/java/Makefile.am index d7fabcb02..d9c44868a 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -99,7 +99,6 @@ jnilib_LTLIBRARIES = libguestfs_jni.la jnilibdir = $(JNI_INSTALL_DIR) libguestfs_jni_la_SOURCES = \ - com_redhat_et_libguestfs_GuestFS.h \ actions-0.c \ actions-1.c \ actions-2.c \