Commit Graph

11761 Commits

Author SHA1 Message Date
Charlie Fenton 89538db7c4 Mac: Fix new backtrace code for x86_64 Client and project applications
svn path=/trunk/boinc/; revision=15022
2008-04-07 07:55:26 +00:00
Frank Thomas d071562191 Began merging from Eric's manpage.
svn path=/trunk/boinc/; revision=15021
2008-04-06 15:04:47 +00:00
David Anderson d439244f3f - fixes for gcc 4.3
svn path=/trunk/boinc/; revision=15020
2008-04-06 03:15:36 +00:00
Rom Walton 064be92503 - WINSETUP: Fix the bug during uninstall where the data files were not
being migrated back to the executable directory.
        
    win_build/installerv2/
        BOINC.ism
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.rc
        CAMigrateBOINCData.cpp
    win_build/installerv2/redist/Windows/Win32/
        boinccas.dll
        boinccas95.dll

svn path=/trunk/boinc/; revision=15019
2008-04-04 19:51:22 +00:00
Eric J. Korpela 03b2b7e5ef - Added init.d script (boinc-client.in) and Makefile.am to install it.
- I got this from the Fedora package.  I have modified it to create the
      run directory if it does not exist, and to not run boinc as root.
      Checking for running processes needs to be improved.
    - boinc-client.in is still very linux centric and probably won't work on
      non-linux systems or under Bourne shell without significant changes.


svn path=/trunk/boinc/; revision=15018
2008-04-04 18:29:59 +00:00
Charlie Fenton f074fca337 Mac: Fix bugs in new backtrace code.
svn path=/trunk/boinc/; revision=15017
2008-04-04 12:32:28 +00:00
Charlie Fenton 907581140b Added a comment
svn path=/trunk/boinc/; revision=15016
2008-04-04 10:47:15 +00:00
Charlie Fenton 62b7599359 Mac: Fix bugs in new backtrace code
svn path=/trunk/boinc/; revision=15015
2008-04-04 10:39:22 +00:00
Charlie Fenton 5c3eb71f34 Mac: Update build documentation, move building project applications build instructions to a separate document (wiki page)
svn path=/trunk/boinc/; revision=15014
2008-04-04 05:32:16 +00:00
Charlie Fenton 5f0f607fd8 Mac: Update build documentation, move building project applications build instructions to a separate document (wiki page)
svn path=/trunk/boinc/; revision=15013
2008-04-04 05:22:26 +00:00
David Anderson e584774f08 - API: change boinc_resolve_filename() so that it detects symbolic links
and treats them as a special case.
    Also, if the virtual file doesn't exist (as in the standalone case)
    just return zero; otherwise if the app is running standalone
    and checks the return value, it will error out.

    NOTE: apps that check the return value of boinc_resolve_filename()
    won't work on 6.12+ under Unix;
    recompiling with this change will fix the problem.

svn path=/trunk/boinc/; revision=15012
2008-04-03 21:59:05 +00:00
Rom Walton 91ce899042 - WINSETUP: Inform MSI that a reboot is suggested after creation of
'boinc_master', 'boinc_project', 'boinc_admins', 'boinc_users',
        'boinc_projects'.
    - WINSETUP: Reread the INSTALLDIR property from the registry to
        determine if their is data to migrate. INSTALLDIR is changed to
        whereever the user wants to install BOINC now, whihc may be
        different then where it was in 5.10.
    - WINSETUP: If the user is running on Win2k but hasn't upgraded to
        SP4, inform them of the new requirement.
        
    win_build/installerv2/
        BOINC.ism
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.cpp, .h
        CACreateBOINCAccounts.cpp
        CACreateBOINCGroups.cpp
        CAMigrateBOINCData.cpp

svn path=/trunk/boinc/; revision=15011
2008-04-03 20:24:46 +00:00
Rom Walton 56776e5b0d - WINSETUP: Make sure the executable permissions are setup correctly
after the binaries are installed.
        
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.def
        boinccas.vcproj
        CASetPermissionBOINC.cpp, .h (Added)

