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

post_install.sh: create ags symlink relative to Root directory #503

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

antecrescent
Copy link
Contributor

This bug was reported by a Gentoo user: gentoo/guru#212

Creating the ags executable as an absolute symlink to $DESTDIR/$2/$APP_ID breaks staged installs, where the installed files are not placed directly into their expected location but are instead copied into a temporary location (DESTDIR). Since installed files maintain their relative directory structure and any embedded file names will not be modified, we can create a relative symlink instead, which fixes the issue.

It has the added benefit that the link target remains valid, even if the storage device underlying this program is mounted into a subdirectory of the root filesystem (e.g. for recovery).

Creating the ags executable as an absolute symlink to
$DESTDIR/$2/$APP_ID breaks staged installs, where the installed files
are not placed directly into their expected location but are instead
copied into a temporary location (DESTDIR).
Since installed files maintain their relative directory structure and
any embedded file names will not be modified, we can create a relative
symlink instead, which fixes the issue.

It has the added benefit that the link target remains valid, even if the
storage device underlying this program is mounted into a subdirectory of
the root filesystem (e.g. for recovery).

Bug: gentoo/guru#212
@Aylur Aylur merged commit 8194f0c into Aylur:main Jul 15, 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

Successfully merging this pull request may close these issues.

2 participants