Skip to content

Commit

Permalink
cv2pdb: upgrade to v0.53
Browse files Browse the repository at this point in the history
This version is supposed to have a much-improved DWARF -> PDB support,
which is exactly what we use in Git for Windows.

While at it, avoid the `pkgver` logic that is not needed anymore: there
_are_ now proper tags in `cv2pdb`.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Dec 11, 2024
1 parent 6735402 commit fe68e6d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions mingw-w64-cv2pdb/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=cv2pdb
pkgbase="mingw-w64-${_realname}"
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.50
pkgver=0.53
pkgrel=1
pkgdesc="Converter of DWARF debug information to PDB files (mingw-w64)"
arch=('any')
Expand All @@ -12,7 +12,7 @@ license=('Artistic2')

options=('!strip')

source=("${_realname}"::"git+https://github.com/rainers/cv2pdb#branch=HEAD")
source=("${_realname}"::"git+https://github.com/rainers/cv2pdb#tag=v${pkgver}")

sha256sums=('SKIP')

Expand All @@ -27,24 +27,6 @@ x86_64) WARCH=x64; OUTDIR=bin/Release_x64;;
*) die "Unsupported architecture: $CARCH"
esac

pkgver() {
cd "$srcdir/cv2pdb"
for p in \
0.39:3e0d57ca2607de1313060df084f55173100b3596 \
0.40:c1c515d00cedc8cb7453616bf0da80141b62454f \
0.41:31189818cbfc6d0bebf82025f3df632a287b61d6 \
0.42:14eef861769f85b6f32c68ff1898c41d8ac65ef5 \
0.43:edc8ac2e4ac38f973ebb259a6a75c1ea9db32072 \
0.44:ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975 \
0.45:14641495119635e26aabad1dbccc79a6dd1fc94c \
0.46:3239e14109ac416358e1962932fdd360e724beea
do
git rev-parse --verify --quiet refs/tags/${p%%:*} >/dev/null >&2 ||
git tag -m "Missing tag" ${p%%:*} ${p#*:}
done
git describe --tags HEAD | tr - . | sed 's/^v//'
}

prepare () {
cd "$srcdir/cv2pdb"
sed -i 's/\(<PlatformToolset>\)[^<]*/\1$(DefaultPlatformToolset)/g' src/cv2pdb.vcxproj
Expand Down

0 comments on commit fe68e6d

Please sign in to comment.