aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/bloomberg-bde-tools-fix-install-path.patch
blob: a80c6c3ea3378eb52fbfeaea4b0edcb1b22d377a (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Install shared libraries into "lib". Do not create symbolic links to static
libraries since only shared libraries are built.

--- a/cmake/layers/ufid.cmake
+++ b/cmake/layers/ufid.cmake
@@ -6,10 +6,7 @@ bde_prefixed_override(ufid project_setup_install_opts)
 function(ufid_project_setup_install_opts proj)
     bde_assert_no_extra_args()
 
-    set(libPath "bin/so")
-    if (${bde_ufid_is_64}) 
-        string(APPEND libPath "/64")
-    endif()
+    set(libPath "lib")
 
     bde_struct_create(
         installOpts
@@ -86,13 +83,6 @@ function(bde_create_ufid_symlink uor installOpts)
             "${symlinkPrefix}/${symlinkDir}/${libLinkName}"
         )
 
-        install(
-            CODE
-                "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                ${symlinkVal} ${symlinkFile})"
-            COMPONENT "${component}-symlinks"
-        )
-
         # This code creates compatibility symlinks
         # WARNING: This is custom logic that has nothing to do with our build system.
         # Some external build systems expect to find a variaty of ufids in dpkg.
@@ -110,14 +100,6 @@ function(bde_create_ufid_symlink uor installOpts)
                 symlinkFile
                 "${symlinkPrefix}/${symlinkDir}/${libLinkName}"
             )
-
-            # IMPORTANT: symlinkFile is the same as above!
-            install(
-                CODE
-                    "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                    ${symlinkVal} ${symlinkFile})"
-                COMPONENT "${component}-symlinks"
-            )
         endif()
 
         if (${bde_ufid_is_pic})
@@ -134,14 +116,6 @@ function(bde_create_ufid_symlink uor installOpts)
                 "${symlinkPrefix}/${symlinkDir}/${libLinkName}"
             )
 
-            # IMPORTANT: symlinkFile is the same as above!
-            install(
-                CODE
-                    "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                    ${symlinkVal} ${symlinkFile})"
-                COMPONENT "${component}-pic-symlink-hack"
-            )
-
             # And another one for "64" - remove "pic", add "64"
             if (${bde_ufid_is_64})
                 set(temp_ufid_flags ${install_ufid_flags})
@@ -157,14 +131,6 @@ function(bde_create_ufid_symlink uor installOpts)
                     symlinkFile
                     "${symlinkPrefix}/${symlinkDir}/${libLinkName}"
                 )
-
-                # IMPORTANT: symlinkFile is the same as above!
-                install(
-                    CODE
-                        "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                        ${symlinkVal} ${symlinkFile})"
-                    COMPONENT "${component}-pic-symlink-hack"
-                )
             endif()
         endif()
 
@@ -177,18 +143,5 @@ function(bde_create_ufid_symlink uor installOpts)
             symlinkReleaseFile
             "${symlinkPrefix}/${symlinkDir}/${libReleaseLinkName}"
         )
-        install(
-            CODE
-                "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                ${symlinkVal} ${symlinkReleaseFile})"
-            COMPONENT "${component}-release-symlink"
-        )
-        install(
-            CODE
-                "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \
-                ${symlinkVal} ${symlinkReleaseFile})"
-            COMPONENT "release-symlink"
-            EXCLUDE_FROM_ALL
-        )
     endif()
 endfunction()
rences-file): Remove. * guix/gexp.scm (references-file): New procedure. * tests/gexp.scm ("references-file"): New test. Ludovic Courtès 2022-03-13gexp: Correctly handle #$output in 'gexp->approximate-sexp'....This addresses the following backtrace from "guix lint -c wrapper-inputs hostapd": Backtrace:ostapd@2.10 [wrapper-inputs]... [...] 174:9 3 (gexp->approximate-sexp #<gexp (modify-phases %standard?>) In srfi/srfi-1.scm: 586:17 2 (map1 (#<gexp-output out> #<gexp-input "pkg-config":o?>)) In guix/gexp.scm: 175:16 1 (_ _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" #<gexp-output out>)'. * guix/gexp.scm (gexp->approximate-sexp): Handle the case where 'reference' is a <gexp-output>,, by returning (*approximate*). * tests/gexp.scm ("gexp->approximate-sexp, outputs"): Test it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos 2022-03-13gexp: Correctly handle unquoting S-exp objects....This fixes a false-positive in the linter: guix lint -c 'wrapper-inputs' libaio * guix/gexp.scm (gexp->approximate-sexp): Allow the 'thing' in <gexp-input> to be a sexp, without approximation, by testing if it is a record. * tests/gexp.scm ("unquoted sexp (not a gexp!)"): Test it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos 2022-02-16gexp: Preserve source location for #~ and #$ read extensions....Read hash extensions preserve source location info as source properties on their result. However, in Guile 3.0.8, that location would be dismissed, leading 'local-file' to fail to resolve file names relative to the source directory. Fixes <https://issues.guix.gnu.org/54003>. Reported by Aleksandr Vityazev <avityazev@posteo.org>. * guix/gexp.scm <eval-when> [read-syntax-redefined?, read-procedure] [read-syntax*]: New variables. [read-ungexp]: Adjust to expect either sexps or syntax objects. [read-gexp]: Call 'read-procedure'. * tests/gexp.scm ("local-file, relative file name, within gexp") ("local-file, relative file name, within gexp, compiled"): New tests. Ludovic Courtès 2022-02-15gexp: 'computed-file' always uses a native Guile....Fixes a regression whereby, when cross-compiling, 'computed-file' would use a cross-compiled Guile as its builder, which would fail to run. Regression introduced in af57d1bf6c46f47d82dbc234dde1e16fa8634e9d (the problem had always been there but was hidden before behind the (not guile) condition.) * guix/gexp.scm (computed-file-compiler): For 'guile', pass #:target #f. * tests/gexp.scm ("lower-object, computed-file, #:target"): New test. Ludovic Courtès 2022-02-11tests: Pass #:guile to 'computed-file' & co....Fixes a regression introduced in af57d1bf6c46f47d82dbc234dde1e16fa8634e9d whereby tests would end up building the world. * guix/gexp.scm (mixed-text-file): Add #:guile parameter and honor it. * tests/gexp.scm ("mixed-text-file"): Pass #:guile to 'mixed-text-file'. ("file-union"): Pass #:guile to 'file-union'. ("lower-object, computed-file"): Pass #:guile to 'computed-file'. ("lower-object, computed-file + grafts"): Likewise. * tests/packages.scm ("origin->derivation, single file with snippet"): Likewise. * tests/profiles.scm ("profile-derivation, ordering & collisions"): Likewise. * guix/tests.scm (test-file): Likewise. Ludovic Courtès