Skip to content
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 snappy #193

Closed
wants to merge 15 commits into from
12 changes: 12 additions & 0 deletions recipes/snappy/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cd %SRC_DIR%
git clone https://github.com/kmanley/snappy-msvc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is not part of the source code.
Can we clone a specific hash? (Although it seems that nothing is updated in almost 4 years!)

PS: Maybe we should just download those files and ship with the recipe. Just adding a comment about that repo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point.

Can we clone a specific hash?

Like this. Maybe with a shallow clone too?

PS: Maybe we should just download those files and ship with the recipe. Just adding a comment about that repo.

Not sure how I feel about this.

So, I'm almost leaning to having snappy-msvc broken out as its own package that just does the git clone with a sha. It feels cleaner IMHO. Maybe others have thoughts about this? @pelson?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS: Maybe we should just download those files and ship with the recipe. Just adding a comment about that repo.

In this case, the two important files are the sln and vcproj. stdint can be got from the msinttypes package (https://github.com/conda-forge/msinttypes-feedstock). @groutr - are you happy to just copy those files into the recipe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with copying those into the recipe.

cd snappy-msvc

set SLN_FILE=snappy.sln
set SLN_CFG=Release
if "%ARCH%"=="32" (set SLN_PLAT=Win32) else (set SLN_PLAT=x64)

REM Build step
devenv "%SLN_FILE%" /Build "%SLN_CFG%|%SLN_PLAT%"
if errorlevel 1 exit 1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop extra newline.

7 changes: 7 additions & 0 deletions recipes/snappy/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/env bash

./autogen.sh
./configure --prefix=$PREFIX
make
make install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make check?


15 changes: 15 additions & 0 deletions recipes/snappy/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% set version = "1.1.3" %}

package:
name: snappy
version: {{ version }}

source:
git_url: https://github.com/google/snappy.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just download the tarball instead? Should be faster and may avoid a few extra configuration steps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are tarballs preferred over repositories?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, yes, for many reasons:

  • download size is (probably) smaller
  • tarballs + sha/md5 is a stricter definition of version than a git tag (tags can change to other revisions)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, they may have run autoconf and other things so it is simpler to build. With many google libraries the standard has been downloading gtest and gmock, though they may have tarballs where this is already done.

git_tag: {{ version }}

about:
home: https://github.com/google/snappy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a summary line.

license: Other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like BSD 3-Clause. Could we put that here? I know the data is licensed differently, but don't think we want to distribute that anyways.

license_file: COPYING
license_family: Other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs maintainer.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again think this is BSD.