Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] d2: update to 0.4.1.
Date: Tue, 18 Apr 2023 21:23:17 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43511@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages d2
https://github.com/void-linux/void-packages/pull/43511

d2: update to 0.4.1.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/43511.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-d2-43511.patch --]
[-- Type: text/x-diff, Size: 2770 bytes --]

From 32fef65cdb55f3a359c19a752151a2d384ad24c9 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Mon, 20 Mar 2023 01:44:56 +0530
Subject: [PATCH] d2: update to 0.4.1.

---
 srcpkgs/d2/patches/magic-32bit.patch | 35 ----------------------------
 srcpkgs/d2/template                  |  7 +++---
 2 files changed, 4 insertions(+), 38 deletions(-)
 delete mode 100644 srcpkgs/d2/patches/magic-32bit.patch

diff --git a/srcpkgs/d2/patches/magic-32bit.patch b/srcpkgs/d2/patches/magic-32bit.patch
deleted file mode 100644
index 15b12ba52aeb..000000000000
--- a/srcpkgs/d2/patches/magic-32bit.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-The value of MAGIC_CHECKSUM_ADJUSTMENT overflows a signed integer on 32-bit
-architectures and is always used as an unsigned value anyway, so just define it
-as unsigned from the beginning.
-
---- a/lib/font/font.go
-+++ b/lib/font/font.go
-@@ -49,8 +49,8 @@
- 	WOFF_ENTRY_OFFSET_CHECKSUM     = 16
- 
- 	// magic
--	MAGIC_WOFF                = 0x774f4646
--	MAGIC_CHECKSUM_ADJUSTMENT = 0xb1b0afba
-+	MAGIC_WOFF uint32                = 0x774f4646
-+	MAGIC_CHECKSUM_ADJUSTMENT uint32 = 0xb1b0afba
- 
- 	// sizes
- 	SIZE_OF_WOFF_HEADER      = 44
-@@ -85,7 +85,7 @@
- 	numTables := binary.BigEndian.Uint16(fontBuf[4:])
- 
- 	woffHeader := make([]byte, SIZE_OF_WOFF_HEADER)
--	binary.BigEndian.PutUint32(woffHeader[WOFF_OFFSET_MAGIC:], uint32(MAGIC_WOFF))
-+	binary.BigEndian.PutUint32(woffHeader[WOFF_OFFSET_MAGIC:], MAGIC_WOFF)
- 	binary.BigEndian.PutUint16(woffHeader[WOFF_OFFSET_NUM_TABLES:], numTables)
- 	binary.BigEndian.PutUint16(woffHeader[WOFF_OFFSET_SFNT_SIZE:], 0)
- 	binary.BigEndian.PutUint32(woffHeader[WOFF_OFFSET_META_OFFSET:], 0)
-@@ -148,7 +148,7 @@
- 		csum += tableEntry.CheckSum
- 	}
- 
--	var checksumAdjustment = uint32(MAGIC_CHECKSUM_ADJUSTMENT) - csum
-+	var checksumAdjustment = MAGIC_CHECKSUM_ADJUSTMENT - csum
- 
- 	majorVersion := uint16(0)
- 	minVersion := uint16(1)
diff --git a/srcpkgs/d2/template b/srcpkgs/d2/template
index d4f7023c3511..49762caa3d12 100644
--- a/srcpkgs/d2/template
+++ b/srcpkgs/d2/template
@@ -1,13 +1,14 @@
 # Template file for 'd2'
 pkgname=d2
-version=0.3.0
-revision=3
+version=0.4.1
+revision=1
 build_style=go
 go_import_path="oss.terrastruct.com/d2"
+go_ldflags="-X ${go_import_path}/lib/version.Version=${version}"
 short_desc="Modern diagram scripting language that turns text to diagrams"
 maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
 license="MPL-2.0"
 homepage="https://d2lang.com/"
 changelog="https://d2lang.com/releases/intro/"
 distfiles="https://github.com/terrastruct/d2/archive/refs/tags/v${version}.tar.gz"
-checksum=28901237ad0c16b49c62a89c6246dfd38dd245e530d25fc74dca1fe2e3b9348f
+checksum=abfc926a7dbb090c73012c8bf37558a8ae49d5c6045211b50a3386d8cd60b8dd

             reply	other threads:[~2023-04-18 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18 19:23 icp1994 [this message]
2023-04-18 19:26 ` icp1994
2023-04-19  2:08 ` [PR PATCH] [Merged]: " abenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43511@inbox.vuxu.org \
    --to=icp1994@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).