svn path=/trunk/boinc/; revision=15010
2008-04-02 20:09:21 +00:00
David Anderson ad4708aec5 - server: when creating log dir, we were using wrong bit for sticky flag
svn path=/trunk/boinc/; revision=15009
2008-04-02 20:04:06 +00:00
David Anderson 3bb5abf0fa - scheduler: bug fix for case when app version XML is > 64KB
svn path=/trunk/boinc/; revision=15008
2008-04-02 19:57:41 +00:00
David Anderson b33276bee3 - compile fixes for gcc 4.x; fixes #592
svn path=/trunk/boinc/; revision=15007
2008-04-02 19:33:12 +00:00
David Anderson 8ba1188dd0 - Client/server protocol:
send <client_cap_plan_class/> if client understands
    app version plan class.
    The server checks for this instead of version > 6.11.
- clean up unix_util: .h files declare only (extern) interfaces;
    no reason for daemon() to be C

svn path=/trunk/boinc/; revision=15006
2008-04-02 19:05:08 +00:00
Charlie Fenton 291a192efe Graphics API: Add boinc_close_window_and_quit() API to UNIX / Mac lib.
svn path=/trunk/boinc/; revision=15004
2008-04-02 05:45:19 +00:00
Charlie Fenton f9b392b1df Mac: Fix compiler warning; Remove -fvisibility* compiler flags from boinc_cmd build
svn path=/trunk/boinc/; revision=15003
2008-04-02 05:34:10 +00:00
Charlie Fenton e6b0f3d529 Mac: Remove -fvisibility* compiler flags from BOINC library builds
svn path=/trunk/boinc/; revision=15002
2008-04-02 05:18:49 +00:00
Charlie Fenton db1a99da84 Mac: Remove -fvisibility* compiler flags from BOINC library builds
svn path=/trunk/boinc/; revision=14998
2008-04-02 00:17:07 +00:00
David Anderson 463050aa21 Fix of prior checkin for Win32 build
svn path=/trunk/boinc/; revision=14997
2008-04-01 22:20:20 +00:00
Eric J. Korpela 51e24737bd - Build fixes for non-Win32, non-Linux, non-MacOS systems.
- configure script:
        - Added checks for functions strdup(), strdupa(),
            daemon(), stat64(), strcasestr()
        - Fixed problems with kc_mysql.m4 and wxWidgets.m4 returning
            invalid CFLAGS and LIBS flags.
        - Fixed incorrect order of pthread flag checking on solaris.
    - New files: lib/unix_util.[Ch].  Currently contains implementation of
        daemon() for systems that lack it.
    - Access to binary files in /proc was failing on some systems when compiled
        with 64 bit file access.  Rearranged headers and defines to force 32bit
        file access in hostinfo_unix.C
    - all_tty_idle() didn't work as advertised on any system as far as I can
        tell.  I rewrote it to check ttys that are not named /dev/tty[1-9].
        The old implementation was modifying a statically allocated read-only
        string, (and crashing on some systems) anyway.
    - added implementation of non-standard function strcasestr() to str_util.C
    - added #define of MAP_FILE to shmem.C, because it is missing from most
        unix systems, (and is unnecessary on linux anyway).
    - other minor bug fixes.


svn path=/trunk/boinc/; revision=14996
2008-04-01 21:44:12 +00:00
David Anderson 64d7e70ddd - client (Unix): don't follow symbolic links when
computing directory size.
    This will avoid counting the size of executables and input files
    in slot directories.

svn path=/trunk/boinc/; revision=14995
2008-04-01 21:10:03 +00:00
David Anderson 5b92f66bf9 - client: finish and debug coprocessor support
- manager and GUI RPC: show plan class in app version string

svn path=/trunk/boinc/; revision=14994
2008-04-01 20:46:41 +00:00
Rom Walton 886037e1df - client: Per Carl's recommendation add CURLOPT_POST301 to the
list of curl options used so that the followups to redirects
        still post instead of get.
        
    client/
        http_curl.C

