mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(inetutils)
clang on mac complaining something awful: ``` syslogd.c:281:7: error: conflicting types for 'ttymsg' char *ttymsg (struct iovec *, int, char *, int); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/util.h:103:9: note: previous declaration is here char *ttymsg(struct iovec *, int, const char *, int); ``` closes #4659
This commit is contained in:
parent
f1036cbdf3
commit
aea1470b5d
1 changed files with 15 additions and 6 deletions
|
@ -14,12 +14,21 @@ dependencies:
|
|||
invisible-island.net/ncurses: '*'
|
||||
|
||||
build:
|
||||
script: |
|
||||
./configure $ARGS
|
||||
make SUIDMODE= install
|
||||
mkdir "{{prefix}}"/sbin
|
||||
cd "{{prefix}}"/libexec
|
||||
for x in *; do ln -s ../libexec/$x ../sbin; done
|
||||
dependencies:
|
||||
gnu.org/help2man: 1
|
||||
script:
|
||||
# 2.5.0 has a conflicting definition on darwin
|
||||
- run: |
|
||||
if test "{{hw.platform}}" = "darwin"; then
|
||||
sed -i -e 's/char \*ttymsg (struct iovec \*, int, char \*, int);/char *ttymsg (struct iovec *, int, const char *, int);/' syslogd.c
|
||||
fi
|
||||
working-directory: src
|
||||
if: 2.5.0
|
||||
- ./configure $ARGS
|
||||
- make SUIDMODE= install
|
||||
- mkdir "{{prefix}}"/sbin
|
||||
- run: for x in *; do ln -s ../libexec/$x ../sbin; done
|
||||
working-directory: '{{prefix}}/libexec'
|
||||
env:
|
||||
ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
|
|
Loading…
Reference in a new issue