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

Incorrect Shebang in glib-mkenums Script #191

Closed
1 task done
vitenti opened this issue Sep 28, 2024 · 3 comments · Fixed by #192
Closed
1 task done

Incorrect Shebang in glib-mkenums Script #191

vitenti opened this issue Sep 28, 2024 · 3 comments · Fixed by #192
Labels

Comments

@vitenti
Copy link

vitenti commented Sep 28, 2024

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When I install the latest version of glib (2.82.1) from Conda-Forge, the glib-mkenums script has an incorrect shebang: #!/home/conda/feedstock_root/build_artifacts/glib-split_1727379887346/_build_env/bin/python3.12
This path is specific to the build environment and causes issues in the final installed package. When I manually replace the shebang with a proper one, such as: #!/usr/bin/env python3 the script works as expected.

Installed packages

# packages in environment at /home/marianapenna/mambaforge/envs/numcosmo_developer:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
_sysroot_linux-64_curr_repodata_hack 3                   h69a702a_16    conda-forge
astroid                   3.3.4           py312h7900ff3_0    conda-forge
astropy                   6.1.4           py312hc0a28a1_0    conda-forge
astropy-iers-data         0.2024.9.23.0.31.43    pyhd8ed1ab_0    conda-forge
binutils                  2.43                 h4852527_1    conda-forge
binutils_impl_linux-64    2.43                 h4bf12b8_1    conda-forge
binutils_linux-64         2.43                 h4852527_1    conda-forge
black                     24.8.0          py312h7900ff3_1    conda-forge
brotli                    1.1.0                hb9d3cd8_2    conda-forge
brotli-bin                1.1.0                hb9d3cd8_2    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.33.1               heb4867d_0    conda-forge
c-compiler                1.8.0                h2b85faf_0    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
cairo                     1.18.0               hebfffa5_3    conda-forge
camb                      1.5.8           py312h7e369ba_1    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cfitsio                   4.4.1                hf8ad068_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
contourpy                 1.3.0           py312h68727a3_2    conda-forge
cycler                    0.12.1             pyhd8ed1ab_0    conda-forge
dill                      0.3.8              pyhd8ed1ab_0    conda-forge
exceptiongroup            1.2.2              pyhd8ed1ab_0    conda-forge
expat                     2.6.3                h5888daf_0    conda-forge
fast-pt                   3.1.1              pyhd8ed1ab_0    conda-forge
fftw                      3.3.10          nompi_hf1063bd_110    conda-forge
flake8                    7.1.1              pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_2    conda-forge
fontconfig                2.14.2               h14ed4e7_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.54.1          py312h66e93f0_0    conda-forge
fortran-compiler          1.8.0                h36df796_0    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
g-ir-build-tools          1.82.0          py312hb3c3181_0    conda-forge
g-ir-host-tools           1.82.0               h20f314d_0    conda-forge
gcc                       13.3.0               h9576a4e_1    conda-forge
gcc_impl_linux-64         13.3.0               hfea6d02_1    conda-forge
gcc_linux-64              13.3.0               hc28eda2_4    conda-forge
gcovr                     5.2                pyhd8ed1ab_0    conda-forge
getdist                   1.5.2              pyhd8ed1ab_0    conda-forge
gettext                   0.22.5               he02047a_3    conda-forge
gettext-tools             0.22.5               he02047a_3    conda-forge
gf2x                      1.3.0                ha476b99_2    conda-forge
gfortran                  13.3.0               h9576a4e_1    conda-forge
gfortran_impl_linux-64    13.3.0               h10434e7_1    conda-forge
gfortran_linux-64         13.3.0               hb919d3a_4    conda-forge
glib                      2.82.1               h2ff4ddf_0    conda-forge
glib-tools                2.82.1               h4833e2c_0    conda-forge
gmp                       6.3.0                hac33072_2    conda-forge
gmpy2                     2.1.5           py312h7201bc8_2    conda-forge
gobject-introspection     1.82.0          py312hf4b392c_0    conda-forge
graphite2                 1.3.13            h59595ed_1003    conda-forge
gsl                       2.7                  he838d99_0    conda-forge
harfbuzz                  9.0.0                hda332d3_1    conda-forge
hdf5                      1.14.3          nompi_hdf9ad27_105    conda-forge
healpy                    1.17.3          py312h93fc7cb_2    conda-forge
icu                       75.1                 he02047a_0    conda-forge
importlib-metadata        8.5.0              pyha770c72_0    conda-forge
iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
isort                     5.13.2             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
kernel-headers_linux-64   4.18.0               he073ed8_0    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
kiwisolver                1.4.7           py312h68727a3_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
lcms2                     2.16                 hb7c19ff_0    conda-forge
lcov                      1.16                 ha770c72_0    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_1    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libaec                    1.1.3                h59595ed_0    conda-forge
libasprintf               0.22.5               he8f35ee_3    conda-forge
libasprintf-devel         0.22.5               he8f35ee_3    conda-forge
libblas                   3.9.0            24_linux64_mkl    conda-forge
libbrotlicommon           1.1.0                hb9d3cd8_2    conda-forge
libbrotlidec              1.1.0                hb9d3cd8_2    conda-forge
libbrotlienc              1.1.0                hb9d3cd8_2    conda-forge
libcblas                  3.9.0            24_linux64_mkl    conda-forge
libcurl                   8.10.1               hbbe4b11_0    conda-forge
libdeflate                1.21                 h4bc722e_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libevent                  2.1.12               hf998b51_1    conda-forge
libexpat                  2.6.3                h5888daf_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libflint                  3.1.2              h6fb9888_101    conda-forge
libfyaml                  0.9                  hd590300_0    conda-forge
libgcc                    14.1.0               h77fa898_1    conda-forge
libgcc-devel_linux-64     13.3.0             h84ea5a7_101    conda-forge
libgcc-ng                 14.1.0               h69a702a_1    conda-forge
libgettextpo              0.22.5               he02047a_3    conda-forge
libgettextpo-devel        0.22.5               he02047a_3    conda-forge
libgfortran               14.1.0               h69a702a_1    conda-forge
libgfortran-ng            14.1.0               h69a702a_1    conda-forge
libgfortran5              14.1.0               hc5f4f2c_1    conda-forge
libgirepository           1.82.0               h0dcfedc_0    conda-forge
libglib                   2.82.1               h2ff4ddf_0    conda-forge
libgomp                   14.1.0               h77fa898_1    conda-forge
libhwloc                  2.11.1          default_hecaa2ac_1000    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0            24_linux64_mkl    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnl                     3.10.0               h4bc722e_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.28          pthreads_h94d23a6_0    conda-forge
libpng                    1.6.44               hadc24fc_0    conda-forge
libsanitizer              13.3.0               heb74ff8_1    conda-forge
libsqlite                 3.46.1               hadc24fc_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx                 14.1.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.1.0               h4852527_1    conda-forge
libtiff                   4.6.0                h46a8edc_4    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.17.0               h8a09558_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.7               he7c6b58_4    conda-forge
libxslt                   1.1.39               h76b75d6_0    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
llvm-openmp               18.1.8               hf5423f3_1    conda-forge
lxml                      5.3.0           py312he28fd5a_1    conda-forge
markdown-it-py            3.0.0              pyhd8ed1ab_0    conda-forge
markupsafe                2.1.5           py312h66e93f0_1    conda-forge
matplotlib-base           3.9.2           py312hd3ec401_1    conda-forge
mccabe                    0.7.0              pyhd8ed1ab_0    conda-forge
mdurl                     0.1.2              pyhd8ed1ab_0    conda-forge
meson                     1.5.2              pyhd8ed1ab_0    conda-forge
mkl                       2024.2.2            ha957f24_15    conda-forge
mpc                       1.3.1                h24ddda3_1    conda-forge
mpfr                      4.2.1                h90cbb55_3    conda-forge
mpi                       1.0                     openmpi    conda-forge
mpmath                    1.3.0              pyhd8ed1ab_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
mypy                      1.11.2          py312h66e93f0_0    conda-forge
mypy_extensions           1.0.0              pyha770c72_0    conda-forge
ncurses                   6.5                  he02047a_1    conda-forge
ninja                     1.12.1               h297d8ca_0    conda-forge
nlopt                     2.8.0           py312h69683c5_2    conda-forge
ntl                       11.5.1               h797279e_0    conda-forge
numpy                     1.26.4          py312heda63a1_0    conda-forge
openblas                  0.3.28          pthreads_hbcdf1e8_0    conda-forge
openjpeg                  2.5.2                h488ebb8_0    conda-forge
openmpi                   5.0.5              h9a79eee_101    conda-forge
openssl                   3.3.2                hb9d3cd8_0    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
pathspec                  0.12.1             pyhd8ed1ab_0    conda-forge
pcre2                     10.44                hba22ea6_2    conda-forge
perl                      5.32.1          7_hd590300_perl5    conda-forge
pillow                    10.4.0          py312h56024de_1    conda-forge
pip                       24.2               pyh8b19718_1    conda-forge
pixman                    0.43.2               h59595ed_0    conda-forge
pkg-config                0.29.2            h4bc722e_1009    conda-forge
platformdirs              4.3.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
psutil                    6.0.0           py312h66e93f0_1    conda-forge
pthread-stubs             0.4               hb9d3cd8_1002    conda-forge
pycairo                   1.27.0          py312h51b637d_0    conda-forge
pyccl                     3.0.2           py312h7bafe8f_0    conda-forge
pycodestyle               2.12.1             pyhd8ed1ab_0    conda-forge
pyerfa                    2.0.1.4         py312hc0a28a1_2    conda-forge
pyflakes                  3.2.0              pyhd8ed1ab_0    conda-forge
pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
pygobject                 3.50.0          py312hf4b392c_0    conda-forge
pygobject-stubs           2.10.0                   pypi_0    pypi
pylint                    3.3.1              pyhd8ed1ab_0    conda-forge
pyparsing                 3.1.4              pyhd8ed1ab_0    conda-forge
pytest                    8.3.3              pyhd8ed1ab_0    conda-forge
pytest-runner             6.0.0              pyhd8ed1ab_0    conda-forge
pytest-tap                3.4                      pypi_0    pypi
python                    3.12.6          hc5c86c4_1_cpython    conda-forge
python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
python_abi                3.12                    5_cp312    conda-forge
pyyaml                    6.0.2           py312h66e93f0_1    conda-forge
qhull                     2020.2               h434a139_5    conda-forge
readline                  8.2                  h8228510_1    conda-forge
rich                      13.8.1             pyhd8ed1ab_0    conda-forge
scipy                     1.14.1          py312h7d485d2_0    conda-forge
setuptools                75.1.0             pyhd8ed1ab_0    conda-forge
shellingham               1.5.4              pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
sympy                     1.13.2          pypyh2585a3b_103    conda-forge
sysroot_linux-64          2.28                 he073ed8_0    conda-forge
tap-py                    3.1                      pypi_0    pypi
tbb                       2021.13.0            h84d6215_0    conda-forge
texlive-core              20230313            he8f7729_15    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomlkit                   0.13.2             pyha770c72_0    conda-forge
tqdm                      4.66.5             pyhd8ed1ab_0    conda-forge
typer                     0.12.5             pyhd8ed1ab_0    conda-forge
typer-slim                0.12.5             pyhd8ed1ab_0    conda-forge
typer-slim-standard       0.12.5               hd8ed1ab_0    conda-forge
typing-extensions         4.12.2               hd8ed1ab_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024a                h8827d51_1    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xorg-kbproto              1.0.7             hb9d3cd8_1003    conda-forge
xorg-libice               1.1.1                hd590300_0    conda-forge
xorg-libsm                1.2.4                h7391055_0    conda-forge
xorg-libx11               1.8.10               h4f16b4b_0    conda-forge
xorg-libxau               1.0.11               hb9d3cd8_1    conda-forge
xorg-libxdmcp             1.1.3                hb9d3cd8_1    conda-forge
xorg-libxext              1.3.4                h0b41bf4_2    conda-forge
xorg-libxrender           0.9.11               hd590300_0    conda-forge
xorg-renderproto          0.11.1            hb9d3cd8_1003    conda-forge
xorg-xextproto            7.3.0             hb9d3cd8_1004    conda-forge
xorg-xorgproto            2024.1               hb9d3cd8_1    conda-forge
xorg-xproto               7.0.31            hb9d3cd8_1008    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
zipp                      3.20.2             pyhd8ed1ab_0    conda-forge
zlib                      1.3.1                h4ab18f5_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

