Remove -fPIC and fix the real problem where end_of_entries is sometimes

declared as unsigned int and sometimes as off_t which have a different
size and alignment.
This commit is contained in:
Tijl Coosemans 2017-02-13 16:52:44 +00:00
parent 59e46d969a
commit cb09e3fa69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434003
2 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= fastjar
PORTVERSION= 0.93.20060808
PORTREVISION= 1
CATEGORIES= archivers java
MASTER_SITES= LOCAL/maho/fastjar
@ -15,8 +16,6 @@ USES= gmake makeinfo perl5 tar:bzip2
USES_PERL5= build
GNU_CONFIGURE= yes
CFLAGS_aarch64= -fPIC
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= CHANGES ChangeLog NEWS README
PLIST_FILES= bin/fastjar bin/grepjar \

View File

@ -0,0 +1,11 @@
--- jartool.c.orig 2006-08-07 08:06:23 UTC
+++ jartool.c
@@ -313,7 +313,7 @@ int number_of_entries; /* number of entr
const char *progname;
/* The offset of the end of the last zip entry. */
-ub4 end_of_entries;
+off_t end_of_entries;
/* This is used to mark options with no short value. */
#define LONG_OPT(Num) ((Num) + 128)