It's frustrating that the Makefile can't install as a relocatable package

Open
#376 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
perl
Domain
build-system

Research direction

Start by reading the Makefile's install target and the handling of --fixlibdir, --fixbindir, and --fixscriptdir. Trace how these options affect installed paths, then define and verify a separate relocatable-install target that preserves relative package paths without hardcoded locations.

Written by the indexing model from the issue text.

Description

The only way to install lcov using its makefile install target, forces options like --fixlibdir, --fixbindir, and --fixscriptdir, which means that the installation contains hardcoded paths and is not relocatable. Without these options the installation is relocatable, as long as you keep the relative paths of the package correct.

I understand that the current install allows the files in bin to be copied somewhere else, by themselves, and still work. I'm not really sure who would use this feature (you can't move the bin directory since bindir is a hardcoded path) versus something like symlinks, but OK.

It would be great if there were a makefile target that allowed installation in a relocatable fashion. I originally thought maybe it could be done by just moving a lot of these options into a make variable that could be overridden on the command line, but it seems the combination of options is complex enough to make that tricky. A separate target, like install-reloc or something, might be simpler.

Dominant language
Shell
Stars
1.1k
Forks
272
Avg merge
2h 42m
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linux-test-project/lcov

All issues in linux-test-project/lcov

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.