Skip to content
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

RPM_INCLUDE_PATH is ignored #481

Open
paulmenzel opened this issue Aug 22, 2023 · 0 comments
Open

RPM_INCLUDE_PATH is ignored #481

paulmenzel opened this issue Aug 22, 2023 · 0 comments

Comments

@paulmenzel
Copy link

I installed RPM 4.18.1 to /scratch/local2/zypper

$ /scratch/local2/zypper/bin/rpm --version
RPM version 4.18.1

and pass the include directory /scratch/local2/zypper/include to libzypp, but it’s not picked up:

$ git log --oneline --no-decorate -1
e7ad2fd2d changes 17.31.19 (22)
$ mkdir build
$ cd build
$ export RPM_INCLUDE_DIR=/scratch/local2/zypper/include/
$ PKG_CONFIG_PATH=/scratch/local2/zypper/lib/pkgconfig/ strace -e file cmake -DRPM_INCLUDE_DIR="/scratch/local2/zypper/include/" ..
execve("/usr/bin/cmake", ["cmake", "-DRPM_INCLUDE_DIR=/scratch/local"..., ".."], 0x7fff104012d0 /* 33 vars */) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=101735, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/lib/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3 
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=697936, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/lib/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=3396504, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=21190312, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=4291856, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=601392, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=15010048, ...}, AT_EMPTY_PATH) = 0
readlink("/tmp", 0x7ffe723e2350, 1023)  = -1 EINVAL (Invalid argument)
newfstatat(AT_FDCWD, "/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=90112, ...}, 0) = 0
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
readlink("/scratch", 0x7ffe723e33e0, 1023) = -1 EINVAL (Invalid argument)
readlink("/scratch/local2", 0x7ffe723e33e0, 1023) = -1 EINVAL (Invalid argument)
readlink("/scratch/local2/pmenzel", 0x7ffe723e33e0, 1023) = -1 EINVAL (Invalid argument)
readlink("/scratch/local2/pmenzel/libzypp", 0x7ffe723e33e0, 1023) = -1 EINVAL (Invalid argument)
newfstatat(AT_FDCWD, "cmake", {st_mode=S_IFDIR|0770, st_size=29, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/pmenzel/perl5/bin/cmake", 0x7ffe723e3440, 0) = -1 ENOENT (No such file or directory)
access("/home/pmenzel/perl5/bin/cmake", X_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/package/bin/cmake", 0x7ffe723e3440, 0) = -1 ENOENT (No such file or directory)
access("/usr/local/package/bin/cmake", X_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/cmake", 0x7ffe723e3440, 0) = -1 ENOENT (No such file or directory)
access("/usr/local/bin/cmake", X_OK)    = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/cmake", 0x7ffe723e3440, 0) = -1 ENOENT (No such file or directory)
access("/usr/sbin/cmake", X_OK)         = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/cmake", {st_mode=S_IFREG|0755, st_size=14182848, ...}, 0) = 0
access("/usr/bin/cmake", X_OK)          = 0
newfstatat(AT_FDCWD, "/usr/bin/cmake", {st_mode=S_IFREG|0755, st_size=14182848, ...}, 0) = 0
access("/usr/bin/cmake", X_OK)          = 0
readlink("/usr", 0x7ffe723e3320, 1023)  = -1 EINVAL (Invalid argument)
readlink("/usr/bin", 0x7ffe723e3320, 1023) = -1 EINVAL (Invalid argument)
readlink("/usr/bin/cmake", 0x7ffe723e3320, 1023) = -1 EINVAL (Invalid argument)
access("/usr/bin/cmake-gui", R_OK)      = -1 ENOENT (No such file or directory)
access("/usr/bin/ccmake", R_OK)         = 0
access("/usr/bin/cmcldeps", R_OK)       = -1 ENOENT (No such file or directory)
access("/usr/share/doc/cmake-3.25/html/index.html", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/cmake-3.25/Modules/CMake.cmake", R_OK) = 0
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
newfstatat(AT_FDCWD, "..", {st_mode=S_IFDIR|0770, st_size=284, ...}, 0) = 0
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
access("/scratch/local2/pmenzel/CMakeCache.txt", R_OK) = -1 ENOENT (No such file or directory)
access("/scratch/local2/pmenzel/CMakeLists.txt", R_OK) = -1 ENOENT (No such file or directory)
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
getcwd("/scratch/local2/pmenzel/libzypp", 2048) = 32
CMake Warning:
  Ignoring extra path from command line:

   ".."


access("/scratch/local2/pmenzel/libzypp/CMakeCache.txt", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/scratch/local2/pmenzel/libzypp/CMakeFiles/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
access("/scratch/local2/pmenzel/libzypp/CMakeCache.txt", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/cmake-3.25/Modules/CMake.cmake", R_OK) = 0
access("/scratch/local2/pmenzel/PreLoad.cmake", R_OK) = -1 ENOENT (No such file or directory)
access("/scratch/local2/pmenzel/libzypp/PreLoad.cmake", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/scratch/local2/pmenzel/libzypp/CMakeFiles/CMakeScratch", 0x7ffe723e3910, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/scratch/local2/pmenzel/libzypp/CMakeFiles/CMakeScratch", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
access("/scratch/local2/pmenzel/CMakeLists.txt", R_OK) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/scratch/local2/pmenzel", {st_mode=S_IFDIR|0770, st_size=284, ...}, 0) = 0
CMake Error: The source directory "/scratch/local2/pmenzel" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
+++ exited with 1 +++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant