Can .47 be removed or changed to .49? I know its just the name, but it is wrong.
Search Criteria
Package Details: openmw-git 0.48.0.r5496.g8471cfb576-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/openmw-git.git (read-only, click to copy) |
---|---|
Package Base: | openmw-git |
Description: | An open-source engine reimplementation for the role-playing game Morrowind. |
Upstream URL: | http://www.openmw.org |
Licenses: | custom, MIT, GPL-3.0-or-later |
Conflicts: | openmw |
Provides: | openmw |
Submitter: | None |
Maintainer: | bwrsandman (Lone_Wolf) |
Last Packager: | Lone_Wolf |
Votes: | 30 |
Popularity: | 0.000105 |
First Submitted: | 2011-01-05 16:17 (UTC) |
Last Updated: | 2024-06-25 12:42 (UTC) |
Dependencies (20)
- boost-libs
- bullet-dp
- ffmpeg4.4
- libxt
- luajit (luajit-2.1-lua52-gitAUR, luajit-gitAUR, luajit-openrestyAUR)
- mygui-openmwAUR
- openal (openal-gitAUR)
- openscenegraph-openmw-gitAUR
- qt6-base (qt6-base-gitAUR, qt6-base-noguiAUR, qt6-base-headlessAUR)
- qt6-svg
- recastnavigation-openmwAUR
- sdl2AUR (sdl2-compat-gitAUR, sdl2-gitAUR, sdl2-compat)
- sqlite (sqlite-fossilAUR)
- unshield (unshield-gitAUR)
- yaml-cpp
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- debugedit (debugedit-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- qt6-tools (make)
Required by (1)
- openmw-tes3mp (requires openmw) (optional)
Sources (1)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 15 Next › Last »
Jackleson commented on 2023-04-20 20:33 (UTC) (edited on 2023-04-20 20:34 (UTC) by Jackleson)
txtsd commented on 2023-04-08 06:37 (UTC)
Just the number of commits is a good idea since upstream does not seem to care about consistent tag names. So just openmw-git r4538.ga41cbfb349-1
for example, with an epoch if there might be problems with vercmp.
Lone_Wolf commented on 2023-03-27 12:21 (UTC)
openmw devs only use tags in release branches and never in the development branch. llvm and mesa also work like this.
I am aware of 3 methods that are in use :
-
manually add the version as a static value in pkgver() , like my openscenegraph-openmw-git package.
-
get the version info from a file provided in the upstream sources. my llvm-minimal-git and mesa-minimal-git packages do this.
-
don't bother with versions, just use the number of commits since start of project
(add the commit hash in all cases)
Using tags meant for release branches is in my opinion wrong for packages building development trees, but this is bwrsandmans package and I'll follow whatever they decide.
bwrsandman commented on 2023-03-27 01:19 (UTC)
Not going to be basing the version here based on the CMake config. That's hyper specific and much more likely to fail than basing off of the tags.
I've said this before, the ideal thing to do is for upstream to be consistent with their tagging but even with that, it's making a mountain out of a mole hill.
Le_Limule commented on 2023-03-22 12:10 (UTC)
@Lone_Wolf: thanks, i go the right way now: it works.
Lone_Wolf commented on 2023-03-22 11:04 (UTC)
@Le_Limule : you went the wrong way, now repo packages build against boost 1.80 will fail. A better solution would be to rebuild openmw-git against the new boost version.
@txtsd: LGTM , but I haven't had time to check it thoroughly . I would also prefer it if bwrsandman made such decisions.
For now users can manually edit the PKGBUILD with the first (simpler) patch provided by txtsd.
Le_Limule commented on 2023-03-22 08:54 (UTC)
Since a system upgrade i get: openmw-launcher: error while loading shared libraries: libboost_program_options.so.1.79.0: cannot open shared object file: No such file or directory
I remove the boost package. Then i downgrade the boost-libs package from 1.80 to 1.79. It's ok now.
txtsd commented on 2023-03-21 13:56 (UTC) (edited on 2023-03-21 13:56 (UTC) by txtsd)
Alright I got it done. It is commented so it shouldn't be difficult to follow. Here's a patch, and if you add me as a co-maintainer, I can push it myself. I maintain several packages on the AUR.
From 6b9c0b882046055969a47aefbad26ea32f5c7d26 Mon Sep 17 00:00:00 2001
From: txtsd <code@ihavea.quest>
Date: Tue, 21 Mar 2023 19:23:43 +0530
Subject: [PATCH] Build $pkgver from CMakeLists.txt
Signed-off-by: txtsd <code@ihavea.quest>
---
.SRCINFO | 2 +-
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++----
2 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 3a33540..4e1bef8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = openmw-git
pkgdesc = An open-source engine reimplementation for the role-playing game Morrowind.
- pkgver = 0.47.0.r4538.ga41cbfb349
+ pkgver = 0.49.0.r1543.g4b5de083d8
pkgrel = 1
url = http://www.openmw.org
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index ee076d6..1ed7270 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer : bwrsandman
# Co-Maintainer: Lone_Wolf <lone_wolf@klaas-de-kat.nl>
+# Contributor: txtsd <aur.archlinux@ihavea.quest>
pkgname=openmw-git
-pkgver=0.47.0.r4538.ga41cbfb349
+pkgver=0.49.0.r1543.g4b5de083d8
pkgrel=1
pkgdesc="An open-source engine reimplementation for the role-playing game Morrowind."
arch=('i686' 'x86_64')
@@ -18,10 +19,40 @@ sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
- _tag="$(git describe --tags --match 'openmw-[01]*' --abbrev=0 $(git rev-list --tags) | uniq | sed 's/openmw-//' | sort | tail -n1)"
- _numcommits="$(git rev-list openmw-$_tag..HEAD --count)"
+
+ # Find line numbers of semver segments
+ _ln_major=$(grep -Fn "set(OPENMW_VERSION_MAJOR " "${srcdir}/openmw/CMakeLists.txt"| cut -d : -f 1)
+ _ln_minor=$(grep -Fn "set(OPENMW_VERSION_MINOR " "${srcdir}/openmw/CMakeLists.txt"| cut -d : -f 1)
+ _ln_release=$(grep -Fn "set(OPENMW_VERSION_RELEASE " "${srcdir}/openmw/CMakeLists.txt"| cut -d : -f 1)
+
+ # Grab semver segments
+ _major=$(sed -En "s/set\(OPENMW_VERSION_MAJOR ([0-9])\)/\1/p" "${srcdir}/openmw/CMakeLists.txt")
+ _minor=$(sed -En "s/set\(OPENMW_VERSION_MINOR ([0-9]{1,2})\)/\1/p" "${srcdir}/openmw/CMakeLists.txt")
+ _release=$(sed -En "s/set\(OPENMW_VERSION_RELEASE ([0-9])\)/\1/p" "${srcdir}/openmw/CMakeLists.txt")
+
+ # Find commits when semver segment was last changed
+ _start_commit_major=$(git blame -L${_ln_major} CMakeLists.txt | head -n 1 | cut -d " " -f 1)
+ _start_commit_minor=$(git blame -L${_ln_minor} CMakeLists.txt | head -n 1 | cut -d " " -f 1)
+ _start_commit_release=$(git blame -L${_ln_release} CMakeLists.txt | head -n 1 | cut -d " " -f 1)
+
+ # Find number of commits since the semver segments were changed
+ _numcommits_since__major=$(git rev-list --count ${_start_commit_major}..HEAD)
+ _numcommits_since__minor=$(git rev-list --count ${_start_commit_minor}..HEAD)
+ _numcommits_since__release=$(git rev-list --count ${_start_commit_release}..HEAD)
+
+ # Find least number of commits since last semver segment change
+ _min=999999
+ for _num in ${_numcommits_since__major} ${_numcommits_since__minor} ${_numcommits_since__release}; do
+ if ((_num < _min)); then
+ _min=$_num
+ fi
+ done
+
+ # r and g parts of the $pkgver
+ _numcommits=$_min
_hash="$(git rev-parse --short HEAD)"
- printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"
+
+ printf "%d.%d.%d.r%d.g%s" "$_major" "$_minor" "$_release" "$_numcommits" "$_hash"
}
build() {
--
2.40.0
Lone_Wolf commented on 2023-03-21 09:30 (UTC) (edited on 2023-03-21 09:31 (UTC) by Lone_Wolf)
That results in a 0.48something pkgver ?
The main CMakeLists.txt has the correct version (currently 0.49 ) in these 3 lines
set(OPENMW_VERSION_MAJOR 0)
set(OPENMW_VERSION_MINOR 49)
set(OPENMW_VERSION_RELEASE 0)
If someone can figure out how to use that for pkgver() it would be great.
txtsd commented on 2023-03-20 23:40 (UTC)
Here's a patch to make it work.
From 6a1b51972d66d954ab1066758b79306ad79d9da9 Mon Sep 17 00:00:00 2001
From: txtsd <code@ihavea.quest>
Date: Tue, 21 Mar 2023 04:49:34 +0530
Subject: [PATCH] Handle new openmw-48-rc* tag format
Signed-off-by: txtsd <code@ihavea.quest>
---
.SRCINFO | 2 +-
PKGBUILD | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 3a33540..df1f366 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = openmw-git
pkgdesc = An open-source engine reimplementation for the role-playing game Morrowind.
- pkgver = 0.47.0.r4538.ga41cbfb349
+ pkgver = 0.48.0.rc8.r1554.gffe0e01dfc
pkgrel = 1
url = http://www.openmw.org
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index ee076d6..78c8961 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer : bwrsandman
# Co-Maintainer: Lone_Wolf <lone_wolf@klaas-de-kat.nl>
+# Contributor: txtsd <aur.archlinux@ihavea.quest>
pkgname=openmw-git
-pkgver=0.47.0.r4538.ga41cbfb349
+pkgver=0.48.0.rc8.r1554.gffe0e01dfc
pkgrel=1
pkgdesc="An open-source engine reimplementation for the role-playing game Morrowind."
arch=('i686' 'x86_64')
@@ -18,8 +19,13 @@ sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
- _tag="$(git describe --tags --match 'openmw-[01]*' --abbrev=0 $(git rev-list --tags) | uniq | sed 's/openmw-//' | sort | tail -n1)"
- _numcommits="$(git rev-list openmw-$_tag..HEAD --count)"
+ _pattern='^([0-9]{2})-rc([0-9]{1,2}$)'
+ _tag="$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/openmw-//')"
+ if [[ $_tag =~ $_pattern ]] ;
+ then
+ _tag=$(echo $_tag | sed -E 's/^([0-9]{2})-rc([0-9]{1,2}$)/0.\1.0.rc\2/')
+ fi
+ _numcommits="$(git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count)"
_hash="$(git rev-parse --short HEAD)"
printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"
}
--
2.40.0
Pinned Comments
Lone_Wolf commented on 2022-06-17 10:07 (UTC)
openmw-git has been found to require a sizable amount of temporary space during building.
The available amount depends on system specifics so is different for all systems. In case build fails with "no space left on device" you may be bitten by this.
See https://bbs.archlinux.org/viewtopic.php?id=277304 for details and possible solutions.
bwrsandman commented on 2016-09-24 14:59 (UTC) (edited on 2018-11-22 17:28 (UTC) by bwrsandman)
Please refrain from flagging the git version as out date when a new release comes out. The git aur packages update their version on install time based on the tags of the git repo.
Keep in mind that this is a VCS package and it is meant to be in line with the latest master which might not always work. It is not meant to follow the release pattern in any particularly smart way and assumes that upstream maintains their tags consistently.
For the newest release, the correct page is https://www.archlinux.org/packages/?q=openmw