summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-11-28 19:13:55 +0100
committerGitHub <noreply@github.com>2023-11-28 10:13:55 -0800
commitb719c905f1acea68f2be6209b95506619674f92c (patch)
treee1c212fe223ce424b8973d0d6349839fb822a8ff /var
parent430b2dff5c9745c5005b6b18921f8fa91259263b (diff)
downloadspack-b719c905f1acea68f2be6209b95506619674f92c.tar.gz
spack-b719c905f1acea68f2be6209b95506619674f92c.tar.bz2
spack-b719c905f1acea68f2be6209b95506619674f92c.tar.xz
spack-b719c905f1acea68f2be6209b95506619674f92c.zip
apple-libuuid: update installation directory (#40416)
* apple-libuuid: update installation directory Copy design of Apple GL
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/apple-libuuid/package.py28
1 files changed, 7 insertions, 21 deletions
diff --git a/var/spack/repos/builtin/packages/apple-libuuid/package.py b/var/spack/repos/builtin/packages/apple-libuuid/package.py
index 4c7526d611..9028efc5ac 100644
--- a/var/spack/repos/builtin/packages/apple-libuuid/package.py
+++ b/var/spack/repos/builtin/packages/apple-libuuid/package.py
@@ -18,28 +18,14 @@ class AppleLibuuid(BundlePackage):
# Only supported on 'platform=darwin'
conflicts("platform=linux")
conflicts("platform=cray")
+ conflicts("platform=windows")
@property
- def libs(self):
- """Export the Apple libuuid library.
-
- According to https://bugs.freedesktop.org/show_bug.cgi?id=105366,
- libuuid is provided as part of libsystem_c. The Apple libsystem_c
- library cannot be linked to directly using an absolute path; doing so
- will cause the linker to throw an error 'cannot link directly with
- /usr/lib/system/libsystem_c.dylib' and the linker will suggest linking
- with System.framework instead. Linking to this framework is equivalent
- to linking with libSystem.dylib, which can be confirmed on a macOS
- system by executing at a terminal the command `ls -l
- /System/Library/Frameworks/System.Framework` -- the file "System" is a
- symlink to `/usr/lib/libSystem.B.dylib`, and `/usr/lib/libSystem.dylib`
- also symlinks to this file. Running `otool -L /usr/lib/libSystem.dylib`
- confirms that it will link dynamically to
- `/usr/lib/system/libsystem_c.dylib`."""
-
- return LibraryList("/usr/lib/libSystem.dylib")
+ def headers(self):
+ return HeaderList(
+ join_path(self.prefix, "System/Library/Frameworks/Kernel.framework/Headers")
+ )
@property
- def headers(self):
- """Export the Apple libuuid header."""
- return HeaderList(self.prefix.include.uuid.join("uuid.h"))
+ def libs(self):
+ return LibraryList(join_path(self.prefix, "System/Library/Frameworks/Kernel.framework"))