-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 Linux support #13
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@@ -0,0 +1,6 @@ | |||
cmake -G "Unix Makefiles" |
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.
There might be several CMake knobs to tweak: https://github.com/MiKTeX/miktex/blob/b62a1e7ebe6b695b7a5ea7adbbe24635494a4d26/CMakeLists.txt
I think you want to add meta.yaml:
And at the top of
|
Pimped build.sh
It doesn't seem to want to build for Unix just yet :\ Doesn't it like my selectors or something? |
Now it ran, but something else seems missing:
|
So I added the run_docker_build.sh and now CircleCI no longer runs :\ |
@ivoflipse I can take a look at this for you later today but I am a little bit swamped right now. If you do not solve it by then feel free to ping me later today or tomorrow. |
No problem @ocefpaf! Any help is appreciated |
If you change |
I had just installed conda-smithy and set up all the necessary tokens.
I'm probably doing something else wrong though |
I didn't need the tokens to rerender, just the channel in conda config. |
One step forward, two steps back:
|
Just tried it, |
The Github repo (and the source distribution) contain a more detailed list of dependencies: Minimum OS requirements
C/C++
Build system
Build utilities
3rd party libs
We're skipping all Qt stuff, so those can get dropped (I hope) After adding all names I could find to the yum_requirements.txt, I get the following as missing:
|
While I tried to add a lot of the dependencies (and there are a lot...) to the |
@@ -0,0 +1,16 @@ | |||
liburiparser-devel |
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.
Is there something wrong with this format perhaps? Since it only seems to install the following packages:
Installing:
ImageMagick x86_64 6.7.2.7-5.el6_8 updates 1.9 M
dos2unix x86_64 3.1-37.el6 base 16 k
fop x86_64 0.95-4.4.el6 base 2.6 M
libxslt x86_64 1.1.26-2.el6_3.1 base 452 k
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, you need to rerender everytime you change the file. See https://github.com/conda-forge/miktex-feedstock/pull/13/files#r76951445
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, you need to rerender everytime you change the file.
Yep. I also recommend you to get the docker image and test the build locally so you can iterate quicker.
docker pull condaforge/linux-anvil # Downloads the image.
docker run -it --rm -v $(pwd):/home/ condaforge/linux-anvil /bin/sh # Starts an interactive session.
That way you can yum install
/uninstall
things and build until you get a combination that works.
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.
Thanks @ocefpaf I'm inside the Docker container right now, so that should indeed prove helpful in the future.
However, several of the requirements don't seem to be available through yum. I downloaded the filelist of one of the repo's (mirror.cj2.nl) my machine is connected to and in their filelist some dependencies are available, but only for version 7.2
- uriparser
- libmspack
- zziplib
- graphite2
- log4cxx
And the following don't yet seem available at all:
- xsltproc (though we might have libxslt for that)
- botan
- potrace
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.
Welcome to the naming nightmare. Things might exist but with a different name or they are parts of a package with a different name.
You will need a lot yum search
to sort that out. Sorry...
And we will need to package what does not exist.
# "recipe/yum_requirements.txt" file. After updating that file, | ||
# run "conda smithy rerender" and this line be updated | ||
# automatically. | ||
yum install -y ImageMagick dos2unix fop libxslt |
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.
@ivoflipse this is updated by rerender. Alternatively you can edit it by hand...
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.
Alternatively you can edit it by hand...
Please don't 😄
The feedstock rerendering will be using the yum req file and not this so any modification you do by hand will be removed at the first rerender.
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.
Well the rerendering doesn't seem to work on Windows, at least on my machine. But I've done my best to keep both in sync
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.
Good to know! We need to report that in conda-smithy's issue tracker. Any error message? Or it just does not render the file?
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.
@ocefpaf made an issue for it:
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.
Thanks!
Let's see what dependencies we're definitely missing and try and make recipes for them:
|
I'm not continuing with this PR so closing it |
See #12