GithubHelp home page GithubHelp logo

conda-forge / zlib-feedstock Goto Github PK

View Code? Open in Web Editor NEW
2.0 10.0 35.0 187 KB

A conda-smithy repository for zlib.

License: BSD 3-Clause "New" or "Revised" License

Shell 15.14% Batchfile 73.79% C 11.07%

zlib-feedstock's Introduction

About zlib-feedstock

Feedstock license: BSD-3-Clause

Home: http://zlib.net/

Package license: Zlib

Summary: Massively spiffy yet delicately unobtrusive compression library

Development: https://github.com/madler/zlib

Documentation: http://zlib.net/manual.html

zlib is designed to be a free, general-purpose, lossless data-compression library for use on virtually any computer hardware and operating system.

Current build status

Travis linux
Azure
VariantStatus
linux_64 variant
linux_aarch64 variant
linux_ppc64le variant
osx_64 variant
osx_arm64 variant
win_64 variant
win_arm64 variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing zlib

Installing zlib from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, libzlib, libzlib-wapi, zlib, zlib-wapi can be installed with conda:

conda install libzlib libzlib-wapi zlib zlib-wapi

or with mamba:

mamba install libzlib libzlib-wapi zlib zlib-wapi

It is possible to list all of the versions of libzlib available on your platform with conda:

conda search libzlib --channel conda-forge

or with mamba:

mamba search libzlib --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search libzlib --channel conda-forge

# List packages depending on `libzlib`:
mamba repoquery whoneeds libzlib --channel conda-forge

# List dependencies of `libzlib`:
mamba repoquery depends libzlib --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge anaconda.org channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating zlib-feedstock

If you would like to improve the zlib recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/zlib-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

zlib-feedstock's People

Contributors

conda-forge-admin avatar conda-forge-curator[bot] avatar conda-forge-webservices[bot] avatar ekomarova avatar github-actions[bot] avatar h-vetinari avatar hmaarrfk avatar isuruf avatar ivanyashchuk avatar jakirkham avatar jjhelmus avatar lidavidm avatar maggie-m avatar mariusvniekerk avatar mingwandroid avatar msarahan avatar notestaff avatar ocefpaf avatar regro-cf-autotick-bot avatar sylvaincorlay avatar wesm avatar xantares avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zlib-feedstock's Issues

inflatePrime missing

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

While trying to add my package, which depends on zlib, I found that the conda-packaged zlib version seems to be missing the inflatePrime symbol. I get:

undefined symbol: inflatePrime

Out of interest, I tried to do a find /miniconda3/ -iname '*zlib*so' and nm /miniconda3/lib/python3.10/lib-dynload/zlib.cpython-310-x86_64-linux-gnu.so | grep -i inflate and got the output:

                 U inflate
                 U inflateCopy@ZLIB_1.2.0
                 U inflateEnd
                 U inflateInit2_
                 U inflateSetDictionary
00000000000045ff t set_inflate_zdict

inflatePrime simply seems to be missing, even though it should be there since zlib version 1.2.2.4, which was released in 2005.

Installed packages