svn path=/trunk/boinc/; revision=14993
2008-04-01 18:31:16 +00:00
David Anderson 9fa202d8f0 - client: add coprocessor support: i.e., parse the list of coprocs
in <app_version>s from the server,
    keep track of the number free of each type of coproc,
    and don't run an app that needs more than are available.
    (not quite working yet)

svn path=/trunk/boinc/; revision=14992
2008-04-01 15:08:47 +00:00
Rom Walton 3e271dd36f Quick Updates
svn path=/trunk/boinc/; revision=14991
2008-03-31 19:32:43 +00:00
Rom Walton 02eedda8ef - WINSETUP: Explicitly set the permissions on the BOINC Data
directory structure during every install.

    win_build/
        boincmgr_curl.vcproj
    win_build/installerv2/
        BOINC.ism
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.def
        boinccas.rc
        boinccas.vcproj
    win_build/installerv2/redist/Windows/src/boinccas/
        CASetPermissionBOINCData.cpp, .h (Added)
        CASetPermissionBOINCDataProjects.cpp, .h (Added)
        CASetPermissionBOINCDataSlots.cpp, .h (Added)
        dirops.cpp, .h
        stdafx.h
    win_build/installerv2/redist/Windows/Win32/
        boinccas.dll
        boinccas95.dll

    - Tag for 6.1.12 release, all platforms
      boinc_core_release_6_1_12

    /
        configure.ac
        version.h

svn path=/trunk/boinc/; revision=14989
2008-03-31 19:05:27 +00:00
David Anderson 06c1d1392f - graphics API: add a boinc_close_window_and_quit() function
svn path=/trunk/boinc/; revision=14987
2008-03-31 17:03:00 +00:00
David Anderson 6af9f66b4e - DB/feeder/scheduler: change app_version.xml_doc from blob to mediumblob,
and change the correspending structure field from 64KB to 256KB
    (could increase this if needed).
    This is needed to handle app versions with lots (> 100) of files
- change LARGE_BLOB_SIZE to BLOB_SIZE a bunch of places
- Change COPROCS from vector<COPROC> to vector<COPROC*>.
    Otherwise the right virtual functions of COPROCs don't get called

svn path=/trunk/boinc/; revision=14986
2008-03-31 16:19:45 +00:00
Janus B. Kristensen 84c3e7fb53 Fixed the error message returned when the client exceed the max_wus_in_progress in the scheduler.
svn path=/trunk/boinc/; revision=14985
2008-03-30 08:09:29 +00:00
Janus B. Kristensen 699ece5668 Changed the error message to reflect that this limit is per-CPU not per-host.
svn path=/trunk/boinc/; revision=14984
2008-03-30 08:05:45 +00:00
David Anderson aa130ff063 svn path=/trunk/boinc/; revision=14983 2008-03-29 22:07:50 +00:00
David Anderson b91809d3c4 - try to get API to compile on Cygwin
svn path=/trunk/boinc/; revision=14982
2008-03-29 21:53:45 +00:00
David Anderson 61663b48f9 - client: debug coprocessor code
svn path=/trunk/boinc/; revision=14981
2008-03-28 21:22:48 +00:00
David Anderson ca516450e4 - some debugging code
svn path=/trunk/boinc/; revision=14980
2008-03-28 20:20:10 +00:00
David Anderson a0759e33de - scheduler: fix crash bug
svn path=/trunk/boinc/; revision=14979
2008-03-28 19:35:00 +00:00
David Anderson 4554fa5ce3 - server and client:
in server->client reply messages and in the client itself,
    move app-planning info from RESULT to APP_VERSION.
    This was necessary to allow anonymous platform info (app_info.xml)
    to specify avg_ncpus, etc.
    e.g., if someone wants to write a multithread version of SETI@home,
    or a GPU/CUDA version,
    they can run it using the anonymous platform mechanism
    and it will be scheduled correctly.

    If a server sends an existing APP_VERSION but with different
    app-planning info, the client will accept and use the new info.

