Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opentyrian for openSUSE:Factory 
checked in at 2026-09-15 12:48:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opentyrian (Old)
 and      /work/SRC/openSUSE:Factory/.opentyrian.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opentyrian"

Tue Sep 15 12:48:58 2026 rev:7 rq:1377986 version:2.1.20260913

Changes:
--------
--- /work/SRC/openSUSE:Factory/opentyrian/opentyrian.changes    2026-09-14 
16:24:43.924480373 +0200
+++ /work/SRC/openSUSE:Factory/.opentyrian.new.383539/opentyrian.changes        
2026-09-15 12:49:12.189890569 +0200
@@ -1,0 +2,9 @@
+Mon Sep 14 15:45:07 UTC 2026 - Martin Hauke <[email protected]>
+
+- Update to version 2.1.20260913
+  * Configuration and saved game files are stored in the same
+    directory as the executable if opentyrian.cfg is already there.
+- Drop patch:
+  * fix-make-install.patch
+
+-------------------------------------------------------------------

Old:
----
  fix-make-install.patch
  opentyrian-2.1.20260912.tar.gz

New:
----
  opentyrian-2.1.20260913.tar.gz

----------(Old B)----------
  Old:- Drop patch:
  * fix-make-install.patch
----------(Old E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ opentyrian.spec ++++++
--- /var/tmp/diff_new_pack.PUefpY/_old  2026-09-15 12:49:13.030925629 +0200
+++ /var/tmp/diff_new_pack.PUefpY/_new  2026-09-15 12:49:13.031925671 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           opentyrian
-Version:        2.1.20260912
+Version:        2.1.20260913
 Release:        0
 Summary:        An arcade-style vertical scrolling shooter
 License:        GPL-2.0-or-later
@@ -26,7 +26,6 @@
 Source:         
https://github.com/opentyrian/opentyrian/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 # PATCH-FEATURE-UPSTREAM https://github.com/opentyrian/opentyrian/pull/13
 Patch0:         appdata.patch
-Patch1:         fix-make-install.patch
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme

++++++ opentyrian-2.1.20260912.tar.gz -> opentyrian-2.1.20260913.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/.github/workflows/linux.yml 
new/opentyrian-2.1.20260913/.github/workflows/linux.yml
--- old/opentyrian-2.1.20260912/.github/workflows/linux.yml     2026-09-13 
01:31:38.000000000 +0200
+++ new/opentyrian-2.1.20260913/.github/workflows/linux.yml     2026-09-14 
01:20:22.000000000 +0200
@@ -45,6 +45,13 @@
         run: make -j"$(nproc)" debug
       - name: Smoke test
         run: ./opentyrian --help
+      - name: Test install/uninstall
+        run: |
+          DESTDIR=$(mktemp -d)
+          make install DESTDIR="$DESTDIR"
+          make uninstall DESTDIR="$DESTDIR"
+          find "$DESTDIR" -type f | grep . && exit 1
+          rm -rf "$DESTDIR"
       - name: Cache game data
         uses: actions/cache@v6
         with:
@@ -64,7 +71,7 @@
           cp -r data dist/opentyrian/data
           cp COPYING dist/opentyrian/
           cp doc/tyrian-freeware-license.txt 
dist/opentyrian/licenses/Tyrian.txt
-          # SDL2 and SDL2_net are linked in statically, so their licences ship 
too
+          # SDL2 and SDL2_net are linked in statically, so their licenses ship 
too
           cp build/sdl/share/licenses/SDL2.txt dist/opentyrian/licenses/
           cp build/sdl/share/licenses/SDL2_net.txt dist/opentyrian/licenses/
           tar -czf "opentyrian-linux-${{ matrix.arch }}.tar.gz" -C dist 
opentyrian
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/.gitignore 
new/opentyrian-2.1.20260913/.gitignore
--- old/opentyrian-2.1.20260912/.gitignore      2026-09-13 01:31:38.000000000 
+0200
+++ new/opentyrian-2.1.20260913/.gitignore      2026-09-14 01:20:22.000000000 
+0200
@@ -1,5 +1,6 @@
 /data/
 
+newsh$.shp
 opentyrian.cfg
 tyrian.cfg
 tyrian.sav
@@ -18,10 +19,6 @@
 /SDL2.dll
 /SDL2_net.dll
 
-# Windows runtime output
-/stderr.txt
-/stdout.txt
-
 # MSVC build output and project
 /opentyrian-*.exe
 /opentyrian-*.ilk
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/Makefile 
new/opentyrian-2.1.20260913/Makefile
--- old/opentyrian-2.1.20260912/Makefile        2026-09-13 01:31:38.000000000 
+0200
+++ new/opentyrian-2.1.20260913/Makefile        2026-09-14 01:20:22.000000000 
+0200
@@ -145,7 +145,7 @@
 .PHONY : install
 install : $(TARGET) installdirs
        $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/
-       $(INSTALL_DATA) NEWS README $(DESTDIR)$(docdir)/
+       $(INSTALL_DATA) README.md $(DESTDIR)$(docdir)/
        $(INSTALL_DATA) linux/man/opentyrian.6 
$(DESTDIR)$(man6dir)/opentyrian$(man6ext)
        $(INSTALL_DATA) linux/opentyrian.desktop $(DESTDIR)$(desktopdir)/
        $(INSTALL_DATA) linux/icons/tyrian-22.png 
$(DESTDIR)$(icondir)/hicolor/22x22/apps/opentyrian.png
@@ -157,7 +157,7 @@
 .PHONY : uninstall
 uninstall :
        rm -f $(DESTDIR)$(bindir)/$(TARGET)
-       rm -f $(DESTDIR)$(docdir)/NEWS $(DESTDIR)$(docdir)/README
+       rm -f $(DESTDIR)$(docdir)/README.md
        rm -f $(DESTDIR)$(man6dir)/opentyrian$(man6ext)
        rm -f $(DESTDIR)$(desktopdir)/opentyrian.desktop
        rm -f $(DESTDIR)$(icondir)/hicolor/22x22/apps/opentyrian.png
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/NEWS 
new/opentyrian-2.1.20260913/NEWS
--- old/opentyrian-2.1.20260912/NEWS    2026-09-13 01:31:38.000000000 +0200
+++ new/opentyrian-2.1.20260913/NEWS    1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-06/02/2007
-HOLOVID RELEASE ALPHA 01
-Breaking News
-
-Authorities report that a Gencore special task force, working from a secret 
-lab at Deliani, are engaged in a project to reimplement the historically 
-significant "videogame" entitled ~Tyrian~, a work regarded by historians as 
-a cultural artifact of utmost importance, and by the Church of Zinglon as a 
-holy prophecy. News of this effort have caused uproar through the galaxy, 
-but Gencore remains silent on the matter and officially-released details are 
-sparse. When approached for comment, Gencore Chancellor Transon Lohk 
-replied, "Who are you and what are you doing in my house? Get out!"
-
-Stay tuned for updates to this galaxy-shaking event!
- 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/README.md 
new/opentyrian-2.1.20260913/README.md
--- old/opentyrian-2.1.20260912/README.md       2026-09-13 01:31:38.000000000 
+0200
+++ new/opentyrian-2.1.20260913/README.md       2026-09-14 01:20:22.000000000 
+0200
@@ -36,6 +36,9 @@
 | Windows | `%APPDATA%\OpenTyrian` |
 | macOS / Linux | `$XDG_CONFIG_HOME/opentyrian` or `~/.config/opentyrian` |
 
+On Windows and Linux, if `opentyrian.cfg` exists in the same directory as the
+executable, the configuration and saved game files will be stored there 
instead.
+
 ## Game Data
 
 If you download a release build of OpenTyrian, the freeware Tyrian 2.1 data
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/opentyrian-2.1.20260912/src/file.c 
new/opentyrian-2.1.20260913/src/file.c
--- old/opentyrian-2.1.20260912/src/file.c      2026-09-13 01:31:38.000000000 
+0200
+++ new/opentyrian-2.1.20260913/src/file.c      2026-09-14 01:20:22.000000000 
+0200
@@ -173,6 +173,34 @@
                userDirPathLen = 0;
        }
 
+       char *basePath = SDL_GetBasePath();
+       if (basePath != NULL)
+       {
+               // If a certain file exists in the base path, store user files 
there.
+               const char *const filename = "opentyrian.cfg";
+
+               size_t filePathSize = strlen(basePath) + strlen(filename) + 1;
+               char *filePath = malloc(filePathSize);
+               snprintf(filePath, filePathSize, "%s%s", basePath, filename);
+
+               bool portable = fileExists(filePath);
+               
+               free(filePath);
+
+               if (portable)
+               {
+                       userDirPathLen = strlen(basePath) - 1;  // Trim 
trailing slash.
+                       size_t userDirPathSize = userDirPathLen + 1;
+                       userDirPath = malloc(userDirPathSize);
+                       snprintf(userDirPath, userDirPathSize, "%s", basePath);
+               }
+
+               SDL_free(basePath);
+
+               if (portable)
+                       return;
+       }
+
 #ifdef TARGET_WIN32
        const char *appData = getenv("APPDATA");
        if (appData != NULL)

Reply via email to