diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
commit | d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (patch) | |
tree | 1814dd2b5bbf2e7639fdafbeef48d228cfaf5e9b /media-gfx/valentina/files | |
parent | abaa75b10f899ada8dd05b23cc03205064394bc6 (diff) |
gentoo resync : 29.01.2021
Diffstat (limited to 'media-gfx/valentina/files')
-rw-r--r-- | media-gfx/valentina/files/valentina-0.6.1-disable-vcs-version.patch | 75 |
1 files changed, 75 insertions, 0 deletions
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 new file mode 100644 index 000000000000..471d7a85313c --- /dev/null +++ b/media-gfx/valentina/files/valentina-0.6.1-disable-vcs-version.patch @@ -0,0 +1,75 @@ +diff --git a/common.pri b/common.pri +index 523aa7c..33be789 100644 +--- a/common.pri ++++ b/common.pri +@@ -212,37 +212,7 @@ defineReplace(enable_ccache){ + } + + defineReplace(FindBuildRevision){ +-CONFIG(debug, debug|release){ +- # Debug mode +- return(\\\"unknown\\\") +-}else{ +- # Release mode +- +- macx{ +- HG = /usr/local/bin/hg # Can't defeat PATH variable on Mac OS. +- }else { +- HG = hg # All other platforms are OK. +- } +- +- #build revision number for using in version +- unix { +- DVCS_HESH=$$system("$${HG} log -r. --template '{node|short}'") +- } else { +- # Use escape character before "|" on Windows +- DVCS_HESH=$$system($${HG} log -r. --template "{node^|short}") +- } +- isEmpty(DVCS_HESH){ +- DVCS_HESH=$$system("git rev-parse --short HEAD") +- isEmpty(DVCS_HESH){ +- DVCS_HESH = \\\"unknown\\\" # if we can't find build revision left unknown. +- } else { +- DVCS_HESH=\\\"Git:$${DVCS_HESH}\\\" +- } +- } else { +- DVCS_HESH=\\\"Hg:$${DVCS_HESH}\\\" +- } +- return($${DVCS_HESH}) +-} ++return(\\\"unknown\\\") + } + + # Default prefix. Use for creation install path. +diff --git a/src/libs/vmisc/vmisc.pro b/src/libs/vmisc/vmisc.pro +index cf8db51..fff1c0e 100644 +--- a/src/libs/vmisc/vmisc.pro ++++ b/src/libs/vmisc/vmisc.pro +@@ -98,10 +98,7 @@ CONFIG(debug, debug|release){ + HG = hg # All other platforms all OK. + } + #latest tag distance number for using in version +- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}') +- isEmpty(HG_DISTANCE){ +- HG_DISTANCE = 0 # if we can't find local revision left 0. +- } ++ HG_DISTANCE = 0 # if we can't find local revision left 0. + message("Latest tag distance:" $${HG_DISTANCE}) + DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources. + } +diff --git a/src/libs/vtest/vtest.pro b/src/libs/vtest/vtest.pro +index a336d48..c943fc5 100644 +--- a/src/libs/vtest/vtest.pro ++++ b/src/libs/vtest/vtest.pro +@@ -92,10 +92,7 @@ CONFIG(debug, debug|release){ + HG = hg # All other platforms all OK. + } + #latest tag distance number for using in version +- HG_DISTANCE=$$system($${HG} log -r. --template '{latesttagdistance}') +- isEmpty(HG_DISTANCE){ +- HG_DISTANCE = 0 # if we can't find local revision left 0. +- } ++ HG_DISTANCE = 0 # if we can't find local revision left 0. + message("Latest tag distance:" $${HG_DISTANCE}) + DEFINES += "LATEST_TAG_DISTANCE=$${HG_DISTANCE}" # Make available latest tag distance number in sources. + } |