Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
e42d5476
Commit
e42d5476
authored
7 months ago
by
mio
Committed by
Patrycja Rosa
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
community/fortune: fix build with gcc 14
parent
d64cab7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!70714
community/fortune: fix build with gcc 14
Pipeline
#253934
passed
7 months ago
Stage: verify
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/fortune/APKBUILD
+8
-3
8 additions, 3 deletions
community/fortune/APKBUILD
community/fortune/gcc14.patch
+26
-0
26 additions, 0 deletions
community/fortune/gcc14.patch
with
34 additions
and
3 deletions
community/fortune/APKBUILD
+
8
−
3
View file @
e42d5476
...
...
@@ -2,7 +2,7 @@
# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname
=
fortune
pkgver
=
0.1
pkgrel
=
3
pkgrel
=
4
pkgdesc
=
"Fortune cookie program ported from OpenBSD"
url
=
"https://github.com/ahills/fortune"
arch
=
"all"
...
...
@@ -10,7 +10,9 @@ license="BSD-3-Clause"
options
=
"!check"
# no test suite
makedepends
=
"libbsd-dev"
subpackages
=
"
$pkgname
-doc"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/ahills/fortune/archive/v
$pkgver
.tar.gz"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/ahills/fortune/archive/v
$pkgver
.tar.gz
gcc14.patch
"
build
()
{
make
PREFIX
=
/usr
...
...
@@ -20,4 +22,7 @@ package() {
make
PREFIX
=
/usr
DESTDIR
=
"
$pkgdir
"
install
}
sha512sums
=
"11c883aef8fafea6237fcd1b45fbbb169d6996a253f1def720dd9379c4bfe1bad050789c6e89eb7f1960abde54fe04d85fd13148bd0af8528de630611c0e6e48 fortune-0.1.tar.gz"
sha512sums
=
"
11c883aef8fafea6237fcd1b45fbbb169d6996a253f1def720dd9379c4bfe1bad050789c6e89eb7f1960abde54fe04d85fd13148bd0af8528de630611c0e6e48 fortune-0.1.tar.gz
38a3ca3ed2ae5a8c6d45464a64d571f5f3cda9ca1d7ab6fe082ab9e32026ecc5e559c6aeef7436cf5a7e877d50faf4e88ef063b5a49a353447563a566fa09190 gcc14.patch
"
This diff is collapsed.
Click to expand it.
community/fortune/gcc14.patch
0 → 100644
+
26
−
0
View file @
e42d5476
--- fortune-0.1-origin/fortune/fortune.c
+++ fortune-0.1/fortune/fortune.c
@@ -33,6 +33,10 @@
* SUCH DAMAGE.
*/
+/* Enable ntohl() and arc4random_uniform */
+#include <arpa/inet.h>
+#include <bsd/stdlib.h>
+
#include <sys/stat.h>
#include <sys/types.h>
--- fortune-0.1-origin/strfile/strfile.c
+++ fortune-0.1/strfile/strfile.c
@@ -32,6 +32,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+/* Enable htonl() and arc4random_uniform() */
+#include <arpa/inet.h>
+#include <bsd/stdlib.h>
+
#include <sys/types.h>
#include <ctype.h>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment