Commit graph

118 commits

Author SHA1 Message Date
joerg
20fb046c57 Add explicit sh invocation in case the checkout is missing the
executable bit on errlist.sh.
2013-10-03 01:25:51 +00:00
ryoon
03bfcd7316 Fix build under GNU/kFreeBSD. 2013-07-26 10:21:41 +00:00
jperkin
a4064761fd Add -D_FILE_OFFSET_BITS=64 to the largefile flags.
Bump PKGREVISION.
2013-07-22 16:14:25 +00:00
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
rodent
aa1275dbab "This line belongs inside the .ifdef block." 2013-04-06 13:46:33 +00:00
obache
997574bf11 Cygwin also missing sin_len in sockaddr_in. 2013-02-10 12:33:22 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
asau
e059e7e469 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 17:18:07 +00:00
joerg
7e851cb392 Revert 1.43. 2012-10-21 09:00:16 +00:00
joerg
732c8e24f0 Use s6_addr32 if present as macro and fallback to memcpy otherwise. 2012-10-15 22:43:24 +00:00
joerg
c6ec1b5a05 Revert bogus warning flags. 2012-10-15 21:27:08 +00:00
sbd
301411fc5e libfetch-2.34:
On Linux libfetch needs to be built with '-fPIC' so that it can be used
  to build shared libraries.  (Fixes databases/openldap-client build.)
2012-10-09 02:48:04 +00:00
marino
b042d71cd2 net/libfetch: Fix for gcc4.7
When building with gcc4.7, libfetch fails with the following error:
  ftp.c: In function 'unmappedaddr':
  ftp.c:149:2: error: dereferencing type-punned pointer will break
               strict-aliasing rules [-Werror=strict-aliasing]
  cc1: all warnings being treated as errors
  *** Error code 1

The code is intentionally grouping an array of four uint8_t bytes into a
uint32_t word.  Add -Wno-strict-aliasing in makefile to fix build in gcc4.7.
2012-10-07 07:23:21 +00:00
joerg
b101354800 Define LIBFETCH_PRINTFLIKE for !gcc 2012-04-26 09:56:16 +00:00
joerg
1aa687331a Fix the last commit to not break bootstrap. 2012-04-07 15:27:21 +00:00
wiz
fb21057fa8 Fix build with clang. 2012-04-07 15:09:23 +00:00
sbd
cf4a5b3a63 If using fetch in FETCH_USING then fetch and libfetch cannot use checkperms. 2011-12-17 00:12:29 +00:00
joerg
c28eb2bda8 More help for stupid glibc headers. 2011-11-08 18:02:27 +00:00
tcort
a79418a202 Do not define HAVE_SA_LEN when __minix is defined per pkg/45039 2011-11-06 20:03:50 +00:00
marino
7e387c1361 PR#45210: Fix pkgsrc bootstrap with gcc 4.6
Libfetch build failure with gcc 4.6 is due to the a couple of assigned
variables not getting used.  This patch allows systems like Debian and
OpenIndiana to bootstrap pkgsrc.
2011-10-02 19:15:34 +00:00
joerg
9dbae8a995 Be a bit nicer to broken GCC array boundary checks. 2011-08-21 16:28:27 +00:00
agc
39c6b0bb03 Handle the case where tm_year is a long variable, from Benny Siegert
and Thorsten Glaser.  Part of the MirBSD support changes.
2011-01-23 18:37:31 +00:00
joerg
2878668528 libfetch-2.33:
Don't leak FTP connections on errors in fetch or if only stat is
requested. Reported via Xavier Chantry.
2010-08-20 17:56:49 +00:00
joerg
03e26a5ff9 libfetch-2.32:
Fix NULL dereference after failed calloc call. From Tavian Barnes.
2010-06-13 21:38:08 +00:00
joerg
b49a4476a5 Regen. 2010-04-22 14:11:16 +00:00
joerg
aa3f206f83 libfetch-2.31:
PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
2010-03-21 16:48:42 +00:00
joerg
00f142a763 Fix RCS ID. 2010-02-24 22:00:51 +00:00
joerg
760dc80ce2 Fix a variable reference in TCP_NOPUSH case. 2010-01-24 19:10:35 +00:00
joerg
90c546c90e Use the hard-core approach of killing SIGPIPE explicitly on
platforms that don't have MSG_NOSIGNAL like Solaris.
2010-01-24 16:54:23 +00:00
joerg
53b6ba40ee libfetch-2.30:
HTTP keep-alive support
2010-01-23 14:53:08 +00:00
joerg
8efe5cbf9f libfetch-2.29:
Push \r\n up to the users of fetch_putln and remove it. Use send instead
of write(v) to avoid SIGPIPE.
2010-01-23 14:25:26 +00:00
joerg
1790f5afd6 Remove is_active. 2010-01-23 13:39:42 +00:00
wiz
75e350f221 Fix typo in function names, bump date. 2010-01-22 13:56:45 +00:00
joerg
240552a2cf libfetch-2.28:
Revamp FTP connection cache. Move it to the common layer to be later
shared with HTTP (for persistent connection). The application controls
how much caching is desired. Drop the reference counting on connections.
Add a callback when the cached connection is dropped due to LRU.
Over all, this allows more than one session cached per host and sessions
cached to different servers.
2010-01-22 13:21:09 +00:00
wiz
579796a3e5 Recursive PKGREVISION bump for jpeg update to 8. 2010-01-17 12:02:03 +00:00
joerg
d15b3b46b0 libfetch-2.27:
The connection sharing didn't handle the case of active transfers
correctly and tried to close the connection in that case (PR 42607).
Correctly check if there is a transfer going on and just leave the
connection alone in that case.
2010-01-11 17:23:10 +00:00
joerg
a1188fd0de libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
2009-10-15 12:36:57 +00:00
joerg
1fac8ccbb5 libfetch-2.24:
Fix a bug in the line reading optimisation, which could get confused if
the byte following the new line is a NUL. Adresses Arch Linux problem
report #15845.

