GithubHelp home page GithubHelp logo

conda-forge / zlib-feedstock Goto Github PK

View Code? Open in Web Editor NEW
2.0 10.0 34.0 201 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 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

Upgrade to 1.2.10

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

Is it on purpose that `libz.dylib` is in the `zlib` package?

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

The package gets split, but libz.dylib / so is added to the zlib package and not the libzlib package.

Only

- lib/libz.1.3.1.dylib
- lib/libz.1.dylib

are in the libzlib package.

Just wondering if that's on purpose or not :)

Installed packages

/

Environment info

/

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!

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)

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*?

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.