-
Notifications
You must be signed in to change notification settings - Fork 319
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] alsatplg: invalid option -- 'I' in debian:unstable #5323
Comments
@afq984 can you try with latest alsa-utils HEAD. |
Haven't tested alsa-utils HEAD, but probably just the version check needs to be updated once
|
The I think this |
@marc-hb the -I option was added after the 1.2.6 release. So we need a new release version for alsatplg and update the check in our scripts. |
Thanks, now that I see that commit https://github.com/alsa-project/alsa-utils/commits/c8c348e28a258f17e387 is 3 commits after tag v1.2.6. I got confused by the test
Funny enough I think we need a container "downgrade" right now, it would have caught this. More precisely, we need to stop using bleeding edge and unreleased versions in our container and stick to official ALSA releases so tests like
Should we bump the topology v2 test to the not yet released The current situation
So the only ALSA version that produces something usable right now is 1.2.5. It does not build v2 and is not shipped by any major distro right now (see #5192). Good thing there are few SOF developers :-(( |
@marc-hb @lgirdwood give me a container, and I'll make it happen. Whatever is decided. If it's a roll-back, just tell me what recent container should be leveraged, and I'll have the reference updated in minutes. That's super easy. |
Why the test in the build system is not against the '-I' option in this case (avoid the version check)? Also note that 1.2.6 should work, but the relative include path (against the parent file) is used which probably does not align with your tree (add symlinks?). |
Because the dependency is not just on BTW isn't
The commit that introduced |
The goal should be to make things working with the released and the development code, if you want to use or test some new functionality ahead of the release. So the version check is irrelevant for this and you need to find another way. Another goal is to be friendly to the users of the build system. The SND_LIB_VER() checks were added to allow compilation of alsatlg with the older alsa-lib without a strict requirement for the newer alsa-lib in configure.ac . It's a nonstandard configuration and I keep up to the package maintainers or users, if they want to do this for a reason. But the key is that the build does not fail when someone wants to test / update another utility from this package with the older alsa-lib. |
Luckily topology2 is not end user released yet, it's still WIP so it can be aligned with ALSA 1.2.7 when its ready. I think short term we need to remind developers that they need ALSA git for topology2 based development. |
This works only as long as all SOF developers know each other.
v2 is really not the worst problem right now. v1 is silently corrupted by most ALSA versions |
@marc-hb is this still an issue? so topology2 needs the -I flag and if it is used in our build scripts for topology2, thats an issue, we need to either remove the topology2 compilation until available or message the developers to update to alsa-utils upstream head. Unfortunately we are in transit with topology2 (some needed functionality not officially released), so what can we do? we can't even compare to release number as it doesn't exist... |
Until a released version of alsatplg can successfully build topoV2 I suggest commenting out the wrong alsatplg version check in |
The detection can be automated:
|
Until the next (and worse) problem is found (like some silent corruption?). The explicit |
Workaround for #5323 Signed-off-by: Li-Yu Yu <[email protected]>
Fixes: thesofproject#5323 The v1.2.6 requirement was a lie the whole time because alsatplg v1.2.6 does not have any `-I` option. The truth was: un-released alsa-utils from git was required. The check for v1.2.6 was an approximation good enough for many users but not for everyone, see for instance thesofproject#5323. Now that alsa-utils v1.2.7 has been released we can stop lying: alsa-project/alsa-utils@7d934f3142549 Signed-off-by: Marc Herbert <[email protected]>
v1.2.7 is out, tentative fix in: |
Fixes: #5323 The v1.2.6 requirement was a lie the whole time because alsatplg v1.2.6 does not have any `-I` option. The truth was: un-released alsa-utils from git was required. The check for v1.2.6 was an approximation good enough for many users but not for everyone, see for instance #5323. Now that alsa-utils v1.2.7 has been released we can stop lying: alsa-project/alsa-utils@7d934f3142549 Signed-off-by: Marc Herbert <[email protected]>
To Reproduce
Steps to reproduce the behavior: (e.g. list commands or actions used to reproduce the bug)
Environment
alsatplg is from the alsa-utils 1.2.6-1 package in the debian:unstable docker image.
there's indeed no
-I
flag in https://github.com/alsa-project/alsa-utils/blob/v1.2.6/topology/topology.c so I don't think it is a downstream packaging problemThe text was updated successfully, but these errors were encountered: