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
3a03b323
Commit
3a03b323
authored
3 years ago
by
Holger Jaekel
Committed by
Leo
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
community/cfitsio: fix definition of OFF_T
parent
5c551ac8
No related branches found
No related tags found
1 merge request
!19184
community/gdal: upgrade to 3.2.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/cfitsio/10-OFF_T.patch
+24
-0
24 additions, 0 deletions
community/cfitsio/10-OFF_T.patch
community/cfitsio/APKBUILD
+7
-3
7 additions, 3 deletions
community/cfitsio/APKBUILD
with
31 additions
and
3 deletions
community/cfitsio/10-OFF_T.patch
0 → 100644
+
24
−
0
View file @
3a03b323
Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: under musl, off_t is always 64-bit
----
--- a/fitsio.h
+++ b/fitsio.h
@@ -85,16 +85,7 @@
/* Debian systems require: "(defined(linux) && defined(__off_t_defined))" */
/* the mingw-w64 compiler requires: "(defined(__MINGW32__) && defined(_OFF_T_DEFINED))" */
-#if defined(_OFF_T) \
- || (defined(linux) && defined(__off_t_defined)) \
- || (defined(__MINGW32__) && defined(_OFF_T_DEFINED)) \
- || defined(_MIPS_SZLONG) || defined(__APPLE__) || defined(_AIX)
-# define OFF_T off_t
-#elif defined(__BORLANDC__) || (defined(_MSC_VER) && (_MSC_VER>= 1400))
-# define OFF_T long long
-#else
-# define OFF_T long
-#endif
+#define OFF_T off_t
/* this block determines if the the string function name is
strtol or strtoll, and whether to use %ld or %lld in printf statements */
This diff is collapsed.
Click to expand it.
community/cfitsio/APKBUILD
+
7
−
3
View file @
3a03b323
...
...
@@ -2,7 +2,7 @@
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname
=
cfitsio
pkgver
=
3.49
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"A library reading and writing data files in Flexible Image Transport System data format"
url
=
"https://heasarc.gsfc.nasa.gov/fitsio/"
arch
=
"all"
...
...
@@ -16,7 +16,10 @@ subpackages="
$pkgname
-static
$pkgname
-dev
"
source
=
"https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-
$pkgver
.tar.gz"
source
=
"
https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-
$pkgver
.tar.gz
10-OFF_T.patch
"
build
()
{
./configure
\
...
...
@@ -48,4 +51,5 @@ check() {
[[
-z
$(
diff testprog.lis testprog.out
)
]]
[[
-z
$(
cmp testprog.fit testprog.std
)
]]
}
sha512sums
=
"9836a4af3bbbfed1ea1b4c70b9d500ac485d7c3d8131eb8a25ee6ef6662f46ba52b5161c45c709ed9a601ff0e9ec36daa5650eaaf4f2cc7d6f4bb5640f10da15 cfitsio-3.49.tar.gz"
sha512sums
=
"9836a4af3bbbfed1ea1b4c70b9d500ac485d7c3d8131eb8a25ee6ef6662f46ba52b5161c45c709ed9a601ff0e9ec36daa5650eaaf4f2cc7d6f4bb5640f10da15 cfitsio-3.49.tar.gz
f64d38a18d1bf4f414ab19fdb811978b940284f443287cfe21d471d14a272b424d887ba59edffc99f9165353a2e5ab4210efc82d5623cbb7d2e3db12966b93fd 10-OFF_T.patch"
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