New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New core plan for R #571
New core plan for R #571
Conversation
Thanks for the pull request! Here is what will happen next:
Thank you for contributing! |
👍 This looks like a good start to me. It would be nice if we could get some of the graphical output devices enabled:
Because of dependency shenanigans I've had trouble getting some of those enabled without at least getting some parts of xorg packaged, which is started over in the I don't think we need those immediately, just wanted to mention it as I'm happy to help get those enabled over time. |
Thanks for the heads-up! I can enable PNG, JPEG, TIFF and ICU with no problem. Will need to work with others to get core/cairo shipped. |
I'm going to leave this PR open to keep conversation going (other people are interested in this core/R). But if we want image export, I, at least, additionally need to work on:
This is currently a do-not-merge PR. |
Status update: So now I am working on:
Thanks to @eeyun and @stevendanna for their help in the hack day yesterday. This PR is staying open for further comment. |
I was able to get cairo recognized with a small fix to pixman (in another PR) and by explicitly adding some transitive dependencies to the R pkg_deps array. |
PR for pixman: #577 |
@stevendanna That's great news. Do you have a branch somewhere that I can merge into this PR so I can grab your R plan.sh? |
** Status update **
WIP:
In terms of builds, I'm pretty close to wrapping this up now. Once everything is building nicely, there will need to be some work to cleanup the plans. Note: this PR assumes that #577 is merged. |
@stevendanna when you have a moment, I'd hugely appreciate a review of this PR. I cannot work out why I am not getting R to build with all the graphical device support. I assume that once cairo works, jpeg, png etc will all enable, too. |
@therealpadams Thanks for pushing this forward. I'll pull down your recent changes and see what I can find. |
OK. I've made some progress, but don't get too excited, lots of caveats below:
This is available on my branch which I forked off of yours: baggerspion/core-plans@core/R...stevendanna:core/R-ssd Here is a brief summary of where I've gotten:
|
We now successfully have all graphics drivers enabled and cairo enabled as the default bitmap type:
|
Signed-off-by: Paul Adams <paul@baggerspion.net>
Signed-off-by: Paul Adams <paul.adams@endocode.com>
These plans now have all their pkg_build_deps and pkg_deps corrected and the EXPORTS removed. I reckon these are now OK to merge. |
…over these plans. Signed-off-by: Paul Adams <paul@baggerspion.net>
Signed-off-by: Paul Adams <paul@baggerspion.net>
Signed-off-by: Paul Adams <paul@baggerspion.net>
This PR is getting a little crazy :) It now contains: The Liberation Fonts pkg simply downloads and untars the Liberations Fonts for use by, for example, R. Problem, we need to run |
While we could do this in Alternatively, you could always make a "R" wrapper where it will execute the command you need as well setup any other additional exports/variables/etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
R/plan.sh
Outdated
core/diffutils | ||
core/file | ||
core/gcc | ||
core/icu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to call this out here if it's defined in pkg_deps
R/plan.sh
Outdated
core/file | ||
core/gcc | ||
core/icu | ||
core/liberation-fonts-ttf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you need this during runtime, you'll want to make sure this is placed in pkg_deps
R/plan.sh
Outdated
core/icu | ||
core/liberation-fonts-ttf | ||
core/libjpeg-turbo | ||
core/libpng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove here if called out in pkg_deps
R/plan.sh
Outdated
core/gcc | ||
core/icu | ||
core/liberation-fonts-ttf | ||
core/libjpeg-turbo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this if defined in pkg_deps
R/plan.sh
Outdated
do_build() { | ||
sed -i '/#include.*<cairo-xlib.h>/d' ./configure | ||
./configure --prefix="${pkg_prefix}" \ | ||
--with-x=no \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment seems off by one space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These alignment errors are super weird... don't see them in VIM. Will guess my way around them :)
R/plan.sh
Outdated
sed -i '/#include.*<cairo-xlib.h>/d' ./configure | ||
./configure --prefix="${pkg_prefix}" \ | ||
--with-x=no \ | ||
--disable-java \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment
harfbuzz/plan.sh
Outdated
pkg_origin=core | ||
pkg_version=1.3.1 | ||
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | ||
pkg_license=('mit') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit but would Uppercase to MIT
harfbuzz/plan.sh
Outdated
|
||
do_build() { | ||
./configure --prefix="$pkg_prefix" \ | ||
--with-gobject=yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment off by one space
pango/plan.sh
Outdated
core/patch | ||
core/perl | ||
core/pkg-config | ||
core/util-linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment by one space
Signed-off-by: Paul Adams <paul@baggerspion.net>
Thanks for the review, @bdangit. Alignment issues all fixed and I've sorted out pkg_deps vs pkg_build_deps (thought I'd already done that). I think this is mergeable now. The issue with updating the font-cache is something that can be fixed with documentation. |
👍 |
@eeyun Wondering if we can remove the DO-NOT-MERGE label? This looks good to me. While there is the fc-cache issue, I think it is best to "document and iterate" on that issue. |
LGTM! |
The following reverse dependencies in the chain have also been rebuilt: |
Signed-off-by: Paul Adams paul@baggerspion.net