Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/valentina/files/, media-gfx/valentina/
Date: Thu, 28 Jan 2021 12:45:34
Message-Id: 1611837902.bfcfbfe0dacfc3ee5a6601a4f85f206309fc09de.fordfrog@gentoo
1 commit: bfcfbfe0dacfc3ee5a6601a4f85f206309fc09de
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 12:45:02 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 12:45:02 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfcfbfe0
7
8 media-gfx/valentina: patched out vcs calls in 0.6.1-r1
9
10 Closes: https://bugs.gentoo.org/762601
11 Package-Manager: Portage-3.0.14, Repoman-3.0.2
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 .../valentina-0.6.1-disable-vcs-version.patch | 75 ++++++++++++++++++++++
15 media-gfx/valentina/valentina-0.6.1-r1.ebuild | 3 +-
16 2 files changed, 77 insertions(+), 1 deletion(-)
17
18 diff --git a/media-gfx/valentina/files/valentina-0.6.1-disable-vcs-version.patch b/media-gfx/valentina/files/valentina-0.6.1-disable-vcs-version.patch
19 new file mode 100644
20 index 00000000000..471d7a85313
21 --- /dev/null
22 +++ b/media-gfx/valentina/files/valentina-0.6.1-disable-vcs-version.patch
23 @@ -0,0 +1,75 @@
24 +diff --git a/common.pri b/common.pri
25 +index 523aa7c..33be789 100644
26 +--- a/common.pri
27 ++++ b/common.pri
28 +@@ -212,37 +212,7 @@ defineReplace(enable_ccache){
29 + }
30 +
31 + defineReplace(FindBuildRevision){
32 +-CONFIG(debug, debug|release){
33 +- # Debug mode
34 +- return(\\\"unknown\\\")
35 +-}else{
36 +- # Release mode
37 +-
38 +- macx{
39 +- HG = /usr/local/bin/hg # Can't defeat PATH variable on Mac OS.
40 +- }else {
41 +- HG = hg # All other platforms are OK.
42 +- }
43 +-
44 +- #build revision number for using in version
45 +- unix {
46 +- DVCS_HESH=$$system("$${HG} log -r. --template '{node|short}'")
47 +- } else {
48 +- # Use escape character before "|" on Windows
49 +- DVCS_HESH=$$system($${HG} log -r. --template "{node^|short}")
50 +- }
51 +- isEmpty(DVCS_HESH){
52 +- DVCS_HESH=$$system("git rev-parse --short HEAD")
53 +- isEmpty(DVCS_HESH){
54 +- DVCS_HESH = \\\"unknown\\\" # if we can't find build revision left unknown.
55 +- } else {
56 +- DVCS_HESH=\\\"Git:$${DVCS_HESH}\\\"
57 +- }
58 +- } else {
59 +- DVCS_HESH=\\\"Hg:$${DVCS_HESH}\\\"
60 +- }
61 +- return($${DVCS_HESH})
62 +-}
63 ++return(\\\"unknown\\\")
64 + }
65 +
66 + # Default prefix. Use for creation install path.
67 +diff --git a/src/libs/vmisc/vmisc.pro b/src/libs/vmisc/vmisc.pro
68 +index cf8db51..fff1c0e 100644
69 +--- a/src/libs/vmisc/vmisc.pro
70 ++++ b/src/libs/vmisc/vmisc.pro
71 +@@ -98,10 +98,7 @@ CONFIG(debug, debug|release){
72 + HG = hg # All other platforms all OK.
73 + }
74 + #latest tag distance number for using in version
75 +- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}')
76 +- isEmpty(HG_DISTANCE){
77 +- HG_DISTANCE = 0 # if we can't find local revision left 0.
78 +- }
79 ++ HG_DISTANCE = 0 # if we can't find local revision left 0.
80 + message("Latest tag distance:" $${HG_DISTANCE})
81 + DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources.
82 + }
83 +diff --git a/src/libs/vtest/vtest.pro b/src/libs/vtest/vtest.pro
84 +index a336d48..c943fc5 100644
85 +--- a/src/libs/vtest/vtest.pro
86 ++++ b/src/libs/vtest/vtest.pro
87 +@@ -92,10 +92,7 @@ CONFIG(debug, debug|release){
88 + HG = hg # All other platforms all OK.
89 + }
90 + #latest tag distance number for using in version
91 +- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}')
92 +- isEmpty(HG_DISTANCE){
93 +- HG_DISTANCE = 0 # if we can't find local revision left 0.
94 +- }
95 ++ HG_DISTANCE = 0 # if we can't find local revision left 0.
96 + message("Latest tag distance:" $${HG_DISTANCE})
97 + DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources.
98 + }
99
100 diff --git a/media-gfx/valentina/valentina-0.6.1-r1.ebuild b/media-gfx/valentina/valentina-0.6.1-r1.ebuild
101 index d6decfb393a..e770ab6d6e9 100644
102 --- a/media-gfx/valentina/valentina-0.6.1-r1.ebuild
103 +++ b/media-gfx/valentina/valentina-0.6.1-r1.ebuild
104 @@ -1,4 +1,4 @@
105 -# Copyright 1999-2020 Gentoo Authors
106 +# Copyright 1999-2021 Gentoo Authors
107 # Distributed under the terms of the GNU General Public License v2
108
109 EAPI=7
110 @@ -45,6 +45,7 @@ S=${WORKDIR}/${PN}-v${PV}
111
112 PATCHES=(
113 "${FILESDIR}/5823.patch"
114 + "${FILESDIR}/${P}-disable-vcs-version.patch"
115 "${WORKDIR}/valentina-5858.patch"
116 )