Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] bandwhich: fix build on Rust 1.64+
@ 2023-04-08 16:47 jcgruenhage
  2023-04-10 22:35 ` [PR PATCH] [Updated] " jcgruenhage
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jcgruenhage @ 2023-04-08 16:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/jcgruenhage/void-packages bandwhich-0.20.0_2
https://github.com/void-linux/void-packages/pull/43350

bandwhich: fix build on Rust 1.64+
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES, but it's broken**

Something in either the newer Rust version or in the bumped socket2 dep breaks this. Issue is already upstream: https://github.com/imsnif/bandwhich/issues/263

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bandwhich-0.20.0_2-43350.patch --]
[-- Type: text/x-diff, Size: 1119 bytes --]

From dbc0723d8953454486aecbf09c4b60678f2ddb5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
 <jan.christian@gruenhage.xyz>
Date: Sat, 8 Apr 2023 18:37:21 +0200
Subject: [PATCH] bandwhich: fix build on Rust 1.64+

---
 srcpkgs/bandwhich/template | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/bandwhich/template b/srcpkgs/bandwhich/template
index ee5e75f5d521..afb640eddfad 100644
--- a/srcpkgs/bandwhich/template
+++ b/srcpkgs/bandwhich/template
@@ -1,7 +1,7 @@
 # Template file for 'bandwhich'
 pkgname=bandwhich
 version=0.20.0
-revision=1
+revision=2
 build_style=cargo
 short_desc="Terminal bandwidth utilization tool"
 maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
@@ -10,6 +10,12 @@ homepage="https://github.com/imsnif/bandwhich"
 distfiles="${homepage}/archive/${version}.tar.gz"
 checksum=4bbf05be32439049edd50bd1e4d5a2a95b0be8d36782e4100732f0cc9f19ba12
 
+post_patch() {
+	# fixes compilation on Rust 1.64 and higher
+	cargo update --package socket2:0.3.11 --precise 0.3.16
+}
+
+
 post_install() {
 	vlicense LICENSE.md
 }

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

end of thread, other threads:[~2023-04-13 12:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-08 16:47 [PR PATCH] bandwhich: fix build on Rust 1.64+ jcgruenhage
2023-04-10 22:35 ` [PR PATCH] [Updated] " jcgruenhage
2023-04-13 10:26 ` jcgruenhage
2023-04-13 10:54 ` jcgruenhage
2023-04-13 10:55 ` jcgruenhage
2023-04-13 10:58 ` jcgruenhage
2023-04-13 11:12 ` jcgruenhage
2023-04-13 11:15 ` jcgruenhage
2023-04-13 12:53 ` [PR PATCH] [Merged]: " classabbyamp

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