Environment info

active environment : numcosmo_developer
    active env location : /home/marianapenna/mambaforge/envs/numcosmo_developer
            shell level : 2
       user config file : /home/marianapenna/.condarc
 populated config files : /home/marianapenna/mambaforge/.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.34=0
                          __linux=5.14.0=0
                          __unix=0=0
       base environment : /home/marianapenna/mambaforge  (writable)
      conda av data dir : /home/marianapenna/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/marianapenna/mambaforge/pkgs
                          /home/marianapenna/.conda/pkgs
       envs directories : /home/marianapenna/mambaforge/envs
                          /home/marianapenna/.conda/envs
               platform : linux-64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Linux/5.14.0-362.24.1.el9_3.0.1.x86_64 rocky/9.3 glibc/2.34
                UID:GID : 1008:100
             netrc file : None
           offline mode : False
@vitenti vitenti added the bug label Sep 28, 2024
@ehfd
Copy link
Member

ehfd commented Sep 28, 2024

I reproduce the issue. @pkgw @hmaarrfk

@hmaarrfk
Copy link
Contributor

There seems to be a few more executables:

$ rg _build_env glib-*
glib-2.82.1-h2ff4ddf_0/bin/glib-mkenums
1:#!/home/conda/feedstock_root/build_artifacts/glib-split_1727379887346/_build_env/bin/python3.12

