Skip to content
Permalink
Browse files

getopt: fix implicitly defined functions in getopt.c

add size to hashes
  • Loading branch information
Schamschula committed Jun 26, 2020
1 parent 77637c0 commit a6f9ee4a9859f0430b0a30d9ec0925a3a1b2cb88
Showing with 14 additions and 2 deletions.
  1. +4 −2 sysutils/getopt/Portfile
  2. +10 −0 sysutils/getopt/files/patch-gnu-getopt.c.diff
@@ -28,9 +28,11 @@ installs_libs no
master_sites http://frodo.looijaard.name/system/files/software/getopt

checksums rmd160 6ef3666d386450fa5ce249e7748805df5c8482c9 \
sha256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
sha256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe \
size 58926

patchfiles patch-Makefile.diff
patchfiles patch-Makefile.diff \
patch-gnu-getopt.c.diff

post-patch {
reinplace -E "/^CFLAGS/s|\$| [get_canonical_archflags cc]|" ${worksrcpath}/Makefile
@@ -0,0 +1,10 @@
--- gnu/getopt.c.orig 2014-11-19 15:39:47.000000000 -0600
+++ gnu/getopt.c 2020-06-26 14:24:15.000000000 -0500
@@ -40,6 +40,7 @@
#endif

#include <stdio.h>
+#include <string.h>

/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C

0 comments on commit a6f9ee4

Please sign in to comment.
You can’t perform that action at this time.