Commit Graph

11642 Commits

Author SHA1 Message Date
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
Charlie Fenton 76178d3b03 Mac: More sandbox security changes for symlinks: lchown is not available under OS 10.3.9
svn path=/trunk/boinc/; revision=14955
2008-03-21 11:55:12 +00:00
Charlie Fenton 8a4ad7b3dd Fix for symlinks: setprojectgrp calls lchown() instead of chown()
svn path=/trunk/boinc/; revision=14954
2008-03-21 09:36:06 +00:00
Charlie Fenton 22612dbaaf Mac: Update sandbox security for symlinks replacing xml soft links.
svn path=/trunk/boinc/; revision=14953
2008-03-20 23:44:05 +00:00
David Anderson 9de3ad8a9a - updated GeoIP stuff
svn path=/trunk/boinc/; revision=14951
2008-03-20 22:48:29 +00:00
Charlie Fenton b7e7e1cf1e Minor optimization
svn path=/trunk/boinc/; revision=14950
2008-03-20 14:20:02 +00:00
Charlie Fenton f65c9985b4 Better symbol display in Mac crash dumps; smaller mac executables; f ix bug in app_start.C.
svn path=/trunk/boinc/; revision=14949
2008-03-20 13:37:37 +00:00
David Anderson b2e9fca9bb - forgot to add new files
- scheduler: wreq.core_client_version was being computed in
    resend_lost_results() (which isn't necessarily called)
    but its value was used elsewhere.

svn path=/trunk/boinc/; revision=14948
2008-03-20 03:13:30 +00:00
David Anderson 5859b98fb8 - win fixes
svn path=/trunk/boinc/; revision=14947
2008-03-19 18:35:25 +00:00
David Anderson f9186d582b - client: fixes to the above. Need to use lstat() instead of stat()
so that we see the symlink, not what it's pointing to

svn path=/trunk/boinc/; revision=14946
2008-03-19 18:24:42 +00:00
David Anderson 5e0ca48b49 svn path=/trunk/boinc/; revision=14945 2008-03-19 16:56:34 +00:00
David Anderson 6ba8928537 - client (Unix): use symbolic links instead of XML link files.
This will allow applications to access shared libraries
    by their logical names,
    which simplifies things when you have multiple platforms,
    and the apps (or libraries) refer to shared libraries
    by names that don't include the platform.
    This shouldn't impact the API - boinc_resolve_filename()
    will open the file, see that it's not an XML link file,
    and the symbolic link will be used directly.
    At some point we can change boinc_resolve_filename() on Unix
    to be a no-op if the client is 6.2+
- client (Unix):
    Append the slot dir to LD_LIBRARY_PATH.

svn path=/trunk/boinc/; revision=14944
2008-03-19 16:54:36 +00:00
Charlie Fenton 0592fa868b Minor fix to release scripts
svn path=/trunk/boinc/; revision=14943
2008-03-19 11:33:19 +00:00
Charlie Fenton d64d6f6740 Client, Manager: for backtrace, save full unstripped executables as symbol tables, not .dSYM files; set all symbols visibility not hidden.
svn path=/trunk/boinc/; revision=14942
2008-03-19 11:17:57 +00:00
Charlie Fenton 79ba008ead Fix Mac crash backtrace code to work with OS 10.5; update coprocessor CUDA library code for Mac (not tested.)
svn path=/trunk/boinc/; revision=14941
2008-03-19 07:15:43 +00:00
David Anderson 4e9fbac5e0 - admin web: touch reread_db in manage_app_versions.php
- DB code: remove "is_high_priority" stuff.
- scheduler: merge find_app_version() into get_app_version().
    Have the latter memoize its results (both positive and negative).
    Have it call app_plan() for apps with nonempty plan_class.
- scheduler: first steps towards improved selectability of log messages.
    It will eventually be like the client,
    where you can select among various types of messages.
- feeder: if can't unlink the reread_db trigger file, exit
    (else we'd go into an infinite loop)

svn path=/trunk/boinc/; revision=14940
2008-03-18 21:22:44 +00:00
Rom Walton 15d267d987 - MGR: For Grid enabled views, ignore selection events when
saving and restoring selections.
    - MGR: Cleanup warnings in Grid views.
    
    clientgui/
        BOINCBaseView.cpp, .h
        BOINCGridCtrl.cpp
        ViewMessagesGrid.cpp
        ViewProjectsGrid.cpp
        ViewTransfersGrid.cpp
        ViewWorkGrid.cpp

svn path=/trunk/boinc/; revision=14938
2008-03-18 18:19:49 +00:00
Rom Walton 83ac347dc7 Quick Updates
svn path=/trunk/boinc/; revision=14937
2008-03-18 16:17:17 +00:00
Rom Walton bb876c150c - MGR: Fix a crash in the simple GUI.
NOTE: Do not use the at() function on a vector unless you
        also use a try/catch handler.
    - MGR: Remove code duplication 
      
    clientgui/
        sg_ClientStateIndicator.h
        sg_ProgressBar.cpp, .h
        sg_ViewTabPage.cpp

svn path=/trunk/boinc/; revision=14936
2008-03-18 15:34:28 +00:00
Charlie Fenton 3fd4d8cd27 Compile fix.
svn path=/trunk/boinc/; revision=14933
2008-03-17 21:51:42 +00:00