New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev is a hard dependency #30
Comments
pkg-config is searching for But you are right that build system should work even when udev is not installed. Whole udftools works correctly without udev installed or running in system. Could you try following patch if it allows you to build udftools without udev? diff --git a/configure.ac b/configure.ac
index 63bef62..d71fee8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,7 +25,8 @@ AC_C_BIGENDIAN
AC_SYS_LARGEFILE
PKG_PROG_PKG_CONFIG
-PKG_CHECK_MODULES(UDEV, [udev], [ac_cv_udevdir=`$PKG_CONFIG --variable=udevdir udev`])
+PKG_CHECK_MODULES(UDEV, [udev], [ac_cv_udevdir=`$PKG_CONFIG --variable=udevdir udev`], [ac_cv_udevdir=""])
+AM_CONDITIONAL(UDEVDIR, [test "$ac_cv_udevdir" != ""])
AC_SUBST(UDEVDIR, $ac_cv_udevdir)
dnl Checks for library functions.
diff --git a/pktsetup/Makefile.am b/pktsetup/Makefile.am
index 0c5fd1c..2d0882f 100644
--- a/pktsetup/Makefile.am
+++ b/pktsetup/Makefile.am
@@ -2,9 +2,13 @@ sbin_PROGRAMS = pktsetup
pktsetup_SOURCES = pktsetup.c
EXTRA_DIST = pktsetup.rules
+if UDEVDIR
+
install-data-local:
mkdir -p "$(DESTDIR)$(UDEVDIR)/rules.d"
$(INSTALL_DATA) "$(srcdir)/pktsetup.rules" "$(DESTDIR)$(UDEVDIR)/rules.d/80-pktsetup.rules"
uninstall-local:
- rm -f "$(DESTDIR)$(UDEVDIR)/rules.d/80-pktsetup.rules"
+ $(RM) "$(DESTDIR)$(UDEVDIR)/rules.d/80-pktsetup.rules"
+
+endif |
Yes that fixes the issue. udftools compiles and works fine. Thanks |
In slackware 14.0 (old distro), udev is not detected.
I get this error
udev is version 182... i can't disable udev. In NEWS i read:
I don't need that udev rule, but this requirement is preventing ./configure from succeeding.. that's wrong.
This is how it should be:
the build system detects whether udev is installed, if it's not installed it should silently continue disabling udev-specific code .. --enable-udev/--disable-udev should be used to enforce or ignore udev.
The text was updated successfully, but these errors were encountered: