From df3d30acd9bb756e2c65536ea115960d94d5edfe Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 17 Oct 2011 03:56:47 +0200 Subject: [PATCH 01/19] Version 1.6.0.0 --- indra/develop.py | 1 + indra/llcommon/llversionviewer.h | 6 +++--- indra/newview/app_settings/settings.xml | 2 +- indra/newview/llstartup.cpp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/indra/develop.py b/indra/develop.py index 03d1b19bd..7e1d3f1ba 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -749,6 +749,7 @@ class CygwinSetup(WindowsSetup): setup_platform = { 'darwin': DarwinSetup, 'linux2': LinuxSetup, + 'linux3': LinuxSetup, 'win32' : WindowsSetup, 'cygwin' : CygwinSetup } diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h index ba2e3f542..d98ef327f 100644 --- a/indra/llcommon/llversionviewer.h +++ b/indra/llcommon/llversionviewer.h @@ -34,9 +34,9 @@ #define LL_LLVERSIONVIEWER_H const S32 LL_VERSION_MAJOR = 1; -const S32 LL_VERSION_MINOR = 5; -const S32 LL_VERSION_PATCH = 10; -const S32 LL_VERSION_BUILD = 1; +const S32 LL_VERSION_MINOR = 6; +const S32 LL_VERSION_PATCH = 0; +const S32 LL_VERSION_BUILD = 0; const char * const LL_CHANNEL = "Singularity"; diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 3cb5445cd..5234b8f3e 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -436,7 +436,7 @@ Type String Value - secondlife + Second Life VivoxLicenseAccepted diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index ba88d237a..11e310cb9 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -372,7 +372,7 @@ bool idle_startup() static U64 first_sim_handle = 0; static LLHost first_sim; static std::string first_sim_seed_cap; - static U32 first_sim_size_x = 256; + static U32 first_sim_size_x = 256; static U32 first_sim_size_y = 256; static LLVector3 initial_sun_direction(1.f, 0.f, 0.f); From f3c8419de8d410fb505eeaa488df67e55566394e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 18 Oct 2011 04:15:08 +0200 Subject: [PATCH 02/19] GCC 4.3 wasn't happy --- indra/llplugin/llpluginprocessparent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index 6ba2f323b..685485fc1 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -409,7 +409,7 @@ void LLPluginProcessParent::idle(void) cmd << gdb_path << " -n /proc/" << mProcess.getProcessID() << "/exe " << mProcess.getProcessID(); typedef boost::tokenizer< boost::escaped_list_separator< - char>, typename std::basic_string< + char>, std::basic_string< char>::const_iterator, std::basic_string > tokenizerT; @@ -418,7 +418,7 @@ void LLPluginProcessParent::idle(void) boost::escaped_list_separator< char >("\\", " ", "'\"")); std::vector< std::basic_string > tokens; - for (typename tokenizerT::iterator + for (tokenizerT::iterator cur_token(tok.begin()), end_token(tok.end()); cur_token != end_token; ++cur_token) { if (!cur_token->empty()) From 9c4d50eda3a287b92900491da43f513217e78fdd Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 18 Oct 2011 04:16:17 +0200 Subject: [PATCH 03/19] Fix adding foreign grids --- indra/newview/hippopanelgrids.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/indra/newview/hippopanelgrids.cpp b/indra/newview/hippopanelgrids.cpp index f64a7466d..d3cc7a4e2 100644 --- a/indra/newview/hippopanelgrids.cpp +++ b/indra/newview/hippopanelgrids.cpp @@ -294,12 +294,11 @@ bool HippoPanelGridsImpl::saveCurGrid() { HippoGridInfo *gridInfo = 0; - if (mState == NORMAL) { - - gridInfo = gHippoGridManager->getGrid(mCurGrid); - gridInfo->retrieveGridInfo(); - refresh(); - } else if ((mState == ADD_NEW) || (mState == ADD_COPY)) { + gridInfo = gHippoGridManager->getGrid(mCurGrid); + gridInfo->retrieveGridInfo(); + refresh(); + + if ((mState == ADD_NEW) || (mState == ADD_COPY)) { // check nickname std::string gridname = childGetValue("gridname"); From 142427b3e141c685960b12d056c10959f54ca70e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Tue, 18 Oct 2011 04:17:31 +0200 Subject: [PATCH 04/19] Version 1.6.0(1) --- indra/llcommon/llversionviewer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h index d98ef327f..edfd9c1e3 100644 --- a/indra/llcommon/llversionviewer.h +++ b/indra/llcommon/llversionviewer.h @@ -36,7 +36,7 @@ const S32 LL_VERSION_MAJOR = 1; const S32 LL_VERSION_MINOR = 6; const S32 LL_VERSION_PATCH = 0; -const S32 LL_VERSION_BUILD = 0; +const S32 LL_VERSION_BUILD = 1; const char * const LL_CHANNEL = "Singularity"; From ef54491760a6c66ba18b385ca40f4a4d9e9c0500 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Wed, 19 Oct 2011 05:33:09 +0200 Subject: [PATCH 05/19] GCC 4.6.1 fix --- indra/llcommon/llsdserialize.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp index fb5fb7cad..103f3b247 100644 --- a/indra/llcommon/llsdserialize.cpp +++ b/indra/llcommon/llsdserialize.cpp @@ -1454,9 +1454,12 @@ S32 LLSDBinaryFormatter::format(const LLSD& data, std::ostream& ostr, U32 option } case LLSD::TypeUUID: + { ostr.put('u'); - ostr.write((const char*)(&(data.asUUID().mData)), UUID_BYTES); + LLUUID value = data.asUUID(); + ostr.write((const char*)(&value.mData), UUID_BYTES); break; + } case LLSD::TypeString: ostr.put('s'); @@ -2173,4 +2176,4 @@ bool unzip_llsd(LLSD& data, std::istream& is, S32 size) free(result); return true; } -#endif //MESH_ENABLED \ No newline at end of file +#endif //MESH_ENABLED From 6c19346855d99c18a74e81fec01261d1472c1a19 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 20 Oct 2011 13:09:30 +0200 Subject: [PATCH 06/19] Bug fixing the repackager --- repackage.sh | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/repackage.sh b/repackage.sh index 5de6ea4c7..c8f6b401c 100755 --- a/repackage.sh +++ b/repackage.sh @@ -15,6 +15,10 @@ LIBPATH="" INCPATH="" PWD=`pwd` +if [ -z "$1" ]; then + usage +fi + shopt -s nocasematch case "$1" in --windows|-w|windows|win) @@ -40,6 +44,7 @@ case "$1" in INCPATH="libraries/x86_64-linux/include" ;; *) + echo ERROR: No mode specified usage ;; esac @@ -51,14 +56,14 @@ case "$2" in ;; esac -test -n "$2" && FILEIN=`readlink -e $2` -test -n "$3" && FILEOUT=`readlink -f $3` - -if [ -z $FILEIN ]; then +FILEIN=$2 +if [ -z "$FILEIN" ]; then + echo ERROR: No input file specified usage fi -if [ -z $FILEOUT ]; then +test -n "$3" && FILEOUT=`readlink -f $3` +if [ -z "$FILEOUT" ]; then FILEOUT=`readlink -m package.tar.bz2` fi @@ -66,7 +71,7 @@ mkdir "$TMP" cd "$TMP" case "$FILEIN" in - http\:\/\/|https\:\/\/) + http\:\/\/*|https\:\/\/*) echo " Downloading..." wget "$FILEIN" -O package.tar.bz2 echo " Unpacking..." @@ -74,6 +79,11 @@ case "$FILEIN" in rm package.tar.bz2 ;; *) + FILEIN=`readlink -e $FILEIN` + if [ -z "$FILEIN" ]; then + echo ERROR: Input file not found + usage + fi echo " Unpacking..." tar -xjvf "$FILEIN" ;; From 95634e82765179cd1d24f1f30f4be2046f807d37 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 20 Oct 2011 13:10:11 +0200 Subject: [PATCH 07/19] Don't know why exactly this works, but fixes noshader and seems safe. --- indra/newview/lldrawpoolbump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 20d169853..f5274e462 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -794,7 +794,7 @@ void LLDrawPoolBump::endBump(U32 pass) { // Disable texture blending on unit 1 gGL.getTexUnit(1)->activate(); - //gGL.getTexUnit(1)->disable(); + gGL.getTexUnit(1)->disable(); gGL.getTexUnit(1)->setTextureBlendType(LLTexUnit::TB_MULT); // Disable texture blending on unit 0 From 3e12fe15bc7d5cf8582b1c99b1d177be7d49a8ff Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 20 Oct 2011 18:44:21 +0200 Subject: [PATCH 08/19] Version 1.6.0(2) --- indra/llcommon/llversionviewer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llcommon/llversionviewer.h b/indra/llcommon/llversionviewer.h index edfd9c1e3..ca23c9637 100644 --- a/indra/llcommon/llversionviewer.h +++ b/indra/llcommon/llversionviewer.h @@ -36,7 +36,7 @@ const S32 LL_VERSION_MAJOR = 1; const S32 LL_VERSION_MINOR = 6; const S32 LL_VERSION_PATCH = 0; -const S32 LL_VERSION_BUILD = 1; +const S32 LL_VERSION_BUILD = 2; const char * const LL_CHANNEL = "Singularity"; From 06ff562cd279f596d5709f46931e6bb5e726a72e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 20 Oct 2011 20:23:29 +0200 Subject: [PATCH 09/19] Added Mobility Radeon 6 series --- indra/newview/gpu_table.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/gpu_table.txt b/indra/newview/gpu_table.txt index c489f2acd..8f22b1c5e 100644 --- a/indra/newview/gpu_table.txt +++ b/indra/newview/gpu_table.txt @@ -99,6 +99,14 @@ ATI Mobility Radeon HD 5500 .*ATI.*Mobility *HD *55.* 2 1 ATI Mobility Radeon HD 5600 .*ATI.*Mobility *HD *56.* 2 1 ATI Mobility Radeon HD 5700 .*ATI.*Mobility *HD *57.* 3 1 ATI Mobility Radeon HD 5800 .*ATI.*Mobility *HD *58.* 3 1 +ATI Mobility Radeon HD 6200 .*ATI.*Mobility.*HD *62.* 3 1 +ATI Mobility Radeon HD 6300 .*ATI.*Mobility.*HD *63.* 3 1 +ATI Mobility Radeon HD 6400M .*ATI.*Mobility.*HD *64.* 3 1 +ATI Mobility Radeon HD 6500M .*ATI.*Mobility.*HD *65.* 3 1 +ATI Mobility Radeon HD 6600M .*ATI.*Mobility.*HD *66.* 3 1 +ATI Mobility Radeon HD 6700M .*ATI.*Mobility.*HD *67.* 3 1 +ATI Mobility Radeon HD 6800M .*ATI.*Mobility.*HD *68.* 3 1 +ATI Mobility Radeon HD 6900M .*ATI.*Mobility.*HD *69.* 3 1 ATI Mobility Radeon X1xxx .*ATI.*Mobility.*X1.* 0 1 ATI Mobility Radeon X2xxx .*ATI.*Mobility.*X2.* 0 1 ATI Mobility Radeon X3xx .*ATI.*Mobility.*X3.* 1 1 From 4606c7512e46fad7289e735bfae83c703610091e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Fri, 21 Oct 2011 04:54:55 +0200 Subject: [PATCH 10/19] Icon mishaps, thx Cryo for spotting. +Standalone fix --- indra/llplugin/llplugininstance.cpp | 2 +- indra/newview/llinventoryicon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llplugin/llplugininstance.cpp b/indra/llplugin/llplugininstance.cpp index a8da3051a..15e1d347a 100644 --- a/indra/llplugin/llplugininstance.cpp +++ b/indra/llplugin/llplugininstance.cpp @@ -90,7 +90,7 @@ int LLPluginInstance::load(std::string &plugin_file) #if LL_LINUX && defined(LL_STANDALONE) void *dso_handle = dlopen(plugin_file.c_str(), RTLD_NOW | RTLD_GLOBAL); int result = (!dso_handle)?APR_EDSOOPEN:apr_os_dso_handle_put(&mDSOHandle, - dso_handle, AIAPRRootPool::get()()); + dso_handle, LLAPRRootPool::get()()); #else int result = apr_dso_load(&mDSOHandle, plugin_file.c_str(), diff --git a/indra/newview/llinventoryicon.cpp b/indra/newview/llinventoryicon.cpp index 1580dad5e..5fd0af2d0 100644 --- a/indra/newview/llinventoryicon.cpp +++ b/indra/newview/llinventoryicon.cpp @@ -68,7 +68,7 @@ LLIconDictionary::LLIconDictionary() addEntry(LLInventoryIcon::ICONNAME_BODYPART_HAIR, new IconEntry("inv_item_hair.tga")); addEntry(LLInventoryIcon::ICONNAME_BODYPART_EYES, new IconEntry("inv_item_eyes.tga")); - addEntry(LLInventoryIcon::ICONNAME_CLOTHING_SHIRT, new IconEntry("inv_item_skirt.tga")); + addEntry(LLInventoryIcon::ICONNAME_CLOTHING_SHIRT, new IconEntry("inv_item_shirt.tga")); addEntry(LLInventoryIcon::ICONNAME_CLOTHING_PANTS, new IconEntry("inv_item_pants.tga")); addEntry(LLInventoryIcon::ICONNAME_CLOTHING_SHOES, new IconEntry("inv_item_shoes.tga")); addEntry(LLInventoryIcon::ICONNAME_CLOTHING_SOCKS, new IconEntry("inv_item_socks.tga")); @@ -82,7 +82,7 @@ LLIconDictionary::LLIconDictionary() addEntry(LLInventoryIcon::ICONNAME_ANIMATION, new IconEntry("inv_item_animation.tga")); addEntry(LLInventoryIcon::ICONNAME_GESTURE, new IconEntry("inv_item_gesture.tga")); - addEntry(LLInventoryIcon::ICONNAME_CLOTHING_PHYSICS, new IconEntry("inv_item_physics.tga")); + addEntry(LLInventoryIcon::ICONNAME_CLOTHING_PHYSICS, new IconEntry("inv_item_physics.png")); addEntry(LLInventoryIcon::ICONNAME_LINKITEM, new IconEntry("inv_link_item.tga")); addEntry(LLInventoryIcon::ICONNAME_LINKFOLDER, new IconEntry("inv_link_folder.tga")); From c3b1bf4b7684b04e60daa67bc062803962351fcc Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Fri, 21 Oct 2011 05:35:33 +0200 Subject: [PATCH 11/19] Actually, tga loads more rapidly for some reason --- indra/newview/llinventoryicon.cpp | 2 +- .../skins/default/textures/inv_item_physics.tga | Bin 0 -> 1042 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 indra/newview/skins/default/textures/inv_item_physics.tga diff --git a/indra/newview/llinventoryicon.cpp b/indra/newview/llinventoryicon.cpp index 5fd0af2d0..124dfd7cc 100644 --- a/indra/newview/llinventoryicon.cpp +++ b/indra/newview/llinventoryicon.cpp @@ -82,7 +82,7 @@ LLIconDictionary::LLIconDictionary() addEntry(LLInventoryIcon::ICONNAME_ANIMATION, new IconEntry("inv_item_animation.tga")); addEntry(LLInventoryIcon::ICONNAME_GESTURE, new IconEntry("inv_item_gesture.tga")); - addEntry(LLInventoryIcon::ICONNAME_CLOTHING_PHYSICS, new IconEntry("inv_item_physics.png")); + addEntry(LLInventoryIcon::ICONNAME_CLOTHING_PHYSICS, new IconEntry("inv_item_physics.tga")); addEntry(LLInventoryIcon::ICONNAME_LINKITEM, new IconEntry("inv_link_item.tga")); addEntry(LLInventoryIcon::ICONNAME_LINKFOLDER, new IconEntry("inv_link_folder.tga")); diff --git a/indra/newview/skins/default/textures/inv_item_physics.tga b/indra/newview/skins/default/textures/inv_item_physics.tga new file mode 100644 index 0000000000000000000000000000000000000000..f1d0e5f19f6378ccbbd4d7713f73ee5fe4815223 GIT binary patch literal 1042 zcma))JxIe)5XXZ!=wPXXgHl8sT(T&FL!4Zs(4n~4rAra()UkemlsdU|5K(Xu>FUrb zqFJQ6h)~HQNFa)}wibDdgWoNA=UvQ`1e(^sKld*0e*b%qizIbO;_*vA*?=`8=^ zqg(;uTh@!&>cj2DQ}t1;-0NCdzX~7RaL+Rk8{;Dx!PjcFAc{HULp~z*osrmC9)=k{ z2O+);(>w!HW)>#RW0)|DfF1>^M}GfAZ!jk-*5r|TSuBa1qUbG~uYha-#m%15m2lgB)cvSu2M)sLEa2rr6Qs}VC?e22lqPZ-$wg1*!@^v>6zC)9xM zaT8j3AiH^a_qHzXLDBY<$41R`E7tBGELWd548vfms#>!kKiX@@QVl)WGqR9KvP61| zEv>9-n0x*Mzl8fO%d)a}R-tpV)ON1v?A(MqL*AMj@w=xb&At1-4A~@#<`-;6`~V6P BHrfCH literal 0 HcmV?d00001 From 743449e635419528db67e3214c42536146667633 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sat, 22 Oct 2011 02:53:10 +0200 Subject: [PATCH 12/19] Tinies, custom OpenAL on Linux --- LICENSES/openal-linden.txt | 4 ---- .../default/xui/en-us/panel_preferences_ascent_vanity.xml | 2 +- indra/newview/viewer_manifest.py | 2 +- install.xml | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 LICENSES/openal-linden.txt diff --git a/LICENSES/openal-linden.txt b/LICENSES/openal-linden.txt deleted file mode 100644 index ea1595f5f..000000000 --- a/LICENSES/openal-linden.txt +++ /dev/null @@ -1,4 +0,0 @@ -This is a modified version of openal-soft from GIT (56cc03860378e2758370b773b2a6f1b4e086b49a). -The modified source which this was built from is available here: -http://viewer-source-downloads.s3.amazonaws.com/install_pkgs/openal-soft-linden-56cc03860378e2758370b773b2a6f1b4e086b49a.tar.bz2 - diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml index a34e943bf..f5897c16d 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml @@ -31,7 +31,7 @@ width="400" /> + follows="left|top|right|bottom" label="Tags/Colors" name="TagsColors"> linux md5sum - c8223e9454223e3d519fe40d71c3ddd2 + 01cff9a641348bb15856b808a4e9ccc6 url - http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/openal-linux-20091216-56cc0386.tar.bz2 + https://github.com/downloads/siana/SingularityViewer/openal-linux-111022.tar.bz2 linux64 From c2a4951f20c090700f2dc4149a935393ea1fb963 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Wed, 26 Oct 2011 21:35:19 +0200 Subject: [PATCH 13/19] Fix grid info fetch ignoring certificates --- indra/newview/hipporestrequest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/indra/newview/hipporestrequest.cpp b/indra/newview/hipporestrequest.cpp index 52adf6c39..8953dec87 100644 --- a/indra/newview/hipporestrequest.cpp +++ b/indra/newview/hipporestrequest.cpp @@ -327,6 +327,7 @@ int HippoRestRequest::getBlocking(const std::string &url, std::string *result) curl_easy_setopt(curlp, CURLOPT_NOSIGNAL, 1); // don't use SIGALRM for timeouts curl_easy_setopt(curlp, CURLOPT_TIMEOUT, 5); // seconds + curl_easy_setopt(curlp, CURLOPT_CAINFO, gDirUtilp->getCAFile().c_str()); curl_easy_setopt(curlp, CURLOPT_WRITEFUNCTION, curlWrite); curl_easy_setopt(curlp, CURLOPT_WRITEDATA, result); From c5abde1616fb4eed8e1d147392df99f97767231c Mon Sep 17 00:00:00 2001 From: Brett Murphy Date: Thu, 8 Sep 2011 20:46:40 +1000 Subject: [PATCH 14/19] added ctrl-alt-p option for phantom avatar --- indra/newview/llviewermenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index 481f6538c..aff062881 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -808,7 +808,7 @@ void init_menus() menu->appendSeparator(); menu->append(new LLMenuItemCallGL( "Fake Away Status", &handle_fake_away_status, NULL)); menu->append(new LLMenuItemCallGL( "Force Ground Sit", &handle_force_ground_sit, NULL)); - menu->append(new LLMenuItemCallGL( "Phantom Avatar", &handle_phantom_avatar, NULL)); + menu->append(new LLMenuItemCallGL( "Phantom Avatar", &handle_phantom_avatar, NULL, NULL, 'P', MASK_CONTROL | MASK_ALT)); menu->appendSeparator(); menu->append(new LLMenuItemCallGL( "Animation Override...", &handle_edit_ao, NULL)); From 7227c01d79a1519919b981cc72908dc9f03ed35c Mon Sep 17 00:00:00 2001 From: Brett Murphy Date: Tue, 11 Oct 2011 09:23:24 +1100 Subject: [PATCH 15/19] updated install.xml with correct freetype package for mac-osx --- install.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.xml b/install.xml index 3cb340eea..c6d4d055b 100644 --- a/install.xml +++ b/install.xml @@ -408,9 +408,9 @@ darwin md5sum - a9ab0e2910e1a8fe06a2a42ffdc8b7da + 2849e9dd6f26294371a27197972fd1cf url - https://github.com/siana-osx/SingularityViewer/downloads/freetype-2.4.4-darwin-20110705.tar.bz2 + https://github.com/downloads/siana/SingularityViewer/freetype-2.4.4-darwin-20111010.tar.bz2 linux From 0281ac4afecd3f02c8f638666e9b7be1697f5409 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 27 Oct 2011 22:39:28 +0200 Subject: [PATCH 16/19] There is no glext prebuilt on OS X --- indra/cmake/OpenGL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/cmake/OpenGL.cmake b/indra/cmake/OpenGL.cmake index f8a113f65..a4e47a57d 100644 --- a/indra/cmake/OpenGL.cmake +++ b/indra/cmake/OpenGL.cmake @@ -1,7 +1,7 @@ # -*- cmake -*- include(Prebuilt) -if (NOT STANDALONE) +if (NOT STANDALONE OR DARWIN) use_prebuilt_binary(glext) # possible glh_linear should have its own .cmake file instead #use_prebuilt_binary(glh_linear) From e06d0b2e70e35354bb90e893859a9256ba5ad31e Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 27 Oct 2011 23:02:30 +0200 Subject: [PATCH 17/19] Whoopsie! --- indra/cmake/OpenGL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/cmake/OpenGL.cmake b/indra/cmake/OpenGL.cmake index a4e47a57d..c712a93e5 100644 --- a/indra/cmake/OpenGL.cmake +++ b/indra/cmake/OpenGL.cmake @@ -7,4 +7,4 @@ if (NOT STANDALONE OR DARWIN) #use_prebuilt_binary(glh_linear) # actually... not any longer, it's now in git -SG set(GLEXT_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include) -endif (NOT STANDALONE) +endif () From cc45a24afff6abc6f716cab80371c3cfe399ea75 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Fri, 28 Oct 2011 02:05:09 +0200 Subject: [PATCH 18/19] Darwin doesn't use extension function pointer mechanism --- indra/cmake/OpenGL.cmake | 2 +- indra/llrender/llgl.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/cmake/OpenGL.cmake b/indra/cmake/OpenGL.cmake index c712a93e5..5ba730c4a 100644 --- a/indra/cmake/OpenGL.cmake +++ b/indra/cmake/OpenGL.cmake @@ -1,7 +1,7 @@ # -*- cmake -*- include(Prebuilt) -if (NOT STANDALONE OR DARWIN) +if (NOT (STANDALONE OR DARWIN)) use_prebuilt_binary(glext) # possible glh_linear should have its own .cmake file instead #use_prebuilt_binary(glh_linear) diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 48fea8e87..57c229a12 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -68,6 +68,7 @@ BOOL gGLActive = FALSE; std::ofstream gFailLog; +#if !LL_DARWIN //Darwin doesn't load extensions that way! -SG void* gl_get_proc_address(const char *pStr) { void* pPtr = (void*)GLH_EXT_GET_PROC_ADDRESS(pStr); @@ -77,6 +78,7 @@ void* gl_get_proc_address(const char *pStr) } #undef GLH_EXT_GET_PROC_ADDRESS #define GLH_EXT_GET_PROC_ADDRESS(p) gl_get_proc_address(p) +#endif //!LL_DARWIN void ll_init_fail_log(std::string filename) { From f386fc75dff23164386c8185e21fb48f6ccfcb36 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 31 Oct 2011 05:24:00 +0100 Subject: [PATCH 19/19] Did SELinux complain about THIS? --- indra/llplugin/llpluginsharedmemory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/llplugin/llpluginsharedmemory.cpp b/indra/llplugin/llpluginsharedmemory.cpp index 883d7b634..56a6fe1c9 100644 --- a/indra/llplugin/llpluginsharedmemory.cpp +++ b/indra/llplugin/llpluginsharedmemory.cpp @@ -277,6 +277,14 @@ LLPluginSharedMemoryPlatformImpl::~LLPluginSharedMemoryPlatformImpl() bool LLPluginSharedMemory::map(void) { + llassert(mSize); + if (!mSize) + { + LL_DEBUGS("Plugin") << "Tried to mmap zero length" << LL_ENDL; + return false; + } + llassert(mImpl->mSharedMemoryFD != -1); + llassert(fcntl(mImpl->mSharedMemoryFD, F_GETFL) != -1); mMappedAddress = ::mmap(NULL, mSize, PROT_READ | PROT_WRITE, MAP_SHARED, mImpl->mSharedMemoryFD, 0); if(mMappedAddress == NULL) {