Github messages for voidlinux
 help / color / mirror / Atom feed
From: tm512 <tm512@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] fceux: update to 2.6.6.
Date: Sun, 24 Sep 2023 22:10:37 +0200	[thread overview]
Message-ID: <20230924201037.u25X0k4ZvGaacA0DXvKkJwVMWpvWj-By6AgN9RwzFvU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45818@inbox.vuxu.org>

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

There is an updated pull request by tm512 against master on the void-packages repository

https://github.com/tm512/void-packages fceux-2.6.6
https://github.com/void-linux/void-packages/pull/45818

fceux: update to 2.6.6.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### 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, x86_64-glibc


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

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

From 738d54a7a7c4e02468a1a028d2ee7c63cbb4f8d6 Mon Sep 17 00:00:00 2001
From: tm512 <elykdav@gmail.com>
Date: Sun, 24 Sep 2023 13:10:04 -0700
Subject: [PATCH] fceux: update to 2.6.6.

---
 .../patches/2.6.6-timestamp-nonx86.patch      | 42 +++++++++++++++++++
 srcpkgs/fceux/template                        |  4 +-
 2 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch

diff --git a/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch b/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch
new file mode 100644
index 0000000000000..7096d5934851c
--- /dev/null
+++ b/srcpkgs/fceux/patches/2.6.6-timestamp-nonx86.patch
@@ -0,0 +1,42 @@
+diff --git a/src/utils/timeStamp.cpp b/src/utils/timeStamp.cpp
+index f62d019f..efb45aac 100644
+--- a/src/utils/timeStamp.cpp
++++ b/src/utils/timeStamp.cpp
+@@ -14,6 +14,7 @@
+ //-------------------------------------------------------------------------
+ //---- Time Stamp Record
+ //-------------------------------------------------------------------------
++#ifdef __FCEU_X86_TSC_ENABLE
+ #if defined(WIN32)
+ #include <intrin.h>
+ #pragma intrinsic(__rdtsc)
+@@ -25,6 +26,7 @@ static uint64_t rdtsc()
+ {
+ 	return __rdtsc();
+ }
++#endif
+ 
+ namespace FCEU
+ {
+@@ -36,12 +38,15 @@ uint64_t timeStampRecord::qpcFreq = 0;
+ 
+ void timeStampRecord::readNew(void)
+ {
+-#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
+-	clock_gettime( CLOCK_REALTIME, &ts );
+-#else
+-	QueryPerformanceCounter((LARGE_INTEGER*)&ts);
+-#endif
+-	tsc = rdtsc();
++	#ifdef __FCEU_X86_TSC_ENABLE
++		tsc = rdtsc();
++	#endif
++
++	#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
++		clock_gettime( CLOCK_REALTIME, &ts );
++	#else
++		QueryPerformanceCounter((LARGE_INTEGER*)&ts);
++	#endif
+ }
+ #if defined(WIN32)
+ void timeStampRecord::qpcCalibrate(void)
diff --git a/srcpkgs/fceux/template b/srcpkgs/fceux/template
index 7408811484000..8cde308e06a2c 100644
--- a/srcpkgs/fceux/template
+++ b/srcpkgs/fceux/template
@@ -1,6 +1,6 @@
 # Template file for 'fceux'
 pkgname=fceux
-version=2.6.5
+version=2.6.6
 revision=1
 build_style=cmake
 hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
@@ -11,4 +11,4 @@ license="GPL-2.0-or-later"
 homepage="https://fceux.com/web/home.html"
 changelog="https://fceux.com/web/version.html"
 distfiles="https://github.com/TASVideos/fceux/archive/v${version}.tar.gz"
-checksum=78156f3685c55849351178773940871ed607bc4fc37f233fdab58c232e3208fa
+checksum=0320241d45c6d609f7aeb6f85fdd9019552047206b0864a7f9fddff15b004daa

  reply	other threads:[~2023-09-24 20:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 22:13 [PR PATCH] " tm512
2023-09-24 20:10 ` tm512 [this message]
2023-09-24 20:13 ` tm512
2023-10-02  7:31 ` [PR PATCH] [Merged]: " classabbyamp

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=20230924201037.u25X0k4ZvGaacA0DXvKkJwVMWpvWj-By6AgN9RwzFvU@z \
    --to=tm512@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).