mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/tilda: fix build with gcc 14
This commit is contained in:
parent
c0fcd140ab
commit
a5959f8c93
@ -2,7 +2,7 @@
|
||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||
pkgname=tilda
|
||||
pkgver=2.0.0
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A Gtk based drop down terminal for Linux and Unix"
|
||||
url="https://github.com/lanoxx/tilda"
|
||||
arch="all"
|
||||
@ -12,7 +12,8 @@ makedepends="automake autoconf libtool
|
||||
confuse-dev vte3-dev libx11-dev libxml2-utils
|
||||
pcre2-dev"
|
||||
subpackages="$pkgname-lang $pkgname-doc"
|
||||
source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz"
|
||||
source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz
|
||||
gcc14.patch"
|
||||
builddir="$srcdir"/$pkgname-$pkgname-$pkgver
|
||||
|
||||
prepare() {
|
||||
@ -40,4 +41,5 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
e68c04e1c8dd862ab850a06036d67544a910ccd3143eb9d33171d551f34ef47445d6b387bf087ada6f3deddcf115ba928f3bb0497b8a3d2305b202b3b84fd476 tilda-2.0.0.tar.gz
|
||||
48a5b02b028776c78f5df1d2b43c0a72509456239170c0cb81e2b8d3bd5b75a07358b050b8c7a7c0502df6d137ba7bdf708a5bf7539f474d9805cd890826551c gcc14.patch
|
||||
"
|
||||
|
23
community/tilda/gcc14.patch
Normal file
23
community/tilda/gcc14.patch
Normal file
@ -0,0 +1,23 @@
|
||||
Fix -Wimplicit-function-declaration error with gcc 14.
|
||||
|
||||
Error:
|
||||
|
||||
```
|
||||
src/tilda-lock-files.c: In function 'getPids':
|
||||
src/tilda-lock-files.c:223:22: error: implicit declaration of function 'popen';
|
||||
did you mean 'open'? [-Wimplicit-function-declaration]
|
||||
223 | if ((ps_output = popen (ps_command, "r")) == NULL) {
|
||||
| ^~~~~
|
||||
| open
|
||||
```
|
||||
|
||||
--- tilda-tilda-2.0.0-origin/src/tilda-lock-files.c
|
||||
+++ tilda-tilda-2.0.0/src/tilda-lock-files.c
|
||||
@@ -13,6 +13,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#define _DEFAULT_SOURCE
|
||||
#include "tilda-lock-files.h"
|
||||
|
||||
#include "debug.h"
|
Loading…
Reference in New Issue
Block a user