conda list
# packages in environment at /miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
beautifulsoup4            4.12.2          py310h06a4308_0  
boltons                   23.0.0          py310h06a4308_0  
brotlipy                  0.7.0           py310h7f8727e_1002  
bzip2                     1.0.8                h7b6447c_0  
ca-certificates           2023.11.17           hbcca054_0    conda-forge
certifi                   2023.11.17         pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py310h5eee18b_3  
chardet                   4.0.0           py310h06a4308_1003  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
click                     8.0.4           py310h06a4308_0  
conda                     23.7.3          py310h06a4308_0  
conda-build               3.26.1          py310h06a4308_0  
conda-content-trust       0.1.3           py310h06a4308_0  
conda-index               0.2.3           py310h06a4308_0  
conda-package-handling    2.2.0           py310h06a4308_0  
conda-package-streaming   0.9.0           py310h06a4308_0  
cryptography              41.0.2          py310h22a60cf_0  
cxxopts                   3.1.0                hf52228f_0    conda-forge
filelock                  3.9.0           py310h06a4308_0  
glob2                     0.7                pyhd3eb1b0_0  
icu                       73.1                 h6a678d5_0  
idna                      3.4             py310h06a4308_0  
jinja2                    3.1.2           py310h06a4308_0  
jsonpatch                 1.32               pyhd3eb1b0_0  
jsonpointer               2.1                pyhd3eb1b0_0  
ld_impl_linux-64          2.38                 h1181459_1  
libarchive                3.6.2                h6ac8c49_2  
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
liblief                   0.12.3               h6a678d5_0  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
libxml2                   2.10.4               hf1b16e4_1  
lz4-c                     1.9.4                h6a678d5_0  
markupsafe                2.1.1           py310h7f8727e_0  
more-itertools            8.12.0             pyhd3eb1b0_0  
ncurses                   6.4                  h6a678d5_0  
openssl                   3.0.12               h7f8727e_0  
packaging                 23.1            py310h06a4308_0  
patch                     2.7.6             h7b6447c_1001  
patchelf                  0.17.2               h6a678d5_0  
pip                       22.3.1          py310h06a4308_0  
pkginfo                   1.9.6           py310h06a4308_0  
pluggy                    1.0.0           py310h06a4308_1  
psutil                    5.9.0           py310h5eee18b_0  
py-lief                   0.12.3          py310h6a678d5_0  
pycosat                   0.6.4           py310h5eee18b_0  
pycparser                 2.21               pyhd3eb1b0_0  
pyopenssl                 23.2.0          py310h06a4308_0  
pysocks                   1.7.1           py310h06a4308_0  
python                    3.10.12              h955ad1f_0  
python-libarchive-c       2.9                pyhd3eb1b0_1  
pytz                      2022.7          py310h06a4308_0  
pyyaml                    6.0             py310h5eee18b_1  
readline                  8.2                  h5eee18b_0  
requests                  2.31.0          py310h06a4308_0  
ruamel.yaml               0.17.21         py310h5eee18b_0  
ruamel.yaml.clib          0.2.6           py310h5eee18b_1  
setuptools                65.6.3          py310h06a4308_0  
six                       1.16.0             pyhd3eb1b0_1  
soupsieve                 2.4             py310h06a4308_0  
sqlite                    3.41.2               h5eee18b_0  
tk                        8.6.12               h1ccaba5_0  
tomli                     2.0.1           py310h06a4308_0  
toolz                     0.12.0          py310h06a4308_0  
tqdm                      4.65.0          py310h2f386ee_0  
tzdata                    2023c                h04d1e81_0  
urllib3                   1.26.16         py310h06a4308_0  
wheel                     0.37.1             pyhd3eb1b0_0  
xz                        5.4.2                h5eee18b_0  
yaml                      0.2.5                h7b6447c_0  
zlib                      1.2.13               h5eee18b_0  
zstandard                 0.19.0          py310h5eee18b_0  
zstd                      1.5.5                hc292b87_0

Environment info

active environment : base
    active env location : /miniconda3
            shell level : 1
       user config file : /home/user/.condarc
 populated config files : /home/user/.config/conda/condarc
                          /home/user/.condarc
          conda version : 23.7.3
    conda-build version : 3.26.1
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.0=0
                          __glibc=2.35=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /miniconda3  (writable)
      conda av data dir : /miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /miniconda3/pkgs
                          /home/user/.conda/pkgs
       envs directories : /miniconda3/envs
                          /home/user/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.3 requests/2.31.0 CPython/3.10.12 Linux/5.15.0-84-generic ubuntu/22.04.3 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

MNT: The zlib recipe has some lint :(

This is the friendly conda-forge-admin automated user.

I've ran the conda-smithy linter and found some lint in this feedstock ๐Ÿ˜ข.

Here is what I have got:

  • The recipe must have a build/number section.

Thanks!

zlib depends on gcc_linux-64 v10*

Comment:

Because zlib depends on gcc v10*:
"build_number": 4,
"build_string": "h166bdaf_4",
"channel": "conda_channel",
"dist_name": "zlib-1.2.13-h166bdaf_4",
"name": "zlib",
"platform": "linux-64",
"version": "1.2.13",
"dependencies": [
"gcc_linux-64 10.*"
],
this can cause conflicts with components that depend on gcc v11*, if try to collect these packages in the one environment and install the dependencies needed for the tests, such as the compiler.
Is it possible to rebuild zlib with gcc 11*?

Something broken with zlib vs. libzlib files (or run-export)

Currently the output libzlib contains (e.g. on linux):

 "files": [
  "lib/libz.so.1",
  "lib/libz.so.1.2.12"
 ],

whereas zlib contains:

 "files": [
  "include/zconf.h",
  "include/zlib.h",
  "lib/libz.a",
  "lib/libz.so",
  "lib/pkgconfig/zlib.pc"
 ],

On top of that, zlib only run-exports a dependence on libzlib (and not zlib), so stuff like libz.so (and the package config) will not be found, leading i.a. (AFAICT) to stuff like:

CMake Error at /home/conda/feedstock_root/build_artifacts/googleapis-cpp_1660576007096/[...]/lib/cmake/grpc/gRPCTargets.cmake:77 (set_target_properties):
  The link interface of target "gRPC::grpc" contains:

    ZLIB::ZLIB

  but the target was not found.

despite the respective package run-depending on libzlib (based on having zlib as a host-dep for grpc-cpp).

As far as I can tell, we need to either:

  • run-export zlib (instead of libzlib) from zlib output
  • make zlib a thin wrapper around zlib, so that the contained files are identical

PTAL @conda-forge/zlib
CC @hmaarrfk (since you added conda-forge/grpc-cpp-feedstock#197)

Upgrade to 1.2.10

I'll take a look at doing this.
Hopefully can be my 1st conda-forge patch ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.