Do not reuse a FTP connection if there is currently a transfer active.
Some FTP servers hang on the NOOP command. Reported by Manuel Bouyer.
2009-08-16 20:31:29 +00:00
hasso
993f949798 It's not MAKE_JOBS safe. 2009-08-11 21:03:56 +00:00
joerg
1bec197458 Fix some lint warnings about G/C unused variables and changing a
variable type to match the return type of fetch_read.
2009-08-11 20:48:06 +00:00
tnn
6de948e3aa Drop PKGREVISION and bump to libfetch-2.24 instead. (in-tree package) 2009-08-06 14:38:18 +00:00
tnn
833925dd97 Bump the PKGREVISION for ftp.c change 2009-08-06 14:03:23 +00:00
tnn
fd1ca762e9 Fix strict aliasing issue which GCC 4.4 complained about.
While we know that "struct sockaddr_storage" has been engineered to alias
to all the sockaddr structs, the compiler does not know about this.
Thus, code like this may be unsafe to use:

struct sockaddr_storage ss;
struct sockaddr_in *sin = &ss;
sin->sin_port = 0; /* dereferencing here breaks ISO C aliasing rules */

A workaround is to wrap the struct in a union, e.g:
union anonymous {
  struct sockaddr_storage ss;
  struct sockaddr_in sin;
} u;
u.sin.sin_port = 0;
--
Approved by: joerg
2009-08-06 14:02:38 +00:00
joerg
efc8db63c7 Correctly regen the cat page. 2009-06-22 12:05:59 +00:00
joerg
ad3bbe6db7 Regen cat page. Helps Solaris. 2009-06-22 11:50:25 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
joerg
1f3e66ede2 Improve markup. 2009-03-16 18:11:39 +00:00
joerg
a63df80f2c libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
local files for if-modified-since.
2009-03-10 00:33:38 +00:00