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

glib-mkenums fails #260

Open
sergio-costas opened this issue Nov 20, 2024 · 0 comments
Open

glib-mkenums fails #260

sergio-costas opened this issue Nov 20, 2024 · 0 comments
Assignees

Comments

@sergio-costas
Copy link
Contributor

sergio-costas commented Nov 20, 2024

glib-mkenums fails to run because the shebang is #!/usr/bin/python33. The reason seems to be this line in snapcraft.yaml:

sed -i 's#/usr/bin/python#python3#' usr/bin/glib-mkenums

I'm preparing a patch for it. After I test it, I'll upload it.

@sergio-costas sergio-costas self-assigned this Nov 20, 2024
sergio-costas added a commit to sergio-costas/gnome-sdk that referenced this issue Nov 20, 2024
The 'conditioning' part is replacing '/usr/bin/python' in glib-
mkenums file with '/usr/bin/python3', to ensure that it works
with the current builds. Unfortunately, this only works if the
original shebang was referring to python2. The current version
of glib-mkenums, instead, has a shebang that already points to
python3, so the result of the sed command is a shebang that
points to python33, resulting in an execution error.

This patch fixes it by ensuring that the replacement is done
only if the shebang points to "python", but not if it points to
"python3".

Fix ubuntu#260
This was referenced Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant