Skip to content

Commit

Permalink
Always sort globs for reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 31, 2024
1 parent 9f567ad commit d753258
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ENDIF()
if(LMMS_HAVE_STK AND (LMMS_BUILD_WIN32 OR LMMS_BUILD_APPLE))
if(STK_RAWWAVE_ROOT)
file(GLOB RAWWAVES "${STK_RAWWAVE_ROOT}/*.raw")
list(SORT RAWWAVES)
install(FILES ${RAWWAVES} DESTINATION "${DATA_DIR}/stk/rawwaves")
else()
message(WARNING "Can't find STK rawwave root!")
Expand Down
1 change: 1 addition & 0 deletions cmake/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ endif()

# Copy rawwaves into bundle
file(GLOB RAWWAVES "${STK_RAWWAVE_ROOT}/*.raw")
list(SORT RAWWAVES)
install(FILES ${RAWWAVES} DESTINATION share/stk)

install(FILES launch_lmms.sh DESTINATION bin)
Expand Down
3 changes: 3 additions & 0 deletions cmake/linux/LinuxDeploy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ file(GLOB cleanup "${CPACK_BINARY_DIR}/lmms-*.json"
"${CPACK_BINARY_DIR}/${LMMS}-*.AppImage"
"${CPACK_BINARY_DIR}/${CPACK_PROJECT_NAME_UCASE}-*.AppImage"
"${CPACK_BINARY_DIR}/install_manifest.txt")
list(SORT cleanup)
file(REMOVE ${cleanup})

# Download linuxdeploy
Expand All @@ -51,6 +52,7 @@ file(MAKE_DIRECTORY "${APP}/usr")

# Setup AppDir structure (/usr/bin, /usr/lib, /usr/share... etc)
file(GLOB files "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/*")
list(SORT files)
foreach(_file ${files})
get_filename_component(_filename "${_file}" NAME)
if(NOT _filename MATCHES ".AppDir")
Expand Down Expand Up @@ -163,6 +165,7 @@ file(GLOB UNWANTED_LIBS
"${APP}/usr/lib/optional/libcarla*"
"${APP}/usr/lib/libjack*")

list(SORT UNWANTED_LIBS)
foreach(_LIB UNWANTED_LIBS)
file(REMOVE "${_LIB}")
endforeach()
Expand Down

0 comments on commit d753258

Please sign in to comment.