mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/partclone: fix build with gcc 14
This commit is contained in:
parent
f84d95647d
commit
37de84f94a
@ -2,7 +2,7 @@
|
||||
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
|
||||
pkgname=partclone
|
||||
pkgver=0.3.32
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="utilities to save and restore used blocks on a partition"
|
||||
url="https://partclone.org"
|
||||
arch="all"
|
||||
@ -31,6 +31,7 @@ subpackages="
|
||||
$pkgname-bash-completion
|
||||
"
|
||||
source="https://github.com/Thomas-Tsai/partclone/archive/$pkgver/partclone-$pkgver.tar.gz
|
||||
gcc14.patch
|
||||
musl.patch
|
||||
remove-usage-of-off64_t.patch
|
||||
very-funny-glibc-types.patch
|
||||
@ -70,6 +71,7 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
ff454ab910343606f4691f0de1744507dc8d48e2e431ba1d6b4b1ca8152aafddf230a5c3273c2f853779868365e534b74ecc201bfc7e258037d56d47b2afbf8b partclone-0.3.32.tar.gz
|
||||
65cf12c8c39e2182156406806ed9f3eb1db4b924381b298e1f4cdac8f69d0d5459b02d8ff75abb7e43334ab7696afba9d94cea05ad588607831855a0b7d35312 gcc14.patch
|
||||
67505eda6028a772700ab776faa4f3156deec205525aa83b76b43917d4b2bf7704d6c15e44da96f19e23b856669285ff94f5bc71c9bbac75b30b0831ebc95576 musl.patch
|
||||
3c48851e3848f33bc257859febb54569dc00006af9877b706da5adca5680d61ee6291b62511ee1d50fb07d82cc04bffa5074ef5825071407570b952ff06684ef remove-usage-of-off64_t.patch
|
||||
16877cba85c0f2505940b88bf60b146b5412e624ab48733a5c9b1094f0a3ce031f8d3b5fd9aecd82fba6787f6939ae48fb713181d54db92990ff7b83e3b961c9 very-funny-glibc-types.patch
|
||||
|
26
community/partclone/gcc14.patch
Normal file
26
community/partclone/gcc14.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Fix -Wimplicit-function-declaration error with gcc 14.
|
||||
|
||||
Error:
|
||||
|
||||
```
|
||||
In file included from /usr/include/ntfs-3g/inode.h:35,
|
||||
from /usr/include/ntfs-3g/volume.h:51,
|
||||
from /usr/include/ntfs-3g/device.h:33,
|
||||
from ntfsclone-ng.c:33:
|
||||
/usr/include/ntfs-3g/ntfstime.h: In function 'ntfs_current_time':
|
||||
/usr/include/ntfs-3g/ntfstime.h:125:22: error: implicit declaration of function
|
||||
'time' [-Wimplicit-function-declaration]
|
||||
125 | now.tv_sec = time((time_t*)NULL);
|
||||
| ^~~~
|
||||
```
|
||||
|
||||
--- partclone-0.3.32-origin/src/ntfsclone-ng.c
|
||||
+++ partclone-0.3.32/src/ntfsclone-ng.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <linux/types.h>
|
||||
#include <errno.h>
|
||||
+#include <time.h>
|
||||
|
||||
#define NTFS_DO_NOT_CHECK_ENDIANS
|
||||
#define NTFS_MAX_CLUSTER_SIZE 65536
|
Loading…
Reference in New Issue
Block a user