Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 276615 - MAC OS: build patch for CommonBaseEvent on Mac osx
Summary: MAC OS: build patch for CommonBaseEvent on Mac osx
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Klicnik CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard: closed471
Keywords:
Depends on:
Blocks: 68111
  Show dependency tree
 
Reported: 2009-05-17 05:35 EDT by Spundun Bhatt CLA
Modified: 2016-05-05 10:51 EDT (History)
1 user (show)

See Also:


Attachments
build fix for darwin (1.41 KB, patch)
2009-05-17 05:36 EDT, Spundun Bhatt CLA
no flags Details | Diff
makefile fragment (887 bytes, text/plain)
2009-05-17 05:38 EDT, Spundun Bhatt CLA
no flags Details
unittesting shell script (5.68 KB, text/plain)
2009-05-17 05:42 EDT, Spundun Bhatt CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spundun Bhatt CLA 2009-05-17 05:35:31 EDT
This is a very simple patch to enable Mac OSX build of CommonBaseEvent native code which is needed to build AgentController.

I'm Submitting a patch and two files to go with it.

The patch adds a macro for detecting Darwin settings in the makefile. And it takes out reference to the nonstandard malloc.h . stdlib.h is the standard platform independent way of accessing the malloc functions (also there seem to be no reference to memory routines in that file).
Comment 1 Spundun Bhatt CLA 2009-05-17 05:36:34 EDT
Created attachment 136119 [details]
build fix for darwin
Comment 2 Spundun Bhatt CLA 2009-05-17 05:38:14 EDT
Created attachment 136120 [details]
makefile fragment

include.darwin needs to go in src.native/CommonBaseEvent directory
Comment 3 Spundun Bhatt CLA 2009-05-17 05:42:00 EDT
Created attachment 136121 [details]
unittesting shell script

This file goes in the src.native/CommonBaseEvent/UnitTest/scripts folder.

The way you invoke is UnitTest/scripts/UT_CBE_Darwin.sh -l packaging -a ut
Comment 4 Spundun Bhatt CLA 2009-05-17 05:52:04 EDT
Clarification, this is small patch by itself is enough to get CBE built and unittested sucessfully on Mac OSX intel. It was posted on #68111 by Pierre and updated by Scott. 
Comment 5 Kathy Chan CLA 2009-05-22 10:10:23 EDT
Thank you for contributing these patches.  It's great to have the community contribute to the porting of the AC on Mac OS. We'll take a look at the patch and get back to you.  

Could you please clarify on what kinds of scenarios you were able to do on MAC OS with all these patches?  May be you could open a top level bugzilla on porting the AC to MAC and we could continue our general discussion there?  These bugs can then be a dependency for that top level bugzilla.
Comment 6 Kathy Chan CLA 2009-05-25 17:02:43 EDT
Thanks!

Paul, please take a look at merging these MAC OS patches to the current code base in HEAD for post TPTP 4.6.
Comment 7 Jonathan West CLA 2009-05-27 10:59:26 EDT
Patch is good! Also, just an FYI that there is some legal stuff that needs to be completed before the patches are checked in. Kathy can provide you with the appropriate details.
Comment 8 Kathy Chan CLA 2009-07-13 15:02:48 EDT
Hi Spundun,

Could you please add a comment to this bugzilla to confirm that you authored 100% of the content submitted in this patch and you have the rights to donate the content to Eclipse under the EPL (http://eclipse.org/legal/epl-v10.html)? Note that the answer to the above question is part of the requirement for getting legal approval for checking in your contributions to CVS.
Comment 9 Spundun Bhatt CLA 2009-07-21 19:50:10 EDT
-> I Authorize all the work that I've done, to be used under EPL, by the project that this bugzilla currently belongs to.

-> It should be noted that some of the contribution has come under my time at work with my employer "University of Southern California, Information Sciences Institute". The official url is www.isi.edu . 

-> Please understand that my efforts were mostly spent in re-organizing existing patches and code. This code was already contributed to bug #68111 by other folks. I *did* contribute improvements to the existing patch, in terms of better organization, readability, and overall compatibility with current CVS head.
Comment 10 Spundun Bhatt CLA 2009-07-21 19:52:53 EDT
Also  I have gotten the approval of my employer for this contribution
Comment 11 Kathy Chan CLA 2009-07-28 14:26:34 EDT
Please add the following to the header of all files contributed by Spundun:

Contributed by Spundun Bhatt (spundun@gmail.com), with the support and encouragement of the University of Southern California Information Sciences Institute Distributed Scalable Systems Division.
Comment 12 Kathy Chan CLA 2009-07-29 12:34:23 EDT
Note that the CQ for Spundun's contribution to RFE bug 68111 (and it's child defects bug 276591 bug 276607, bug 276615 and bug 276640) have been approved by the Eclipse IPO under CQ 3397 (https://dev.eclipse.org/ipzilla/show_bug.cgi?id=3397).  The patch can be checked in now with the above update to the header of all files contributed by Spundun.
Comment 13 Jonathan West CLA 2009-08-06 21:55:52 EDT
Patch checked into HEAD. Thanks Spundun!
Comment 14 Jonathan West CLA 2009-08-06 21:56:40 EDT
Updating status.
Comment 15 Kathy Chan CLA 2010-11-18 18:50:22 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.