...
 
Commits (3)
lgogdownloader (3.4-2) unstable; urgency=medium
* Ensure the build is reproducible: avoid storing git information, and
the build architecture.
* Refresh manpage-whatis.patch.
-- Stephen Kitt <skitt@debian.org> Tue, 18 Dec 2018 09:20:55 +0100
lgogdownloader (3.4-1) unstable; urgency=medium
* New upstream release.
......
......@@ -3,7 +3,7 @@ Author: Stephen Kitt <skitt@debian.org>
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -9,7 +9,7 @@
@@ -11,7 +11,7 @@
set(MAN_FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1.gz)
add_custom_command(
OUTPUT ${MAN_FILE}
......
Description: Avoid storing non-reproducible information
Author: Stephen Kitt <skitt@debian.org>
This drops git information as well as the build architecture (from the
user agent). The former varies depending on the availability of git
tools, the latter varies depending on the build host.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,46 +51,9 @@
src/ziputil.cpp
)
-set(GIT_CHECKOUT FALSE)
-if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
- if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
- find_package(Git)
- if(GIT_FOUND)
- set(GIT_CHECKOUT TRUE)
- else(GIT_FOUND)
- message(WARNING "Git executable not found")
- endif(GIT_FOUND)
- else(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
- message(STATUS "Shallow Git clone detected, not attempting to retrieve version info")
- endif(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/shallow)
-endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
-
-if(GIT_CHECKOUT)
- execute_process(COMMAND ${GIT_EXECUTABLE} diff --shortstat
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- OUTPUT_VARIABLE GIT_SHORTSTAT
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- OUTPUT_VARIABLE GIT_REV_PARSE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if(GIT_SHORTSTAT)
- set(GIT_DIRTY ON)
- endif(GIT_SHORTSTAT)
-
- if(GIT_DIRTY)
- set(PROJECT_VERSION_MINOR ${PROJECT_VERSION_MINOR}M)
- endif(GIT_DIRTY)
-
- set(PROJECT_VERSION_PATCH ${GIT_REV_PARSE})
- set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
-endif(GIT_CHECKOUT)
-
set(VERSION_NUMBER ${PROJECT_VERSION})
set(VERSION_STRING "LGOGDownloader ${VERSION_NUMBER}")
-set(DEFAULT_USER_AGENT "LGOGDownloader/${VERSION_NUMBER} (${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR})")
+set(DEFAULT_USER_AGENT "LGOGDownloader/${VERSION_NUMBER}")
add_definitions(-D_FILE_OFFSET_BITS=64 -DVERSION_NUMBER="${VERSION_NUMBER}" -DVERSION_STRING="${VERSION_STRING}" -DDEFAULT_USER_AGENT="${DEFAULT_USER_AGENT}")
manpage-whatis.patch
reproducible.patch