svn path=/trunk/boinc/; revision=14978
2008-03-28 18:00:27 +00:00
Charlie Fenton 38c5fa8108 Mac: Show (make visible) Manager if displaying sandbox errror dialog
svn path=/trunk/boinc/; revision=14975
2008-03-28 11:18:35 +00:00
Charlie Fenton 0c4b110db8 Mac Sandbox: Fix bug setting permissions for symlinks, Show Manager if displaying sandbox error dialog.
svn path=/trunk/boinc/; revision=14974
2008-03-28 10:11:15 +00:00
David Anderson bacf9512d1 - web: on completion of team foundership transfer,
clear ping_user and ping_time fields
- web: fix outdated update_forum_activities script

svn path=/trunk/boinc/; revision=14973
2008-03-28 03:05:19 +00:00
David Anderson ee0ca3973c - scheduler: add "distinct_beta_apps" option;
lets users filter out beta apps as well as others
    (from Nicolas Maire)

svn path=/trunk/boinc/; revision=14971
2008-03-27 21:39:02 +00:00
David Anderson c9b563f066 - DB: workunit.rsc_bandwidth needed to go after mod_time
svn path=/trunk/boinc/; revision=14970
2008-03-27 20:46:31 +00:00
David Anderson 8ed16b90b0 - client: fix problems with queue shrinkage when projects
are running in EDF (from JM7)

svn path=/trunk/boinc/; revision=14969
2008-03-27 20:45:01 +00:00
David Anderson 2080d9dcc0 - Library: switch from lstat() back to stat() most places;
this broke some projects' back-end code.
    Make a new function (boinc_file_or_symlink_exists())
    for use by the client when clearing out slot dirs

svn path=/trunk/boinc/; revision=14968
2008-03-27 20:30:19 +00:00
David Anderson a55712dde0 compile fixes
svn path=/trunk/boinc/; revision=14967
2008-03-27 18:35:57 +00:00
David Anderson 13400c9516 Changes for multithread app support:
- update_versions: use __ (not :) as separator for plan class
- client: add plan_class to APP_VERSION;
    an app version is now identified by platform/version/plan_class
- client CPU scheduler: don't assume apps use 1 CPU
- client: add avg_ncpus, max_cpus, flops, cmdline to RESULT
- scheduler: implement app planning scheme

Other changes:

- client: if symlink() fails, make a XML soft link instead
    (for Unix running off a FAT32 FS)
- client: don't accept nonpositive resource share from AMS
- daemons and DB: check for error returns from enumerations,
    and exit if so.  Thus, if the MySQL server goes down,
    all the daemons will soon exit.
    The cron script will restart them every 5 min,
    so when the DB server comes back up so will the project.
- web: show empty max CPU % as ---
- API: get rid of all_threads_cpu_time option (always the case now)


svn path=/trunk/boinc/; revision=14966
2008-03-27 18:25:29 +00:00
Rom Walton 0a180fdfbc - WINSETUP: Hide the 'boinc_master' and 'boinc_project' user profiles after
the accounts have been created.
    - WINSETUP: Return the user rights to a known good state for 'boinc_master',
        'boinc_project', 'boinc_admins', 'boinc_users', and 'boinc_projects'.
        
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.cpp
        boinccas.def
        boinccas.vcproj
        CAGrantBOINCAdminsRights.cpp, .h (Added)
        CAGrantBOINCMasterRights.cpp
        CAGrantBOINCProjectRights.cpp
        CAGrantBOINCProjectsRights.cpp, .h (Added)
        CAGrantBOINCUsersRights.cpp, .h (Added)
        CAHideBOINCMasterProfile.cpp, .h (Added)
        CAHideBOINCProjectProfile.cpp, .h (Added)
        lsaprivs.cpp, .h
    win_build/installerv2/redist/Windows/Win32/
        boinccas.dll
        boinccas95.dll

svn path=/trunk/boinc/; revision=14964
2008-03-27 17:43:27 +00:00
Charlie Fenton a766db8c51 Mac: When invoked with the -lib argument, BOINC build script builds the utility application MakeAppIcon_h in addition to the three libraries
svn path=/trunk/boinc/; revision=14963
2008-03-27 09:44:59 +00:00