Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 705038
Collapse All | Expand All

(-)mbedtls-mbedtls-2.19.1.orig/crypto/include/CMakeLists.txt (+13 lines)
Lines 5-10 if(INSTALL_MBEDTLS_HEADERS) Link Here
5
    file(GLOB headers "mbedtls/*.h")
5
    file(GLOB headers "mbedtls/*.h")
6
    file(GLOB psa_headers "psa/*.h")
6
    file(GLOB psa_headers "psa/*.h")
7
7
8
    if(USE_CRYPTO_SUBMODULE)
9
        # Don't overwrite mbedtls's header files!
10
        # config.h is supposed to be automatically checked for compatibility
11
        # in automatic builds, while the other files should not just be
12
        # compatible, but also identical in theory.
13
        # Practically, we don't check that in crypto but just assume that the
14
        # submodule configuration is sane and trust tls's headers.
15
        list(REMOVE_ITEM headers    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/compat-1.3.h"
16
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/config.h"
17
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/error.h"
18
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/version.h")
19
    endif(USE_CRYPTO_SUBMODULE)
20
8
    install(FILES ${headers}
21
    install(FILES ${headers}
9
        DESTINATION include/mbedtls
22
        DESTINATION include/mbedtls
10
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
23
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
(-)mbedtls-mbedtls-2.19.1.orig/include/CMakeLists.txt (-13 lines)
Lines 4-22 if(INSTALL_MBEDTLS_HEADERS) Link Here
4
4
5
    file(GLOB headers "mbedtls/*.h")
5
    file(GLOB headers "mbedtls/*.h")
6
6
7
    if(USE_CRYPTO_SUBMODULE)
8
        # Don't overwrite mbedtls's header files!
9
        # config.h is supposed to be automatically checked for compatibility
10
        # in automatic builds, while the other files should not just be
11
        # compatible, but also identical in theory.
12
        # Practically, we don't check that in crypto but just assume that the
13
        # submodule configuration is sane and trust tls's headers.
14
        list(REMOVE_ITEM headers    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/compat-1.3.h"
15
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/config.h"
16
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/error.h"
17
                                    "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/version.h")
18
    endif(USE_CRYPTO_SUBMODULE)
19
20
    install(FILES ${headers}
7
    install(FILES ${headers}
21
        DESTINATION include/mbedtls
8
        DESTINATION include/mbedtls
22
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
9
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)

Return to bug 705038