From: leahneukirchen <leahneukirchen@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] fpc 3.2.0
Date: Sun, 27 Sep 2020 17:59:53 +0200 [thread overview]
Message-ID: <20200927155953.kFiXHtfpJcGNw1deXqpZa3H9Aj0DJRlKDQep4GK8eRM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23113@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
There is an updated pull request by leahneukirchen against master on the void-packages repository
https://github.com/leahneukirchen/void-packages fpc320
https://github.com/void-linux/void-packages/pull/23113
fpc 3.2.0
Not merged as it breaks hedgewars:
```
...
uWorld.pas(1863,17) Note: Call to subroutine "procedure untint;" marked as inline is not inlined
uWorld.pas(1214,5) Fatal: Internal error 200306031
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
make[2]: *** [hedgewars/CMakeFiles/hwengine.dir/build.make:153: hedgewars/CMakeFiles/hwengine.dir/hwengine.o] Error 1
```
A patch file from https://github.com/void-linux/void-packages/pull/23113.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fpc320-23113.patch --]
[-- Type: text/x-diff, Size: 5170 bytes --]
From 9034199d6e2df54c26c23d593efb3b3daea94521 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Sun, 21 Jun 2020 14:45:23 +0200
Subject: [PATCH 1/3] fpc: update to 3.2.0.
---
srcpkgs/fpc/template | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/fpc/template b/srcpkgs/fpc/template
index e3be538a313..95627088547 100644
--- a/srcpkgs/fpc/template
+++ b/srcpkgs/fpc/template
@@ -1,7 +1,7 @@
# Template file for 'fpc'
pkgname=fpc
-version=3.0.4
-revision=2
+version=3.2.0
+revision=1
create_wrksrc=yes
build_wrksrc="${pkgname}build-${version}"
conf_files="/etc/fpc.cfg /etc/fppkg.cfg"
@@ -12,15 +12,15 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2, LGPL-2.1, FPC-FPR"
homepage="http://freepascal.org/"
distfiles="${SOURCEFORGE_SITE}/freepascal/Source/${version}/${pkgname}build-${version}.tar.gz"
-checksum=f66514e6f2c2e4e1bccccb4d554c24b77682ed61c87811ae5dd210f421855e76
+checksum=f9b914eace989a023fb953da203dc0d973b44487568b4138c7d5b9613d7d6838
case "$XBPS_TARGET_MACHINE" in
x86_64*)
distfiles+=" ${SOURCEFORGE_SITE}/freepascal/Linux/${version}/${pkgname}-${version}-1.x86_64.rpm"
- checksum+=" c7b75f09174a502d8dd776fbfabcad3e4360494fd635445185159b21001d65f1"
+ checksum+=" 1f74e1ad3ced2dd67688fdb92edd42e73cdc31ef96056f8739449d70a9306f2c"
;;
i686*)
distfiles+=" ${SOURCEFORGE_SITE}/freepascal/Linux/${version}/${pkgname}-${version}-1.i686.rpm"
- checksum+=" a8f1ea31c63e8cd96dbdecf02af97311f14629babe58b4bd18ecfa094a13ad45"
+ checksum+=" 05c5600c9461362a08df100cf50ca125cb2b4d5bfe4da48cf8c144f2bf4617a2"
;;
esac
# TODO: figure out cross-build and how to unwrap the ARM .tar.
@@ -57,7 +57,7 @@ do_install() {
PATH=$DESTDIR/usr/bin:$PATH \
$DESTDIR/usr/lib/fpc/${version}/samplecfg \
$DESTDIR/usr/lib/fpc/${version} $DESTDIR/etc
- sed -i "s,${DESTDIR},,g" $DESTDIR/etc/*.cfg $DESTDIR/etc/fppkg/* $DESTDIR/usr/lib/fpc/${version}/ide/text/*
+ sed -i "s,${DESTDIR},,g" $DESTDIR/etc/*.cfg $DESTDIR/etc/fppkg/default $DESTDIR/usr/lib/fpc/${version}/ide/text/*
vlicense fpcsrc/rtl/COPYING.FPC
}
From b1a4ec3ff0ade1f4ef17eab9fb54172d46ea0785 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Sun, 21 Jun 2020 15:09:35 +0200
Subject: [PATCH 2/3] fpc-src: update to 3.2.0.
---
srcpkgs/fpc-src/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/fpc-src/template b/srcpkgs/fpc-src/template
index 477b62368b6..a7222171578 100644
--- a/srcpkgs/fpc-src/template
+++ b/srcpkgs/fpc-src/template
@@ -1,6 +1,6 @@
# Template file for 'fpc-src'
pkgname=fpc-src
-version=3.0.4
+version=3.2.0
revision=1
wrksrc="fpcbuild-${version}"
short_desc="Source code for FreePascal compiler"
@@ -8,7 +8,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.0-or-later"
homepage="https://www.freepascal.org"
distfiles="ftp://ftp.freepascal.org/pub/fpc/dist/${version}/source/fpcbuild-${version}.tar.gz"
-checksum=f66514e6f2c2e4e1bccccb4d554c24b77682ed61c87811ae5dd210f421855e76
+checksum=f9b914eace989a023fb953da203dc0d973b44487568b4138c7d5b9613d7d6838
nostrip=yes
do_install() {
From ce972345358ef913136a3fcf52322a0a189ba363 Mon Sep 17 00:00:00 2001
From: Leah Neukirchen <leah@vuxu.org>
Date: Sun, 27 Sep 2020 17:26:46 +0200
Subject: [PATCH 3/3] hedgewars: rebuild for fpc-3.2.0.
---
srcpkgs/hedgewars/patches/fpc-3.2.0.patch | 13 +++++++++++++
srcpkgs/hedgewars/patches/qt.patch | 10 ++++++++++
srcpkgs/hedgewars/template | 2 +-
3 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/hedgewars/patches/fpc-3.2.0.patch
create mode 100644 srcpkgs/hedgewars/patches/qt.patch
diff --git a/srcpkgs/hedgewars/patches/fpc-3.2.0.patch b/srcpkgs/hedgewars/patches/fpc-3.2.0.patch
new file mode 100644
index 00000000000..6409399f74c
--- /dev/null
+++ b/srcpkgs/hedgewars/patches/fpc-3.2.0.patch
@@ -0,0 +1,13 @@
+--- hedgewars/uWorld.pas
++++ hedgewars/uWorld.pas
+@@ -1168,8 +1168,8 @@ procedure RenderAttackBar();
+ procedure ShiftWorld(Dir: LongInt); inline;
+ begin
+ preShiftWorldDx:= WorldDx;
+- WorldDx:= WorldDx + LongInt(Dir * LongInt(playWidth));
+-
++ Dir := Dir * LongInt(playWidth);
++ WorldDx:= WorldDx + Dir;
+ end;
+
+ procedure UnshiftWorld(); inline;
diff --git a/srcpkgs/hedgewars/patches/qt.patch b/srcpkgs/hedgewars/patches/qt.patch
new file mode 100644
index 00000000000..4d1cb16a7c4
--- /dev/null
+++ b/srcpkgs/hedgewars/patches/qt.patch
@@ -0,0 +1,10 @@
+--- QTfrontend/ui/page/pagegamestats.cpp.orig
++++ QTfrontend/ui/page/pagegamestats.cpp
+@@ -22,6 +22,7 @@
+ #include <QGraphicsScene>
+ #include <QGroupBox>
+ #include <QSizePolicy>
++#include <QPainterPath>
+
+ #include "pagegamestats.h"
+ #include "team.h"
diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 40cdb1086b4..b63c4fe32f5 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -1,7 +1,7 @@
# Template file for 'hedgewars'
pkgname=hedgewars
version=1.0.0
-revision=1
+revision=2
wrksrc="${pkgname}-src-${version}"
build_style=cmake
configure_args="-DNOSERVER=1 -DDATA_INSTALL_DIR=/usr/share/${pkgname}
next parent reply other threads:[~2020-09-27 15:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-23113@inbox.vuxu.org>
2020-09-27 15:59 ` leahneukirchen [this message]
2020-09-27 18:11 ` leahneukirchen
2020-09-27 18:27 ` leahneukirchen
2020-09-28 11:36 ` leahneukirchen
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=20200927155953.kFiXHtfpJcGNw1deXqpZa3H9Aj0DJRlKDQep4GK8eRM@z \
--to=leahneukirchen@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).