-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix remote build #6
base: stable
Are you sure you want to change the base?
Conversation
The remote build seems to put all the files in a different place than /root, so it must be taken into account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenvandine comments
then we should be able to replace "prefix=/root/stage"
in that sed with "prefix=$CRAFT_STAGE"
without the python script
sed -i "s#prefix=$CRAFT_STAGE/usr#prefix=$CRAFT_STAGE#g" $CRAFT_STAGE/usr/lib/pkgconfig/$PCFILE
if we want to use a script like this, we should put it in a shared repository and reference it in a part of it's own
like maybe github.com/ubuntu/desktop-snaps/build-scripts
the use a part to get those scripts into the build env
Mmm... yes, I think that that would work too... |
It might be useful to have a build-scripts dir under the desktop-snaps repo with convenient scripts like that so they can be reused during the builds of other snaps. @sergio-costas do you have other useful scripts like this? Or was this just created for this one use case? |
Anyway, the script should be modified to ensure that all variables have $prefix appended. |
I have this repo: https://github.com/sergio-costas/snap-build-tools I can add this script there. |
@kenvandine @jssotomdz I created a MR to add the script to snap-build-tools: sergio-costas/snap-build-tools#1 |
The remote build seems to put all the files in a different place than /root, so it must be taken into account.
Pull Request Template
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please check only the options that are relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Test Configuration:
Checklist: