Skip to content

Remove absolute paths from binaries which point to build directories#668

Merged
larskanis merged 1 commit into
ged:masterfrom
larskanis:abs-paths
Aug 29, 2025
Merged

Remove absolute paths from binaries which point to build directories#668
larskanis merged 1 commit into
ged:masterfrom
larskanis:abs-paths

Conversation

@larskanis

Copy link
Copy Markdown
Collaborator

There are several absolute paths built into the binary. For instance fallback path to pg_service.conf or the fallback path to kerberos ccache file or the rpath included into the libpq or C-ext files.

They can be avoided or fixed by disabling rpaths and by using DESTDIR instead of --prefix configure option.

Fixes #666

The remaining rpath to libruby will probably be fixed by: rake-compiler/rake-compiler-dock#165

Also fix the MAKEFLAGS option. MAKEOPTS was wrong.

There are several absolute paths built into the binary.
For instance fallback path to `pg_service.conf` or the fallback path to kerberos ccache file or the rpath included into the libpq or C-ext files.

They can be avoided or fixed by disabling rpaths and by using `DESTDIR` instead of `--prefix` configure option.

Fixes ged#666

The remaining rpath to libruby will probably be fixed by: rake-compiler/rake-compiler-dock#165

Also fix the `MAKEFLAGS` option. `MAKEOPTS` was wrong.
@larskanis larskanis merged commit 63fc155 into ged:master Aug 29, 2025
34 checks passed
@larskanis larskanis deleted the abs-paths branch August 29, 2025 11:51
@larskanis

Copy link
Copy Markdown
Collaborator Author

Related tests are added here: #669

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.

pg_service.conf no longer searched for in a good default

1 participant