meson: always pass complete path to kmod-symlink.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Emil,

commit 844835cd9a4e5f08e1a3eefb4928c5d769264894 breaks when NO DESTDIR is set:

meson compile -C ../build

meson setup --native-file build-dileks.ini ../build

[ build-dileks.ini ]
; SPDX-FileCopyrightText: 2024 Emil Velikov <emil.l.velikov@xxxxxxxxx>
; SPDX-FileCopyrightText: 2024 Lucas De Marchi <lucas.de.marchi@xxxxxxxxx>
;
; SPDX-License-Identifier: LGPL-2.1-or-later

[project options]
build-tests = false
debug-messages = false
docs = false
zstd = 'enabled'
xz = 'enabled'
zlib = 'enabled'
openssl = 'enabled'
werror = true
strip = true

[built-in options]
buildtype = 'release'
-EOF-

sudo LC_ALL=C meson install -C ../build
...
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/depmod'
/home/dileks/src/kmod/git/scripts/kmod-symlink.sh: line 10: DESTDIR:
unbound variable
FAILED: install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/depmod'
failed with exit code 1.

Works:

sudo DESTDIR=/bin meson install -C ../build
...
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/depmod'
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/insmod'
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/lsmod'
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/modinfo'
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/modprobe'
Running custom install script
'/home/dileks/src/kmod/git/scripts/kmod-symlink.sh /usr/bin/rmmod'

$ ll /bin/*mod
-rwxr-xr-x 1 root root  67K 23. Okt 17:36 /bin/chmod
lrwxrwxrwx 1 root root    4 20. Okt 00:19 /bin/depmod -> kmod
lrwxrwxrwx 1 root root    4 20. Okt 00:19 /bin/insmod -> kmod
-rwxr-xr-x 1 root root 172K 23. Okt 23:02 /bin/kmod
lrwxrwxrwx 1 root root    4 20. Okt 00:19 /bin/lsmod -> kmod
lrwxrwxrwx 1 root root    4 20. Okt 00:19 /bin/rmmod -> kmod

Set a default for DESTDIR (destdir)?

Best regards,
-Sedat-




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux