Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] find data files and update to 2.11.2
@ 2023-10-03 18:31 namgo
  2023-10-03 18:39 ` [PR PATCH] [Updated] Emulation Station: " namgo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: namgo @ 2023-10-03 18:31 UTC (permalink / raw)
  To: ml

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

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

https://github.com/namgo/void-packages namgo/EmulationStation-Fix-Unfound-Files
https://github.com/void-linux/void-packages/pull/46412

find data files and update to 2.11.2
#### 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-glibc)
Seems to compile on armv6l.

The changes were tested exclusively on x86_64-glibc.

This change MAY break for other libs/arch's as it removes the patch to include ctime since the upstream adds time.h, if that happens I'll restore the patch - it seemed to work fine as I was testing it without the patch.

I imported https://github.com/RetroPie/EmulationStation/pull/618 as was recommended by https://github.com/RetroPie/EmulationStation/issues/819 with the intention being able to find installed data-files outside of the user's home directory.

The other change I made was to add files from the installer that typically go to a user's $HOME into /usr/share/EmulationStation/ to work with the patch.

This is intended to address https://github.com/void-linux/void-packages/issues/44861 .

In working with the patch, I bumped the version which might not have been necessary. If that should make a separate PR in the future please let me know.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-namgo/EmulationStation-Fix-Unfound-Files-46412.patch --]
[-- Type: text/x-diff, Size: 4252 bytes --]

From 80e00480c06c8ee69d9476fa9173e5257ce74657 Mon Sep 17 00:00:00 2001
From: Namgo <nathan@nzm.ca>
Date: Tue, 3 Oct 2023 10:18:00 -0400
Subject: [PATCH] find data files and update to 2.11.2

---
 .../patches/find-data-files.patch             | 50 +++++++++++++++++++
 .../patches/missing-include.patch             | 10 ----
 srcpkgs/EmulationStation/template             |  8 +--
 3 files changed, 55 insertions(+), 13 deletions(-)
 create mode 100644 srcpkgs/EmulationStation/patches/find-data-files.patch
 delete mode 100644 srcpkgs/EmulationStation/patches/missing-include.patch

diff --git a/srcpkgs/EmulationStation/patches/find-data-files.patch b/srcpkgs/EmulationStation/patches/find-data-files.patch
new file mode 100644
index 0000000000000..b4e693d2df49d
--- /dev/null
+++ b/srcpkgs/EmulationStation/patches/find-data-files.patch
@@ -0,0 +1,50 @@
+From d083efb4ab45275940c02bc72e23d334fe596fe7 Mon Sep 17 00:00:00 2001
+From: Justin Kinnaird <jkinnaird1991@gmail.com>
+Date: Sun, 17 Nov 2019 11:35:21 -0600
+Subject: [PATCH 1/2] feat: do resource lookups in standard directories
+
+For Linux, this includes the following directories:
+* <HOME>/.local/share/<APPNAME>
+* /usr/local/share/<APPNAME>
+* /usr/share/<APPNAME>
+---
+ es-core/src/resources/ResourceManager.cpp | 18 ++++++++++++++++++
+
+diff --git a/es-core/src/resources/ResourceManager.cpp b/es-core/src/resources/ResourceManager.cpp
+index 9f5014e432..7fd54acea5 100644
+--- a/es-core/src/resources/ResourceManager.cpp
++++ b/es-core/src/resources/ResourceManager.cpp
+@@ -3,6 +3,10 @@
+ #include "utils/FileSystemUtil.h"
+ #include <fstream>
+ 
++#ifndef APPDATANAME
++#define APPDATANAME "EmulationStation"
++#endif
++
+ auto array_deleter = [](unsigned char* p) { delete[] p; };
+ auto nop_deleter = [](unsigned char* /*p*/) { };
+ 
+@@ -27,6 +31,20 @@ std::string ResourceManager::getResourcePath(const std::string& path) const
+ 	{
+ 		std::string test;
+ 
++		// check in standard AppData locations
++#if defined(__linux__)
++		test = Utils::FileSystem::getHomePath() + "/.local/share/" + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++
++		test = std::string("/usr/local/share/") + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++
++		test = std::string("/usr/share/") + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++#endif
+ 		// check in homepath
+ 		test = Utils::FileSystem::getHomePath() + "/.emulationstation/resources/" + &path[2];
+ 		if(Utils::FileSystem::exists(test))
+
+
diff --git a/srcpkgs/EmulationStation/patches/missing-include.patch b/srcpkgs/EmulationStation/patches/missing-include.patch
deleted file mode 100644
index 63bc8687be4fe..0000000000000
--- a/srcpkgs/EmulationStation/patches/missing-include.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/es-core/src/utils/TimeUtil.h
-+++ b/es-core/src/utils/TimeUtil.h
-@@ -3,6 +3,7 @@
- #define ES_CORE_UTILS_TIME_UTIL_H
- 
- #include <string>
-+#include <ctime>
- 
- namespace Utils
- {
diff --git a/srcpkgs/EmulationStation/template b/srcpkgs/EmulationStation/template
index fbc9c34e3e686..fbcc4ae3b59b9 100644
--- a/srcpkgs/EmulationStation/template
+++ b/srcpkgs/EmulationStation/template
@@ -1,6 +1,6 @@
 # Template file for 'EmulationStation'
 pkgname=EmulationStation
-version=2.9.4
+version=2.11.2
 revision=1
 _pugixml_version=1.10
 create_wrksrc=yes
@@ -15,8 +15,8 @@ license="MIT"
 homepage="https://github.com/RetroPie/EmulationStation"
 distfiles="https://github.com/RetroPie/EmulationStation/archive/v${version}.tar.gz
  https://github.com/zeux/pugixml/releases/download/v1.10/pugixml-${_pugixml_version}.tar.gz"
-checksum="79452f6c1e8aaebe98c19708b3587a0a45330bf20b3301d556285d5cd756fa4a
- 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a"
+checksum="6b632fe68bad5c3e0567e3bb171fe18ad7b2f8b1531d1297a7a91be95bf8734a
+55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a"
 
 post_extract() {
 	mv EmulationStation-$version/* .
@@ -25,5 +25,7 @@ post_extract() {
 }
 
 post_install() {
+	vmkdir /usr/share/EmulationStation/
+	vcopy resources/ /usr/share/EmulationStation/resources
 	vlicense LICENSE.md
 }

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

* Re: [PR PATCH] [Updated] Emulation Station: update to 2.11.2
  2023-10-03 18:31 [PR PATCH] find data files and update to 2.11.2 namgo
@ 2023-10-03 18:39 ` namgo
  2023-10-03 20:33 ` namgo
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: namgo @ 2023-10-03 18:39 UTC (permalink / raw)
  To: ml

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

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

https://github.com/namgo/void-packages namgo/EmulationStation-Fix-Unfound-Files
https://github.com/void-linux/void-packages/pull/46412

Emulation Station: update to 2.11.2
#### 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-glibc)
Seems to compile on armv6l.

The changes were tested exclusively on x86_64-glibc.

This change MAY break for other libs/arch's as it removes the patch to include ctime since the upstream adds time.h, if that happens I'll restore the patch - it seemed to work fine as I was testing it without the patch.

I imported https://github.com/RetroPie/EmulationStation/pull/618 as was recommended by https://github.com/RetroPie/EmulationStation/issues/819 with the intention being able to find installed data-files outside of the user's home directory.

The other change I made was to add files from the installer that typically go to a user's $HOME into /usr/share/EmulationStation/ to work with the patch.

This is intended to address https://github.com/void-linux/void-packages/issues/44861 .

In working with the patch, I bumped the version which might not have been necessary. If that should make a separate PR in the future please let me know.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-namgo/EmulationStation-Fix-Unfound-Files-46412.patch --]
[-- Type: text/x-diff, Size: 4251 bytes --]

From 98a47fc12f3c9567daef6495d4a94cf5146f8d3f Mon Sep 17 00:00:00 2001
From: Namgo <nathan@nzm.ca>
Date: Tue, 3 Oct 2023 10:18:00 -0400
Subject: [PATCH] Emulation Station: update to 2.11.2

---
 .../patches/find-data-files.patch             | 50 +++++++++++++++++++
 .../patches/missing-include.patch             | 10 ----
 srcpkgs/EmulationStation/template             |  8 +--
 3 files changed, 55 insertions(+), 13 deletions(-)
 create mode 100644 srcpkgs/EmulationStation/patches/find-data-files.patch
 delete mode 100644 srcpkgs/EmulationStation/patches/missing-include.patch

diff --git a/srcpkgs/EmulationStation/patches/find-data-files.patch b/srcpkgs/EmulationStation/patches/find-data-files.patch
new file mode 100644
index 0000000000000..b4e693d2df49d
--- /dev/null
+++ b/srcpkgs/EmulationStation/patches/find-data-files.patch
@@ -0,0 +1,50 @@
+From d083efb4ab45275940c02bc72e23d334fe596fe7 Mon Sep 17 00:00:00 2001
+From: Justin Kinnaird <jkinnaird1991@gmail.com>
+Date: Sun, 17 Nov 2019 11:35:21 -0600
+Subject: [PATCH 1/2] feat: do resource lookups in standard directories
+
+For Linux, this includes the following directories:
+* <HOME>/.local/share/<APPNAME>
+* /usr/local/share/<APPNAME>
+* /usr/share/<APPNAME>
+---
+ es-core/src/resources/ResourceManager.cpp | 18 ++++++++++++++++++
+
+diff --git a/es-core/src/resources/ResourceManager.cpp b/es-core/src/resources/ResourceManager.cpp
+index 9f5014e432..7fd54acea5 100644
+--- a/es-core/src/resources/ResourceManager.cpp
++++ b/es-core/src/resources/ResourceManager.cpp
+@@ -3,6 +3,10 @@
+ #include "utils/FileSystemUtil.h"
+ #include <fstream>
+ 
++#ifndef APPDATANAME
++#define APPDATANAME "EmulationStation"
++#endif
++
+ auto array_deleter = [](unsigned char* p) { delete[] p; };
+ auto nop_deleter = [](unsigned char* /*p*/) { };
+ 
+@@ -27,6 +31,20 @@ std::string ResourceManager::getResourcePath(const std::string& path) const
+ 	{
+ 		std::string test;
+ 
++		// check in standard AppData locations
++#if defined(__linux__)
++		test = Utils::FileSystem::getHomePath() + "/.local/share/" + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++
++		test = std::string("/usr/local/share/") + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++
++		test = std::string("/usr/share/") + APPDATANAME + "/resources/" + &path[2];
++		if (Utils::FileSystem::exists(test))
++			return test;
++#endif
+ 		// check in homepath
+ 		test = Utils::FileSystem::getHomePath() + "/.emulationstation/resources/" + &path[2];
+ 		if(Utils::FileSystem::exists(test))
+
+
diff --git a/srcpkgs/EmulationStation/patches/missing-include.patch b/srcpkgs/EmulationStation/patches/missing-include.patch
deleted file mode 100644
index 63bc8687be4fe..0000000000000
--- a/srcpkgs/EmulationStation/patches/missing-include.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/es-core/src/utils/TimeUtil.h
-+++ b/es-core/src/utils/TimeUtil.h
-@@ -3,6 +3,7 @@
- #define ES_CORE_UTILS_TIME_UTIL_H
- 
- #include <string>
-+#include <ctime>
- 
- namespace Utils
- {
diff --git a/srcpkgs/EmulationStation/template b/srcpkgs/EmulationStation/template
index fbc9c34e3e686..fbcc4ae3b59b9 100644
--- a/srcpkgs/EmulationStation/template
+++ b/srcpkgs/EmulationStation/template
@@ -1,6 +1,6 @@
 # Template file for 'EmulationStation'
 pkgname=EmulationStation
-version=2.9.4
+version=2.11.2
 revision=1
 _pugixml_version=1.10
 create_wrksrc=yes
@@ -15,8 +15,8 @@ license="MIT"
 homepage="https://github.com/RetroPie/EmulationStation"
 distfiles="https://github.com/RetroPie/EmulationStation/archive/v${version}.tar.gz
  https://github.com/zeux/pugixml/releases/download/v1.10/pugixml-${_pugixml_version}.tar.gz"
-checksum="79452f6c1e8aaebe98c19708b3587a0a45330bf20b3301d556285d5cd756fa4a
- 55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a"
+checksum="6b632fe68bad5c3e0567e3bb171fe18ad7b2f8b1531d1297a7a91be95bf8734a
+55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a"
 
 post_extract() {
 	mv EmulationStation-$version/* .
@@ -25,5 +25,7 @@ post_extract() {
 }
 
 post_install() {
+	vmkdir /usr/share/EmulationStation/
+	vcopy resources/ /usr/share/EmulationStation/resources
 	vlicense LICENSE.md
 }

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

* Re: Emulation Station: update to 2.11.2
  2023-10-03 18:31 [PR PATCH] find data files and update to 2.11.2 namgo
  2023-10-03 18:39 ` [PR PATCH] [Updated] Emulation Station: " namgo
