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

[BUG] libexecinfo no longer available on alpine 3.17 #1824

Closed
silvervest opened this issue Dec 2, 2022 · 8 comments · Fixed by #1838
Closed

[BUG] libexecinfo no longer available on alpine 3.17 #1824

silvervest opened this issue Dec 2, 2022 · 8 comments · Fixed by #1838
Labels
🐛 bug Something isn't working

Comments

@silvervest
Copy link

silvervest commented Dec 2, 2022

Bug description

It appears that with Alpine 3.17, the libexecinfo package has been removed entirely, thus causing the dd-trace-php apk package and install scripts to fail.

6b9cf11aaac5:~# apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
v3.17.0-74-g4470818ef5 [https://dl-cdn.alpinelinux.org/alpine/v3.17/main]
v3.17.0-73-g7a30a0c9ee [https://dl-cdn.alpinelinux.org/alpine/v3.17/community]
OK: 17804 distinct packages available
6b9cf11aaac5:~# apk add libexecinfo
ERROR: unable to select packages:
  libexecinfo (no such package):
    required by: world[libexecinfo]
6b9cf11aaac5:~# php datadog-setup.php --php-bin=all
ERROR: Required library 'libexecinfo' not found.

6b9cf11aaac5:~# apk add --allow-untrusted datadog-php-tracer_0.81.1_x86_64.apk
ERROR: unable to select packages:
  libexecinfo (no such package):
    required by: datadog-php-tracer-0.81.1[libexecinfo]

Alpine info detailing the removal:

I attempted to remove this dependency check in the datadog-setup.php script, but the built ddtrace extensions will fail with Error loading shared library libexecinfo.so.1: No such file or directory

OS info

6b9cf11aaac5:~# cat /etc/os-release | grep -E "(NAME)|(VERSION)"
NAME="Alpine Linux"
VERSION_ID=3.17.0
PRETTY_NAME="Alpine Linux v3.17"
@silvervest silvervest added the 🐛 bug Something isn't working label Dec 2, 2022
@morrisonlevi
Copy link
Collaborator

morrisonlevi commented Dec 2, 2022

We caught this early this week, but wondered if it was just a transient issue given how new the release was. Seems like it's not transient, but wasn't called out in release notes. Will have to comb through what the right thing to do is.

A starting point to look through:

@silvervest
Copy link
Author

FWIW this blocked our deployments temporarily as the php:fpm-alpine docker alpine image updated from 3.16 to 3.17, so we had to lock to php:fpm-alpine3.16
Not a horrible problem, but not ideal

@morrisonlevi
Copy link
Collaborator

The tentative plan will be drop the feature which needs this when building for Alpine Linux. The feature is optional, and based on the bug reports I linked, unwinding had some technical issues even in Alpine versions which had libexecinfo.

@TomKeur
Copy link

TomKeur commented Dec 8, 2022

Faced the same issue last week, just subscribed to this GitHub Issue.

Keep up the good work 👍

@jbiel
Copy link

jbiel commented Dec 12, 2022

This package is also missing from Alpine edge release, so it's likely to be gone going forward.

@morrisonlevi
Copy link
Collaborator

By the way, we have quite a few team members out for holidays or unplanned sickness, so please be patient with us on this one!

morrisonlevi added a commit that referenced this issue Dec 19, 2022
Fix GH-1824.

The quick summary is Alpine 3.17 removed this library, and on older
versions it's apparently not great quality anyway.
morrisonlevi added a commit that referenced this issue Dec 19, 2022
Fix GH-1824.

The quick summary is Alpine 3.17 removed this library, and on older
versions it's apparently not great quality anyway.
morrisonlevi added a commit that referenced this issue Dec 19, 2022
Fix GH-1824.

The quick summary is Alpine 3.17 removed this library, and on older
versions it's apparently not great quality anyway.
bwoebi pushed a commit that referenced this issue Jan 3, 2023
* Remove libexecinfo on Alpine

Fix GH-1824.

The quick summary is Alpine 3.17 removed this library, and on older
versions it's apparently not great quality anyway.

* Update apk before deleting package

* Attempt to remove libexecinfo from CI

* Remove libexecinfo-dev too

* Be less aggressive about libexecinfo removal

* Maybe revert once we pump to 0.83.0

* Fix installer test

* Drop libexecinfo dep on .apk

* Hack around plesk issue

* Support Alpine 3.17 in package verification

* Remove PHP 7.4 on Plesk (removed upstream)
@bwoebi
Copy link
Collaborator

bwoebi commented Jan 13, 2023

Hey @silvervest,

0.83.0 has been released now, removing the libexecinfo dependency for alpine.

@silvervest
Copy link
Author

Thank you @bwoebi and @morrisonlevi , much appreciated!

bwoebi pushed a commit that referenced this issue Jan 18, 2023
* Remove libexecinfo on Alpine

Fix GH-1824.

The quick summary is Alpine 3.17 removed this library, and on older
versions it's apparently not great quality anyway.

* Update apk before deleting package

* Attempt to remove libexecinfo from CI

* Remove libexecinfo-dev too

* Be less aggressive about libexecinfo removal

* Maybe revert once we pump to 0.83.0

* Fix installer test

* Drop libexecinfo dep on .apk

* Hack around plesk issue

* Support Alpine 3.17 in package verification

* Remove PHP 7.4 on Plesk (removed upstream)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants