Public bug reported: Binary package hint: dkms
If a PRE_BUILD command is defined in a dkms.conf file, then it is invoked as $dkms_tree/$module/$module_version/source/$pre_build in the current working directory. This is incorrect behavior because PRE_BUILD could modify or generate source files. Also note that $dkms_tree/$module/$module_version/source/ is linked to /usr/src/$module-$module_version/ and should be therefore be read-only regardless. Expected behavior is that PRE_BUILD be always invoked from the $dkms_tree/$module/$module_version/build/ temporary area. The attached patch results in the expected behavior. I noticed this glitch because I'm working on a DKMS package for the ZFS filesystem; the SPL module uses a configure script to create some things in the build area. ProblemType: Bug DistroRelease: Ubuntu 10.10 Package: dkms 2.1.1.2-3ubuntu1.1 [modified: usr/sbin/dkms] ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8 Uname: Linux 2.6.35-24-generic x86_64 NonfreeKernelModules: zfs zcommon znvpair zavl zunicode nvidia Architecture: amd64 Date: Thu Jan 13 15:47:34 2011 PackageArchitecture: all ProcEnviron: LANG=en_US.utf8 SHELL=/bin/bash SourcePackage: dkms ** Affects: dkms (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug maverick -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/702638 Title: dkms invokes the PRE_BUILD command from the wrong working directory -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs