From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] flashrom: update to 1.3.0.
Date: Sat, 08 Apr 2023 01:54:33 +0200 [thread overview]
Message-ID: <20230407235433.9JvQfjUx_q1Es9xfLKms4_s-OAh2cKcG28MwzNd18-g@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43334@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 678 bytes --]
There is an updated pull request by Johnnynator against master on the void-packages repository
https://github.com/Johnnynator/void-packages flashrom
https://github.com/void-linux/void-packages/pull/43334
flashrom: update to 1.3.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
#### 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):
- riscv64
A patch file from https://github.com/void-linux/void-packages/pull/43334.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-flashrom-43334.patch --]
[-- Type: text/x-diff, Size: 2672 bytes --]
From a6cea861ab36c347afc8a74db5b4606da3123dbe Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Sat, 8 Apr 2023 01:46:18 +0200
Subject: [PATCH] flashrom: update to 1.3.0.
---
srcpkgs/flashrom/template | 42 ++++++++++++++++++---------------------
srcpkgs/libflashrom | 1 +
srcpkgs/libflashrom-devel | 1 +
3 files changed, 21 insertions(+), 23 deletions(-)
create mode 120000 srcpkgs/libflashrom
create mode 120000 srcpkgs/libflashrom-devel
diff --git a/srcpkgs/flashrom/template b/srcpkgs/flashrom/template
index af1e0d424603..47d7eb604410 100644
--- a/srcpkgs/flashrom/template
+++ b/srcpkgs/flashrom/template
@@ -1,8 +1,8 @@
# Template file for 'flashrom'
pkgname=flashrom
-version=1.2
-revision=3
-build_style=gnu-makefile
+version=1.3.0
+revision=1
+build_style=meson
hostmakedepends="pkg-config"
makedepends="pciutils-devel libusb-compat-devel libftdi1-devel"
short_desc="Utility for reading, writing, erasing and verifying flash ROM chips"
@@ -10,25 +10,21 @@ maintainer="teldra <teldra@rotce.de>"
license="GPL-2.0-only"
homepage="https://www.flashrom.org"
distfiles=https://github.com/flashrom/flashrom/archive/v$version.tar.gz
-checksum=a5bac412cefb87bb426912fed46ccc38799d088a9b92dbe7bac38c5df016d9b2
+checksum=91d3ae239e435682561966350d00890b8bf5ae1a947af1f647198aa391196890
-post_patch() {
- # The Makefile detection is fragile!!!
- # It doesn't defend against __attribute__("something")
- case "$XBPS_TARGET_MACHINE" in
- x86_64* | i686*) _arch=x86 ;;
- aarch64* | arm*) _arch=arm ;;
- ppc*) _arch=ppc ;;
- mips*) _arch=mips ;;
- *) msg_error "Unknown arch\n" ;;
- esac
- case "$XBPS_TARGET_ENDIAN" in
- be) _endian=big ;;
- le) _endian=little ;;
- esac
- vsed -i -e 's/^override TARGET_OS :=.*/TARGET_OS := Linux/' \
- -e "s/^override ARCH :=.*/ARCH := $_arch/" \
- -e "s/^override ENDIAN :=.*/ENDIAN := $_endian/" \
- -e 's/sbin/bin/' \
- Makefile
+libflashrom_package() {
+ short_desc+=" - library files"
+ pkg_install() {
+ vmove "usr/lib/*.so.*"
+ }
+}
+
+libflashrom-devel_package() {
+ short_desc+=" - development files"
+ depends="libflashrom>=${version}_${revision}"
+ pkg_install() {
+ vmove usr/include
+ vmove "usr/lib/*.a"
+ vmove "usr/lib/*.so"
+ }
}
diff --git a/srcpkgs/libflashrom b/srcpkgs/libflashrom
new file mode 120000
index 000000000000..183c7f43a41c
--- /dev/null
+++ b/srcpkgs/libflashrom
@@ -0,0 +1 @@
+flashrom
\ No newline at end of file
diff --git a/srcpkgs/libflashrom-devel b/srcpkgs/libflashrom-devel
new file mode 120000
index 000000000000..183c7f43a41c
--- /dev/null
+++ b/srcpkgs/libflashrom-devel
@@ -0,0 +1 @@
+flashrom
\ No newline at end of file
next prev parent reply other threads:[~2023-04-07 23:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 23:49 [PR PATCH] " Johnnynator
2023-04-07 23:54 ` Johnnynator [this message]
2023-07-07 2:06 ` github-actions
2023-10-06 1:45 ` github-actions
2023-10-21 1:44 ` [PR PATCH] [Closed]: " github-actions
2023-12-01 22:02 [PR PATCH] " Calandracas606
2023-12-01 22:20 ` [PR PATCH] [Updated] " Calandracas606
2023-12-01 22:22 ` Calandracas606
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=20230407235433.9JvQfjUx_q1Es9xfLKms4_s-OAh2cKcG28MwzNd18-g@z \
--to=johnnynator@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).