@ 2023-10-03 20:33 ` namgo
  2024-01-02  1:47 ` github-actions
  2024-01-17  1:47 ` [PR PATCH] [Closed]: " github-actions
  3 siblings, 0 replies; 5+ messages in thread
From: namgo @ 2023-10-03 20:33 UTC (permalink / raw)
  To: ml

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

New comment by namgo on void-packages repository

https://github.com/void-linux/void-packages/pull/46412#issuecomment-1745682908

Comment:
So this package currently ships /usr/lib/libpugixml.a which libSavitar (3mf loader) also provides. pugixml has a known conflict with both of these packages. How should I proceed?

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

* Re: Emulation Station: update to 2.11.2
  2023-10-03 18:31 [PR PATCH] find data files and update to 2.11.2 namgo
  2023-10-03 18:39 ` [PR PATCH] [Updated] Emulation Station: " namgo
  2023-10-03 20:33 ` namgo
@ 2024-01-02  1:47 ` github-actions
  2024-01-17  1:47 ` [PR PATCH] [Closed]: " github-actions
  3 siblings, 0 replies; 5+ messages in thread
From: github-actions @ 2024-01-02  1:47 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/46412#issuecomment-1873559978

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

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

* Re: [PR PATCH] [Closed]: Emulation Station: update to 2.11.2
  2023-10-03 18:31 [PR PATCH] find data files and update to 2.11.2 namgo
                   ` (2 preceding siblings ...)
  2024-01-02  1:47 ` github-actions
@ 2024-01-17  1:47 ` github-actions
  3 siblings, 0 replies; 5+ messages in thread
