-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 automake program name transformations #9190
Conversation
Automake can perform program name transformations at install time. However, arc_summary has its own name transformation taking place, which interferes with the automake transforms. The automake transforms must be taken into account in order to resolve the conflict. Signed-off-by: Ryan Moeller <[email protected]>
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.
Neat, I wasn't aware of this functionality. Is --program-transform-name
needed by ZoF, or did you just happen to notice this functionality was missing?
We were at some point looking for ways to have ZoF and the in-tree ZFS utils coexist during testing/development, and one of the ideas was to add a suffix to the ZoF versions of the binaries. With a little research I found the program name transformation functionality, and this is where the build broke when I tried it out. |
@mattmacy would you mind providing a second review for this. |
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.
LGTM
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.
LGTM
Oops, didn't update the page :(
Codecov Report
@@ Coverage Diff @@
## master #9190 +/- ##
==========================================
+ Coverage 79.11% 79.17% +0.05%
==========================================
Files 400 400
Lines 122000 122000
==========================================
+ Hits 96524 96593 +69
+ Misses 25476 25407 -69
Continue to review full report at Codecov.
|
Motivation and Context
Automake can perform program name transformations at install time. However, arc_summary has its own name transformation taking place, which interferes with the automake transforms. The automake transforms must be taken into account in order to resolve the conflict.
Description
The program name transform is a sed script available to make. The name of the arc_summary program must be transformed using this script in order to successfully rename it from arc_summary2 or arc_summary3 to arc_summary when program name transforms have been used.
How Has This Been Tested?
I have been building and testing ZFS on FreeBSD (and on Linux) with this change for a few months.
Try it at home with
./configure --program-suffix=foobar
and a standardmake && sudo make install DESTDIR=/tmp/suffixed
Types of changes
Checklist:
Signed-off-by
.