Create a .bep file for Haikuporter to build v8 on Haiku Haiku
Status: Closed Time to complete: 72 hrs Mentors: Eugene Katashov, mmu_man, Siarzhuk Zharski Tags: C, C++, Javascript

This tasks requires creating a .bep file to allow Haikuporter to build from source code the listed package.  You will need a working installation of Haiku, this could be on real hardware or in a VM, and haikuporter which can be installed by following the install instructions at HaikuPorts

Some knowledge of C, C++ may or may not be required in order to complete this task.  Knowledge of the GNU autotools and/or cmake may also be helpful.  The package may or may not require some patching to get it to work on Haiku.  For these cases don't be afraid to ask for help.  Many compile issues can be figured out by reading through the various wiki pages at HaikuPorts.  Also google (or other web search engine) may be of help in finding solutions to build issues that you may run into, irc channel #haiku on freenode might also be of help.  Be sure to follow the correct format for creating your .bep file, including the license and copyright entries.

http://ports.haiku-files.org/ticket/659

If you cannot get it to build within 4 hours of trying then a .bep that is complete except for completing the build step can be accepted as well, just mark the STATUS entry as "Broken", as this one may require an extra effort to get working on Haiku.

Uploaded Work
File name/URL File size Date submitted
v8-2.0.bep 441 bytes December 10 2012 23:02 UTC
v8-2.0.bep 452 bytes December 10 2012 23:12 UTC
v8-3.15.11.bep 454 bytes December 11 2012 10:49 UTC
V8_amanda.bep 536 bytes December 20 2012 17:00 UTC
V8-3.14.5.3.bep 515 bytes December 21 2012 02:24 UTC
v8-r13067.bep 1.3 KB December 26 2012 11:31 UTC
Comments
Titi on December 9 2012 20:26 UTC Task Claimed

I would like to work on this task.

Scott McCreary on December 9 2012 20:31 UTC Task Assigned

This task has been assigned to Titi. You have 72 hours to complete this task, good luck!

Titi on December 10 2012 23:12 UTC Ready for review

The work on this task is ready to be reviewed.

mmu_man on December 11 2012 00:11 UTC wrong source

You obviously didn't even try to build it, the benchmarks-v2.zip file only contains javascript files of the benchmarks, not the source code for v8 itself. The sources are only available from the svn repository.


The build steps are taken from http://code.google.com/p/v8/source/browse/branches/bleeding_edge/build/README.txt but you actually missed some...


And the copyright seems wrong as well.

mmu_man on December 11 2012 00:11 UTC Task Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Titi on December 11 2012 10:49 UTC Ready for review

The work on this task is ready to be reviewed.

mmu_man on December 11 2012 12:09 UTC please test it before asking for a review

The best way to make sure it works is by actually trying it with haikuporter...


you'd have seen that even checking out sources won't work because putting the http url directly makes it try to wget it.


So please fix this. Check other .bep in the haikuports tree for how to do this. The Oricutron one specifies an svn checkout from http.


Also, the MD5 sum is useless when checking out from svn, leave it empty and commented out.


Besides, the build steps are still incorrect; you are colling a script that isn't there. Their README specifies it has to be checked out from a separate svn repository...


Do not hesitate to come and ask on IRC if you need help, but please at least test things before submitting them, as it wastes your time and ours too.

mmu_man on December 11 2012 18:30 UTC Task Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

mmu_man on December 11 2012 18:31 UTC progress ?

Forgot to set it for more work.


Did you make any progress on it ?


Don't wait to ask if you have difficulties.

Scott McCreary on December 11 2012 20:46 UTC Deadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Scott McCreary on December 11 2012 20:47 UTC added some extra time

If you need more time just ask.

Melange on December 16 2012 01:10 UTC Task Reopened

Melange has detected that the final deadline has passed and it has reopened the task.

Amanda Pereira on December 19 2012 21:51 UTC Task Claimed

I would like to work on this task.

mmu_man on December 19 2012 23:03 UTC Task Assigned

This task has been assigned to Amanda Pereira. You have 72 hours to complete this task, good luck!

Amanda Pereira on December 20 2012 17:01 UTC Ready for review

The work on this task is ready to be reviewed.

Scott McCreary on December 20 2012 18:25 UTC some more work needed

For the bep, you shouldn't tab over from the FIELD entries, within a field you use a single tab in most case, two if the line is continued with a \ as the end of the previous line.


For the COPYRIGHT you put in the copyright info for the package your are building, not your own info. 


On the configure line, make use of finddir, since hardcoding of pathnames makes it harder to move them later if Haiku were to change the location of this directory, and it make likely be changing at some point.


http://ports.haiku-files.org/wiki/FindDir


 


Does v8 build to a zip file if you use:


haikuporter -c -d v8


to build it?  If so then include the output of the terminal showing everything from where you type in the haikuporter command until the zip file it made at the end so we can review it.


Good work so far.


 


 

Scott McCreary on December 20 2012 18:25 UTC Task Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Scott McCreary on December 20 2012 18:28 UTC bep name

Almost forgot, the bep name should be the name of the package as it is listed on gentoo-portage.com, followed by -x.y.z.bep, where x.y.z is the version of the source code you are building from.


Here's the v8 entry from gentoo-portage:


http://gentoo-portage.com/dev-lang/v8


Also copy/paste the description from gentoo-portage's entry into the DESCRIPTION field.


 

Amanda Pereira on December 21 2012 02:25 UTC Ready for review

The work on this task is ready to be reviewed.

mmu_man on December 21 2012 23:57 UTC newlines

Some newlines are obviously missing from the latest .bep this likely wouldn't even work... did you really try it?


Also, the convention currently is to use lowercase for project names, so "v8" rather than "V8"...

mmu_man on December 21 2012 23:57 UTC Task Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Amanda Pereira on December 22 2012 03:11 UTC Claim Removed

The claim on this task has been removed, someone else can claim it now.

qxcv on December 26 2012 00:52 UTC Task Claimed

I would like to work on this task.

Richie Nyhus on December 26 2012 01:14 UTC Task Assigned

This task has been assigned to qxcv. You have 72 hours to complete this task, good luck!

Scott McCreary on December 26 2012 06:54 UTC testing

There's been some work on creating a bep for this recently posted to a trac ticket:


So for this task, review the bep and patch(es) on this ticket and test them out to verifty that they work.  Also check and see if they are any tests available and if so and a TEST section to the bep.


http://ports.haiku-files.org/ticket/659


Fix any fields that are not quite right, such as the COPYRIGHT one with the missing years.


 

qxcv on December 26 2012 11:30 UTC .bep file

This is the .bep on the Trac ticket but with the various typos fixed. I looked through the tests that failed, and it appears that most of them are thread-related, with the exception of the d8-os mjsunit tests which fail (innocuously, as the tests in question always fail as root) and the LogAccessor cctests (which I have not been able to determine a cause for).

qxcv on December 26 2012 11:31 UTC Ready for review

The work on this task is ready to be reviewed.

Scott McCreary on December 27 2012 07:05 UTC Task Closed

Congratulations, this task has been completed successfully.

Scott McCreary on December 27 2012 07:06 UTC committed

I've committed the bep.  Thanks for the testing and updates to the bep.