glib-2.82.1-h2ff4ddf_0/bin/glib-genmarshal
1:#!/home/conda/feedstock_root/build_artifacts/glib-split_1727379887346/_build_env/bin/python3.12

glib-2.82.1-h2ff4ddf_0/bin/gtester-report
1:#!/home/conda/feedstock_root/build_artifacts/glib-split_1727379887346/_build_env/bin/python3.12

amoeba added a commit to apache/arrow that referenced this issue Oct 1, 2024
…n script (#44270)

### Rationale for this change

Fixes failing verification task for ruby+conda, see #44268. cc @ raulcd 

### What changes are included in this PR?

It looks like the proximate cause of the failure was a buggy release of glib (2.82.1) on conda-forge, see conda-forge/glib-feedstock#191. Pinning the version of glib we install inside the verification script to the previous version seems to work (verification passes locally now). Once the glib feedstock pushes a new release with the fix we can unpin this.

### Are these changes tested?

Yes, locally under docker.

### Are there any user-facing changes?

No.
* GitHub Issue: #44268

Lead-authored-by: Bryce Mecum <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Bryce Mecum <[email protected]>
@pkgw pkgw closed this as completed in #192 Oct 14, 2024
amoeba added a commit to apache/arrow that referenced this issue Oct 15, 2024
…rification script (#44407)

### Rationale for this change

We can remove these pins now that conda-forge/glib-feedstock#191 has been closed. I've tested on my own crossbow and will test here momentarily. This effectively reverts #44270 and #44268.

### What changes are included in this PR?

Tweaks to release release verification script, specifically removing recently-added pins.

### Are these changes tested?

Yes: https://github.com/amoeba/crossbow/actions/runs/11335070956/job/31522511285.

### Are there any user-facing changes?

No.

Closes #44415.
* GitHub Issue: #44415

Authored-by: Bryce Mecum <[email protected]>
Signed-off-by: Bryce Mecum <[email protected]>
raulcd pushed a commit to apache/arrow that referenced this issue Oct 15, 2024
…rification script (#44407)

### Rationale for this change

We can remove these pins now that conda-forge/glib-feedstock#191 has been closed. I've tested on my own crossbow and will test here momentarily. This effectively reverts #44270 and #44268.

### What changes are included in this PR?

Tweaks to release release verification script, specifically removing recently-added pins.

### Are these changes tested?

Yes: https://github.com/amoeba/crossbow/actions/runs/11335070956/job/31522511285.

### Are there any user-facing changes?

No.

Closes #44415.
* GitHub Issue: #44415

Authored-by: Bryce Mecum <[email protected]>
Signed-off-by: Bryce Mecum <[email protected]>
@pkgw
Copy link
Contributor

pkgw commented Oct 15, 2024

Hmm, based on the errors I'm currently seeing in conda-forge/harfbuzz-feedstock#117, there may be some lingering issues here.

  • win-64: FileNotFoundError: [WinError 2] The system cannot find the file specified
  • osx-arm64: OSError: [Errno 86] Bad CPU type in executable: '$PREFIX/bin/glib-mkenums'

Not reopening just yet since I haven't actually dug into this at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants