Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upirssi: add recipe for version 0.8.19 #553
Conversation
|
Hi, |
|
Yes, this is for the last versión. |
| BUILD_PACKAGED_ACTIVATION_PHASE="INSTALL" | ||
| STATUS_HAIKU="stable" | ||
| PROVIDES=" | ||
| botti$secondaryArchSuffix = $portVersion |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ailin-nemui
commented
Apr 30, 2016
•
|
being totally ignorant about haiku, I would like you to double check if those "Move variable declarations" patches are all required. Because ANSI C does not demand variables only at function top at all |
|
@pisculichi, I can confirm what @ailin-nemui wrote because the gcc2 we have in Haiku for x86_gcc2 does not require that variables be declared in the begining of a function. It only requires that all declarations in a « char *foo = strdup("foo");
char *bar = strdup("bar");would have to be changed to: char *foo;
char *bar;
foo = strdup("foo");
bar = strdup("bar");or, even better: char *foo, *bar;
foo = strdup("foo");
bar = strdup("bar");BTW, thanks @ailin-nemui for spotting this. |
ailin-nemui
commented
Apr 30, 2016
|
you're welcome to submit genuine ANSI C fixes upstream |
|
@ailin-nemui: That's cool, thanks! |
|
@ailin-nemui @fbrosson you are right I moved all declarations when I saw errors at compiling. I update this commit with your recommendations. |
|
@ailin-nemui @fbrosson as I already said, those are C89 fixes, because that's all gcc2 supports. But it's not strictly required for irssi since it doesn't provide any library so we don't really have any dependency on it, so we can build with gcc4 (5 now). |
|
@mmuman: I though it was good practice to try and make all recipes build with gcc2 when that was either easy or essential. But now I just understood your remark regarding those packages that do not provide any library. |
|
@fbrosson no problem. I did it to learn haikuports, git, and contribute in someway. I understand that support ANSI C in 2016 maybe has not sense. |
|
Thanks @pisculichi for your kind answer. |
|
The following bloc allows to reference a tarball of the snapshot just after the commit that adds the gcc2 patches: srcGitRev="1cfec5f63d4adf32117f68638fb35802146e2784"
SOURCE_URI="https://github.com/irssi/irssi/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="e4118fedeee70133b4aab70406c30be107cc0078c4d5c509e2b068277284d88a"
SOURCE_FILENAME="irssi-$srcGitRev.tar.gz"
SOURCE_DIR="irssi-$srcGitRev"I don't know, however, if it's OK to do so without renaming the recipe to, say, irssi-0.8.19 |
|
@fbrosson it's ok to keep the release + gcc2 patch until the next one is out. If you want a git recipe you'd rather use 0.8.19_git as naming I think. |
|
OK, thanks. BTW, I noticed that there are indeed several recipes with "_git", and only 2 with "~git", but these two are quite recent, so I though there was a little change in the naming conventions. |
|
Bump. |
|
I forgot about this, sorry. |
|
Yes, please. |
| @@ -0,0 +1,68 @@ | |||
| LICENSE="GNU GPL v2" | |||
| COPYRIGHT="1999-2015 Timo Sirainen" | |||
This comment has been minimized.
This comment has been minimized.
waddlesplash
Jun 19, 2016
Member
Please follow the order outlined in https://github.com/haikuports/haikuports/wiki/HaikuPorter-Guidelines#ordering
| ARCHITECTURES="x86_gcc2 x86" | ||
| SECONDARY_ARCHITECTURES="x86" | ||
| BUILD_PACKAGED_ACTIVATION_PHASE="INSTALL" | ||
| STATUS_HAIKU="stable" |
This comment has been minimized.
This comment has been minimized.
| irssi-ncurses.patch | ||
| " | ||
|
|
||
| BUILD() { |
This comment has been minimized.
This comment has been minimized.
|
Manually merged. Sorry that took so long! |
pisculichi commentedApr 8, 2016
No description provided.