-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add recipe for tesseract #5935
Add recipe for tesseract #5935
Conversation
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/tesseract:
|
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/tesseract:
|
@conda-forge/staged-recipes -- can you provide any guidance on how to handle recipes that are in bioconda but not conda-forge? Is this something where a recipe will never be merged if it's already in bioconda? |
This recipe for This recipe for |
Actually many bioconda recipes are in conda-forge and there is no problem duplicating packages here. |
I don't know that I agree with what the linter is doing here. Perhaps @conda-forge/bioconda-recipes can shed some light. |
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/leptonica:
For recipes/tesseract:
|
81c3017
to
34b4f1c
Compare
recipes/leptonica/meta.yaml
Outdated
- zlib | ||
- jpeg | ||
- libpng | ||
- libtiff |
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 likely all need to be in host
as well. C/C++ code compiles libraries that link to libraries. So they have to be around during the build for the linking part to occur. They also need to be included at run time with matching versions (we take care of that for you under the hood). This differs from Python where they just need to be around whenever an import
line calls for them. Hope that helps.
recipes/leptonica/meta.yaml
Outdated
- libwebp | ||
run: | ||
- zlib | ||
- jpeg |
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.
Looks like this needs jpeg
and openjpeg
. So would add both to host
and run
.
Should add this based on the following lines from the log.
-- Looking for include file openjpeg-2.0/openjpeg.h
-- Looking for include file openjpeg-2.0/openjpeg.h - not found
-- Looking for include file openjpeg-2.1/openjpeg.h
-- Looking for include file openjpeg-2.1/openjpeg.h - not found
-- Looking for include file openjpeg-2.2/openjpeg.h
-- Looking for include file openjpeg-2.2/openjpeg.h - not found
-- Looking for include file openjpeg-2.3/openjpeg.h
-- Looking for include file openjpeg-2.3/openjpeg.h - not found
ref: https://circleci.com/gh/conda-forge/staged-recipes/27445
recipes/leptonica/meta.yaml
Outdated
build: | ||
- {{ compiler('c') }} | ||
host: | ||
- cmake |
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.
This is using pkg-config
as well. Currently it is reaching for the system copy, but we can provide our own (on macOS too). So please add it here.
Based on these log lines.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")
ref: https://circleci.com/gh/conda-forge/staged-recipes/27445
recipes/leptonica/meta.yaml
Outdated
- {{ compiler('c') }} | ||
host: | ||
- cmake | ||
- gcc # [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.
This is handled by the compiler
portion above. So it can be dropped.
recipes/leptonica/meta.yaml
Outdated
host: | ||
- cmake | ||
- gcc # [linux] | ||
- libwebp |
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.
This should be in run
as well.
recipes/tesseract/meta.yaml
Outdated
requirements: | ||
host: | ||
- gcc # [linux] | ||
- llvm # [osx] |
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.
Just as you nicely did above, please add...
build:
- {{ compiler('c') }}
Then drop both gcc
and llvm
from here.
recipes/tesseract/meta.yaml
Outdated
- zlib | ||
- leptonica | ||
run: | ||
- libgcc # [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.
This is automatically added by the compiler
syntax noted above. So we don't need to add it explicitly. IOW please go ahead and drop this.
Thanks for triggering the build @scopatz! I'm not very (or at all) experienced in debugging these types of recipes, but it looks like this has something to do with why it failed:
Do you have any thoughts on what to do? |
Did you push up an empty commit to trigger a rebuild? Also I think you need to wait for the leotonica package to actually appear on anaconda.org |
Leptonica is now in Anaconda cloud, and I just pushed an empty commit, but still the same error. |
Probably just needs |
recipes/tesseract/meta.yaml
Outdated
- jpeg | ||
- libtiff | ||
- automake | ||
- autoconf |
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.
automake
and autoconf
should go into requirements/build
, if possible.
This one is ready for review @conda-forge/staged-recipes! |
Can you fix these warnings,
|
Thanks for catching that @isuruf. Would this be the right way to fix this issue?
|
Yes, exactly. But you should issue a PR into the feedstock from your fork. |
That's what I meant. Will do. Thank you for your help! |
Thanks! |
Remember to do a |
You'll also want to do this for leptonica. See https://travis-ci.org/conda-forge/leptonica-feedstock/jobs/386797659#L1862-L1865 |
Will do. Thanks for spotting that! |
Closes #4647