From: github-actions @ 2024-01-17  1:47 UTC (permalink / raw)
  To: ml

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

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

Emulation Station: update to 2.11.2
https://github.com/void-linux/void-packages/pull/46412

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-glibc)
Seems to compile on armv6l.

The changes were tested exclusively on x86_64-glibc.

This change MAY break for other libs/arch's as it removes the patch to include ctime since the upstream adds time.h, if that happens I'll restore the patch - it seemed to work fine as I was testing it without the patch.

I imported https://github.com/RetroPie/EmulationStation/pull/618 as was recommended by https://github.com/RetroPie/EmulationStation/issues/819 with the intention being able to find installed data-files outside of the user's home directory.

The other change I made was to add files from the installer that typically go to a user's $HOME into /usr/share/EmulationStation/ to work with the patch.

This is intended to address https://github.com/void-linux/void-packages/issues/44861 .

In working with the patch, I bumped the version which might not have been necessary. If that should make a separate PR in the future please let me know.

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

end of thread, other threads:[~2024-01-17  1:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 18:31 [PR PATCH] find data files and update to 2.11.2 namgo
2023-10-03 18:39 ` [PR PATCH] [Updated] Emulation Station: " namgo
2023-10-03 20:33 ` namgo
2024-01-02  1:47 ` github-actions
2024-01-17  1:47 ` [PR PATCH] [Closed]: " github-actions

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