Continue Discussion 12 replies
February 2017

Begasus

Nice writing! Would have been nice also 5 years or so ago :slight_smile: Kudos Humdinger! +1

February 2017

brunobastardi

Great help! Just finished following your tutorial…
I think I got it! At least it is working so far.

Very good writing very clean and easy to understand
… >>no look here and more details here and there anymore<<
thanks alot…

hopefully I can use it now…

Two questions I have:
you wrote:

“If something goes wrong and you want a fresh start, open the folder of the recipe you try to build and delete all folders starting with “work-”. Also delete the “download” folder if you suspect a corrupted source archive.
Do a “haikuporter artpaint -c” for ArtPaint as example.”

For what and why I have to do a “haikuporter artpaint -c”
what is the -c doing?

Second:

which will be time-consumingly recreated with the next build.

That means it will be created the first time (creating all those files in haikuports)?
Starting “hp artpaint” for example?

1 reply
February 2017

humdinger Developer

hp --help says “clean the working directory of the specified port”.
I think it not only removes the “work-” folders. At least I think it resolves also an issue where haikuporter doesn’t find a file “.DependencyInfo”.

[quote]Second:

which will be time-consumingly recreated with the next build.

Is it happen the first time too (creating all those files in haikuports)? Starting “hp artpaint” for example?
[/quote]

Yes. So the first time you build something, it takes some time. After that, building is much faster.

2 replies
February 2017 ▶ humdinger

brunobastardi

Very very good I am really happy I got it to work finally… thanks again great work…

Humdinger makes Haiku easy again!:grinning:

February 2017 ▶ humdinger

brunobastardi

Ah ok that makes sense…

In the copied haikuporter.config file the tip is different:

Tip:
Put this into your ~/config/settings/profile (a text file that you
have to create if it doesn’t exist already):to search for a string in all
recipes with “inrecipe {searchstring}” and build a package with
“hp {packagename}” (adjust your /path/to/your/haikuports/):

function inrecipe { grep -n $1 /path/to/your/haikuports/*/*/*.recipe; }
export -f inrecipe

alias hp="haikuporter -S -j2 --get-dependencies --no-source-packages"

=================================================================<<<
what does the function inrecipe do?
Do I need to adjust the path to haikuports?
do I need to uncomment it too?

1 reply