Haikuports: Add BeCheckPoint to HaikuArchives

Created on 14 Sep 2018  路  26Comments  路  Source: haikuports/haikuports

Most helpful comment

Heres the article that explains rsrc vs rdef files and much more https://www.haiku-os.org/documents/dev/compile_them_resources/

I'll do a reimport on the repo in a couples hours here.

All 26 comments

No license

Author: John Wiggins john@ubermensch.net

License is now MIT, when moving this to HaikuArchives be sure to add an MIT license file as well.

Please refer to https://github.com/jwiggins/BeOS-Projects instead of that zip file.

@jwiggins thanks for the update. Would you like us to move any to HaikuArchives, or are you open to Pull Requests for changes?

My repository is mainly for historical purposes, so PRs will likely be ignored. I have no means to test changes made to that code.

I'll try to add this to HaikuArchives as well. At least nothing seems broken here :sweat_smile:

My repo for HaikuArchives is here: https://github.com/bach5000/BeCheckPoint.
Is this ready to merge?

ok, it's there now, https://github.com/HaikuArchives/BeCheckPoint
change the .rsrc into an rdef and update the makefile so that it builds everything as expected. Also add the MIT license file in the root, so that github detects it correctly.

When I convert the BCP.rsrc file into an BCP.rdef file and change RSRCS to RDEFS in the Makefile, the terminal gives me an error:

rc: Error! -:68 syntax error, unexpected TYPECODE
/boot/system/develop/etc/makefile-engine:305: recipe for target 'objects.x86_64-cc7-release/BCP.rsrc' failed

I deleted the BCP.rsrc file after I replaced it with BCP.rdef, and I removed things in the RSRCS space in the Makefile. What am I doing wrong?

Hmm. Try reading through the rdef file and see if you spot anything. Try using rc to convert the rdef back to rsrc and see if that will compile.

@scottmc, ~wouldn't it be better to:~ I was wondering if we could:
a) create an empty repo
b) fetch https://github.com/jwiggins/BeOS-Projects
c) merge all its commits that changed any file inside the BeCheckPoint subdirectory
d) identify the commits which might have changed files outside of the BeCheckPoint subdirectory and amend them in order to discard what's outside of the BeCheckPoint subdirectory.

Hmm, it seems this is going to be a lot of trouble to import just the BeCheckPoint subdirectory of the original repo. (What I was trying to do was preserve @jwiggins's authorship.)

@jwiggins, would you prefer that the HaikuPorts recipe for BeCheckPoint use tarballs from your repo instead of https://github.com/HaikuArchives/BeCheckPoint ? This would mean that you would get PRs from time to time...

Hmm, maybe @bach5000 can grab https://github.com/jwiggins/BeOS-Projects/commit/58b61bb4f4fca42b2c838674548bc4dab1f4b8d9 and merge it into an empty repo and then do a git mv BeCheckPoint src and a git commit --amend in order to populate a new fresh repo to have it transferred to https://github.com/HaikuArchives/BeCheckPoint.
(I'm suggesting this but I'm ok with anything else that satisfies @jwiggins.)

I don't know that we ever want to make a recipe for this, at least not until it's been tested further and deemed safe to use on Haiku. It's more like sample code that others might get ideas from. It looks to have been be written in the R4 era, and may or may not be compatible with open tracker. That said, if you see an easy path to clone just this and import it to Haiku archives we can try that.

It builds ok with the source checkout from @bach5000 (with gcc2 and gcc7) :)

@scottmc has the right idea 馃槅

This program was written in the R3 era by a high school student with less than a year of programming experience. It was updated for a short period, but I still wouldn't consider it to be more than a demonstration piece.

Due to launch_daemon this will probably not work right anymore. Instead of killing applications it would need to stop them via launch_daemon. Then again with the launch_daemon this functionality should be redone to not need to kill anything at all and instead hook into the proper place during startup. Also, how does this interact with ctrl-alt-delete?

Regarding extracting the sources out of a larger repository: This is exactly what git filter-branch with a subdirectory filter does.

Once this task is completed we can add the launch-daemon info as a new issue/task. This might be an interesting exercise. See if this can be done and whether the result would be useful.

As for this task, Bach did mention being rusty with git. This might be a good test to try out git filter-branch and earn some foo points along the way.

Thanks @mmlr for suggesting git filter-branch. I gave it a glance but understood I would need much more time to understand how to use it correctly than what would take me to forge a new repo with the correct authorship :smile:
So here's my repo: https://github.com/fbrosson/BeCheckPoint

@bach5000, I've also preserved your authorship for the changes you did.

All options are open: We can continue with https://github.com/HaikuArchives/BeCheckPoint or remove it and do a new transfer from https://github.com/fbrosson/BeCheckPoint to https://github.com/HaikuArchives or try to use git filter-branch.

@fbrosson I think your repo should do. Thanks for your help 馃憤 馃槃

Do I still have to change the rsrc to rdef? Or do I just leave as it is (because it seems to work fine when I leave it) ? I did use the rc command as @scottmc had mentioned, but I still can't get it to work and keep getting the error mentioned above 鈽癸笍

And as for git filter-branch, I could try it out. It seems useful :)

@scottmc, the difference between my repo and the one that was transfered from @bach5000 is just that:

As said earlier, I'm ok with what is in https://github.com/HaikuArchives/BeCheckPoint right now. I created https://github.com/fbrosson/BeCheckPoint in case you would like redo a transfer.

@bach5000, I'm not familiar with the rsrc/rdef topic, so I would need to investigate... Let's hope another mentor can help you. (If you are stuck I can dig the topic later.)

@fbrosson I just need to add the license file to the repo in https://github.com/HaikuArchives/BeCheckPoint (I made a PR: https://github.com/HaikuArchives/BeCheckPoint/pull/1) . Other than that, since I'm kind of stuck with the rsrc/rdef problem, I don't have much to do.

Heres the article that explains rsrc vs rdef files and much more https://www.haiku-os.org/documents/dev/compile_them_resources/

I'll do a reimport on the repo in a couples hours here.

Ok, repo moved and is now live. Closing this issue as completed. If you'd like to do more work with BeCheckPoint there is now a task to test it and report bugs and issues. There's at least one typo i spotted in the readme that could use fixing as well.

Cool!
BTW, I've just deleted my temporary repo, so now everything will happen in https://github.com/HaikuArchives/BeCheckPoint.

Seems there is no recipe for BeCheckPoint, and I think we should keep it that way unless the code is updated to better support Haiku. Looks like LockWorkStation might be a better solution for users who might want such a program. But BeCheckPoint is on HaikuDepot, brought in via a third party repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hartwork picture hartwork  路  7Comments

bitigchi picture bitigchi  路  6Comments

kenmays picture kenmays  路  5Comments

twse picture twse  路  5Comments

mazbrili picture mazbrili  路  8Comments