#176 RFC: use absolute paths for %license files instead of copying them twice
Closed: Fixed 2 years ago by zbyszek. Opened 2 years ago by decathorpe.

Using relative paths for %license files results in them being copied to the buildroot and included in packages twice:

  • once to the crate's "home directory", alongside all other crate files
  • once to %{_licensedir}

Would it be compliant or make sense to mark the absolute paths in the "home directory" with %license instead of including them twice?


I'm all in to do so. Also with a %doc ones.

The only tricky part with the %doc, if the files are actually used in some build.rs or in other places, they won't be installed with tsflags=nodocs which will either make build fail or result could be different.

What you are proposing was my initial idea when I opened #41 as without it, paths were way too long :)

Metadata Update from @zbyszek:
- Issue assigned to zbyszek

2 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #178 Merged 2 years ago