Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
pwd
/home/src/lib/libfetch
%patch -i /tmp/patch-libfetch.diff.txt http.c
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/lib/libfetch/http.c.orig 2008-06-29 15:28:58.000000000 +0200
|+++ src/lib/libfetch/http.c 2008-06-30 19:38:57.000000000 +0200
--------------------------
Patching file http.c using Plan A...
Hunk #1 succeeded at 75.
Hunk #2 succeeded at 106.
Hunk #3 succeeded at 126.
Hunk #4 failed at 312.
Hunk #5 failed at 366.
Hunk #6 succeeded at 375.
Hunk #7 succeeded at 430.
Hunk #8 succeeded at 444.
Hunk #9 succeeded at 588 (offset -4 lines).
Hunk #10 succeeded at 912 (offset -2 lines).
Hunk #11 succeeded at 945 (offset -4 lines).
Hunk #12 failed at 1031.
Hunk #13 succeeded at 1114 with fuzz 2 (offset -2 lines).
Hunk #14 succeeded at 1235 (offset -4 lines).
Hunk #15 failed at 1252.
4 out of 15 hunks failed--saving rejects to http.c.rej
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- src/lib/libfetch/Makefile.orig 2008-06-29 23:45:32.000000000 +0200
|+++ src/lib/libfetch/Makefile 2008-06-29 23:43:11.000000000 +0200
--------------------------
Patching file Makefile using Plan A...
Hunk #1 failed at 20.
1 out of 1 hunks failed--saving rejects to Makefile.rej
done
%cat Makefile.rej
***************
*** 20,25 ****
LDADD= -lssl -lcrypto
.endif
CFLAGS+= -DFTP_COMBINE_CWDS -l
CSTD?= c99
--- 20,27 ----
LDADD= -lssl -lcrypto
.endif
+ LDADD+= -lz
+
CFLAGS+= -DFTP_COMBINE_CWDS -l
CSTD?= c99
%uname -a
FreeBSD tc3 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #0: Sun Dec 30 15:41:59 MET 2007 sk@tc3:/usr/obj/home/src/sys/TC3-i386
cvs up -dAP -rRELENG_7 -D '06/07/2008 23:59:07 CET'
immer noch 1 Makefile reject:
+ LDADD+= -lz
# $FreeBSD: src/lib/libfetch/Makefile,v 1.49.2.1 2008/01/18 13:23:57 des Exp $
.include <bsd.own.mk>
LIB= fetch
CFLAGS+= -I.
SRCS= fetch.c common.c ftp.c http.c file.c \
ftperr.h httperr.h
INCS= fetch.h
MAN= fetch.3
CLEANFILES= ftperr.h httperr.h
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DWITH_SSL
DPADD= ${LIBSSL} ${LIBCRYPTO}
LDADD= -lssl -lcrypto
.endif
LDADD+= -lz
CFLAGS+= -DFTP_COMBINE_CWDS -l
CSTD?= c99
WARNS?= 2
SHLIB_MAJOR= 5
ftperr.h: ftp.errors ${.CURDIR}/Makefile
@echo "static struct fetcherr ftp_errlist[] = {" > ${.TARGET}
@cat ${.CURDIR}/ftp.errors \
| grep -v ^# \
| sort \
| while read NUM CAT STRING; do \
echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
done >> ${.TARGET}
@echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ${.TARGET}
@echo "};" >> ${.TARGET}
httperr.h: http.errors ${.CURDIR}/Makefile
@echo "static struct fetcherr http_errlist[] = {" > ${.TARGET}
@cat ${.CURDIR}/http.errors \
| grep -v ^# \
| sort \
| while read NUM CAT STRING; do \
echo " { $${NUM}, FETCH_$${CAT}, \"$${STRING}\" },"; \
done >> ${.TARGET}
@echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> ${.TARGET}
@echo "};" >> ${.TARGET}
MLINKS+= fetch.3 fetchFreeURL.3
MLINKS+= fetch.3 fetchGet.3
MLINKS+= fetch.3 fetchGetFTP.3
MLINKS+= fetch.3 fetchGetFile.3
MLINKS+= fetch.3 fetchGetHTTP.3
MLINKS+= fetch.3 fetchGetURL.3
MLINKS+= fetch.3 fetchList.3
MLINKS+= fetch.3 fetchListFTP.3
MLINKS+= fetch.3 fetchListFile.3
MLINKS+= fetch.3 fetchListHTTP.3
MLINKS+= fetch.3 fetchListURL.3
MLINKS+= fetch.3 fetchMakeURL.3
MLINKS+= fetch.3 fetchParseURL.3
MLINKS+= fetch.3 fetchPut.3
MLINKS+= fetch.3 fetchPutFTP.3
MLINKS+= fetch.3 fetchPutFile.3
MLINKS+= fetch.3 fetchPutHTTP.3
MLINKS+= fetch.3 fetchPutURL.3
MLINKS+= fetch.3 fetchStat.3
MLINKS+= fetch.3 fetchStatFTP.3
MLINKS+= fetch.3 fetchStatFile.3
MLINKS+= fetch.3 fetchStatHTTP.3
MLINKS+= fetch.3 fetchStatURL.3
MLINKS+= fetch.3 fetchXGet.3
MLINKS+= fetch.3 fetchXGetFTP.3
MLINKS+= fetch.3 fetchXGetFile.3
MLINKS+= fetch.3 fetchXGetHTTP.3
MLINKS+= fetch.3 fetchXGetURL.3
.include <bsd.lib.mk>
Wir verwenden essentielle Cookies, damit diese Website funktioniert, und optionale Cookies, um den Komfort bei der Nutzung zu verbessern.
Siehe weitere Informationen und konfiguriere deine Einstellungen