summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Apply patch for issue 139fergus.henderson2014-04-021-1/+5
| | | | | | | <http://code.google.com/p/distcc/issues/detail?id=139>: add configure option --without-libiberty, to allow building distcc without GPL3 license encumbrance.
* Identify location of libiberty.hmandyke2014-03-031-0/+6
|
* Handle '--coverage' like '-fprofile-arcs' and '-ftest-coverage':fergus.henderson2014-02-271-1/+2
| | | | | fall back to compiling locally.
* GNU/Hurd also provides sendfile(2)mandyke2013-05-271-1/+1
| | | | * src/sendfile.c (sys_sendfile): Expose this function on GNU/Hurd, which provides the same interface as Linux.
* Add Copyright notice to some files.mandyke2013-05-102-4/+10
| | | Fixes issue 128
* Avoid potential dereference of uninitialized pointer.mandyke2013-05-101-1/+3
| | | Fixes issue 28
* zeroconf.h is also "Copyright (C) 2007 Lennart Poettering". See also: r526.mandyke2013-05-081-0/+2
|
* Support @FILE arguments correctly. Requires GNU libiberty.mandyke2013-05-081-0/+5
| | | Fixes issue 85
* Apply Ktonibud's patch for distcc issue 74fergus.henderson2012-05-161-10/+17
| | | | | | | | <http://code.google.com/p/distcc/issues/detail?id=74>: Return the host from backoff state, if local compilation returned the same result as remote one.
* Generalize dcc_{r,x}_argv routinesKamal Mostafa2012-04-207-17/+27
| | | | | | Generalize the dcc_{r,x}_argv routines so they can be used to transfer arbitrary array-of-strings tokens (useful for protocol hacking experiments; no functional change).
* Apply patch from Jérémie Koenig <jk@jk.fr.eu.org>:fergus.henderson2012-04-102-3/+14
| | | | | | | Fix for <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638258>: Distcc fails to build on hurd-i386 because it relies on PATH_MAX being defined.
* Fix for distcc issue 105 <http://code.google.com/p/distcc/issues/detail?id=105>Kamal Mostafa2012-04-051-0/+4
| | | | | : lsdistcc.c compile fails: variable 'nready' set but not used [-Werror]
* Fix for distcc issue 103 <http://code.google.com/p/distcc/issues/detail?id=103>:Kamal Mostafa2012-04-041-2/+25
| | | | | | | | hardcoded 60 second backoff period should be tunable Makes the backoff behavior tunable via a new env var DISTCC_BACKOFF_PERIOD. The default backoff remains set for 60 seconds.
* Fix for distcc issue 102 <http://code.google.com/p/distcc/issues/detail?id=102>:Kamal Mostafa2012-04-041-3/+8
| | | | | | | | "all servers busy" dcc_lock_pause is hardcoded at 1 sec, could be tunable. Makes the pause time tunable via a new env var DISTCC_PAUSE_TIME_MSEC. The default remains set for 1 second.
* Fix for distcc issue 96 <http://code.google.com/p/distcc/issues/detail?id=96>:fergus.henderson2012-04-041-0/+1
| | | | | build problem with -Werror due to ignoring return value from read().
* Fix for distcc issue 98 <http://code.google.com/p/distcc/issues/detail?id=98>:fergus.henderson2012-04-041-1/+4
| | | | | build problem with -Werror due to ignoring return value of 'chdir'.
* Fix gcc warning about variable 'ret' set but not used.fergus.henderson2012-02-061-2/+1
|
* Fix a build failure on an obscure platform --fergus.henderson2012-01-251-1/+1
| | | | | | | see http://code.google.com/p/distcc/issues/detail?id=93. Reviewed by Craig Silverstein.
* Add #include "config.h" in a couple of places,fergus.henderson2012-01-252-0/+2
| | | | | | | | | | | | to ensure that macros tested with #if/#ifdef are defined properly before they are tested. This is a partial application of a patch from pkts.ca for issue 80; the other parts of that patch conflict with a patch from Akim Demaille <demaille@gostai.com> which was committed in revision 715 <http://code.google.com/p/distcc/source/detail?r=715>.
* Apply patch from Jiri Palecek to fix issue 83fergus.henderson2011-11-011-0/+2
| | | | | | <http://code.google.com/p/distcc/issues/detail?id=83>: fix bug in handling of several consecutive -Wp,... options.
* Fix a couple of compiler warnings.fergus.henderson2011-10-211-1/+1
| | | | | Reviewed by Craig Silverstein.
* Fix warnings about unused return values. This includes some code changesfergus.henderson2011-04-0614-47/+113
| | | | | to do a better job of error checking.
* Fix indentation (layout changes only, no code changes).fergus.henderson2011-04-051-10/+10
|
* Apply patch from Ian Kumlien <Ian.Kumlien@gmail.com>,fergus.henderson2010-10-081-4/+4
| | | | | | | | to fix <http://code.google.com/p/distcc/issues/detail?id=70>. This patch fixes a compile error on Gentoo Linux due to "s6_addr" being #defined by a system header file and thus not available for use as a local variable name.
* Apply patch from Jeremy Murphy <jeremy.william.murphy@gmail.com>,fergus.henderson2010-10-086-22/+65
| | | | | | | tested and reviewed by cheepero@gmail.com, to address <http://code.google.com/p/distcc/issues/detail?id=36> "distcc-mon-gnome displays multiple rows for same host/slot".
* Some minor stylistic improvements:fergus.henderson2010-08-191-30/+29
| | | | | | | | | | use array indexing rather than pointer arithmetic; simplify for loops; change a parameter name to match comment describing it; eliminate trailing whitespace. Reviewed by Bob Ham
* Change directory back to the original server working directory after eachfergus.henderson2010-08-193-9/+23
| | | | | | | | | | | distcc-pump compilation. This fixes a bug where distcc-pump was changing to a directory and then deleting that directory and not changing back to the original directory. That caused problems when you used a server first in distcc-pump mode and then in distcc mode, and the compiler invoked a shell script. The compilation would succeed, but the shell would report a confusing warning ("shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory").
* Trivial fix for slight mistake in distccd debug message.fergus.henderson2010-06-291-1/+1
| | | | | Reviewed by Craig Silverstein.
* Apply patch from Ryan Burns <rburns@pixar.com>:fergus.henderson2010-05-045-12/+162
| | | | | | | add 1, 3, 5 minute averages of the number of children used on a server to the statistics collected by the stats server.
* Apply patch from Ryan Burns <rburns@pixar.com>:fergus.henderson2010-05-041-4/+19
| | | | | | add an environment variable DISTCC_SKIP_LOCAL_RETRY for skipping the local retry in case of a remote compilation failure.
* Apply patch from Akim Demaille <demaille@gostai.com>:fergus.henderson2010-03-021-6/+2
| | | | | | | * src/emaillog.c (dcc_maybe_send_email): Pacify GCC's warnings about format strings by getting rid of a useless temporary string.
* Apply patch from Akim Demaille <demaille@gostai.com>:fergus.henderson2010-03-021-2/+3
| | | | | | | * src/hosts.c (strndup): Use the standard signature (without static), so that we don't conflict with GCC's builtin signature. Now that it is not static, declare it, to avoid warnings.
* Add support for $DISTCC_IO_TIMEOUT.zhanglei2010-02-105-11/+38
| | | | Reviewed by Fergus Henderson.
* Make max_discrepancies_before_demotion configurable via ↵zhanglei2009-08-031-6/+26
| | | | DISTCC_MAX_DISCREPANCY environment variable.
* Apply patch from Ian.Baker@cern.ch:fergus.henderson2009-07-249-10/+308
| | | | | | | | | | | Optional Black/Whitelist Functionality. This patch is used to implement optional server-side access control through a specified black or whitelist file. This option is specified through a command line option. Revised by me (Fergus Henderson): fixed spelling error, added a comment.
* Define a GNU-compatible getline() implementation,fergus.henderson2009-07-243-0/+115
| | | | | | in case we don't have getline() available. Reviewed by Craig Silverstein.
* Fix compile errors for "make check" caused by distcc-v6-acl-2.patch.fergus.henderson2009-07-241-4/+5
|
* Apply patch from Ian.Baker@cern.ch:fergus.henderson2009-07-2318-2/+1204
| | | | | | | | | | | | | | | | | | | | | | | | | | | Optional GSS-API Functionality. This patch implements mutual authentication, out of sequence and replay detection using the GSS-API. The changes implemented are optional and are turned off by default. This option is specified to the client through an environment variable as is the name of the server principal to authenticate. Currently the server principal can be left unspecified and a default based on the host keytab will be used. This option is specified to the daemon through a command line option, with the name of the principal whose credentials the daemon should use specified as an environment variable. A simple handshake is exchanged between the client and server in order to prevent unecessary delays and protocol derailments when mixing authenticating and non-authenticating clients and servers. Revised based on review comments. GSS-API authentication is now implemented as a per host option. Revised further by me (Fergus Henderson) to fix a spelling error and to rename the per host option from ",gssapi" to ",auth".
* Apply distcc-v6-acl-2.patch from Bob Ham <rah@bash.sh>:fergus.henderson2009-07-224-69/+314
| | | | | | | | | - Implements IPv6 support for access control. - Restrict zeroconf advertisements to IPv4 if RFC2553 support isn't enabled. - Modifies the non-RFC2553 code to use inet_aton() instead of the RFC2553-specific inet_pton().
* Remove duplicate hosts from the zeroconf list.benizi2009-04-141-0/+24
| | | | | | | | Fixes issue 43 <http://code.google.com/p/distcc/issues/detail?id=43>. As mentioned in issue 34 <http://code.google.com/p/distcc/issues/detail?id=34>, hosts with both IPv4 and IPv6 addresses showed up twice if avahi is IPv6-enabled. So, filter out duplicates using the service name.
* (1) Layout/whitespace changes; the layout of this filefergus.henderson2009-04-101-64/+69
| | | | | | | | | | seems to have gotten mixed up when we changed from using tabs to using spaces. (2) Fix spacing in a log message. Reviewers: Craig Silverstein
* Fixed a portability issue that causes compilation to fail on 64 bit boxes.IanRichardBaker2009-03-061-2/+2
|
* Ensure that all ".c" files start with "#include <config.h>".fergus.henderson2009-02-177-1/+15
| | | | | | | | | | | | | | This will hopefully fix issue 39 <http://code.google.com/p/distcc/issues/detail?id=39>. Some header files were using #if statements that depended on macros defined in config.h without #including config.h first. The result was a compilation error, because "#if !HAVE_DECL_SNPRINTF" was evaluating to true because config.h hadn't been included, causing us to declare snprintf() when we shouldn't, leading to a conflict with the declaration in the standard header files. (The alternative solution would have been to add "#include <config.h>" to every header file that uses '#if'. I decided not to do that, just for consistency with the existing code.)
* IPv6 patch for Zeroconf and and IPv6 literals in hosts file.adshea2009-01-222-4/+19
| | | | | * Still needs configure flag masking for IPv6 literals * Needs some fix for zeroconf hosts that have both and IPv6 and IPv4 address
* "distcc --scan-includes" dumps core.akim.demaille2009-01-091-1/+19
| | | | | | | * src/distcc.c (main): Don't dump --help on the user on command line error, rather, return the `Try --help' message on stderr. Check that --scan-includes is given arguments.
* Document the --scan-includes option in the output of "distcc --help".fergus.henderson2009-01-051-21/+25
|
* Fix a silly mistake (missing "== 0" after strcmp() call)fergus.henderson2008-10-051-1/+1
| | | | | | | that broke the parsing of "-Wp,-MMD,..." options. This fixes <http://code.google.com/p/distcc/issues/detail?id=22>.
* Incorporate 01_distcc_man.dpatch from debian distribution.fergus.henderson2008-09-131-1/+2
| | | | | | | | | This patch adds documentation of all of the exit codes to the man page. Also add comment to exitcode.h reminding maintainers to update the man page. Also update the HTML versions of the man pages.
* Provides a simple shell API to the include server:fergus.henderson2008-09-118-7/+153
| | | | | | | add a new "--scan-includes" option to distcc which shows which headers distcc would send to the remote machine in pump mode, without actually compiling anything.
* Report a better error message if a host specification contains ",cpp"fergus.henderson2008-09-081-13/+18
| | | | | | | | | | | but not ",lzo". Previously, setting ",cpp" without ",lzo" would quietly set the protocol version to -1, which the server would then quietly reject (logging as "REJ_BAD_REQ"), and then the client would guess (poorly) at why the server had dropped the connection. Reviewed by Craig Silverstein.