[Pkg-opencl-devel] Bug#823453: khronos-opengl-man4: get-orig-source should use a peg revision

Daniel Shahaf danielsh at apache.org
Wed May 4 20:55:43 UTC 2016


Source: khronos-opengl-man4
Version: 1.0~svn31251-1
Severity: minor
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Dear Maintainer,

I've noticed that the get-orig-source target is implemented in a way
that's susceptible to bitrot: the 'svn export' command it uses could
retrieve a different source tree in a year than it does today, due to
passing an implicit peg revision of "HEAD" (which is mutable).

The following patch fixes the issue:

[[[
Index: debian/get-orig-source
===================================================================
--- debian/get-orig-source      (revision 6506)
+++ debian/get-orig-source      (working copy)
@@ -20,7 +20,7 @@ fi
 FOLDER=${PACKAGE}-${VERSION}
 
 URL=https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man4/ 
-svn export --quiet --revision ${REVISION} ${URL} ${FOLDER}
+svn export --quiet ${URL}@${REVISION} ${FOLDER}
 
 # we will re-generate them anyway:
 rm ${FOLDER}/xhtml/*.xml
]]]

The reference documentation is
<http://svnbook.red-bean.com/en/1.8/svn.advanced.pegrevs.html#svn.advanced.pegrevs.algorithm>.

Cheers,

Daniel



More information about the Pkg-opencl-devel mailing list