Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] d2: update to 0.4.1.
@ 2023-04-18 19:23 icp1994
  2023-04-18 19:26 ` icp1994
  2023-04-19  2:08 ` [PR PATCH] [Merged]: " abenson
  0 siblings, 2 replies; 3+ messages in thread
From: icp1994 @ 2023-04-18 19:23 UTC (permalink / raw)
  To: ml

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: d2: update to 0.4.1.
  2023-04-18 19:23 [PR PATCH] d2: update to 0.4.1 icp1994
@ 2023-04-18 19:26 ` icp1994
  2023-04-19  2:08 ` [PR PATCH] [Merged]: " abenson
  1 sibling, 0 replies; 3+ messages in thread
From: icp1994 @ 2023-04-18 19:26 UTC (permalink / raw)
  To: ml

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

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/43511#issuecomment-1513685511

Comment:
\cc @Vaelatern 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: d2: update to 0.4.1.
  2023-04-18 19:23 [PR PATCH] d2: update to 0.4.1 icp1994
  2023-04-18 19:26 ` icp1994
@ 2023-04-19  2:08 ` abenson
  1 sibling, 0 replies; 3+ messages in thread
From: abenson @ 2023-04-19  2:08 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

d2: update to 0.4.1.
https://github.com/void-linux/void-packages/pull/43511

Description:
#### 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**

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-19  2:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 19:23 [PR PATCH] d2: update to 0.4.1 icp1994
2023-04-18 19:26 ` icp1994
2023-04-19  2:08 ` [PR PATCH] [Merged]: " abenson

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).