Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
FWIW, the "Debian native" way to write this would've been including
/usr/share/dpkg/vendor.mk(or/usr/share/dpkg/default.mkwhich brings in even more useul variables) and checking whetherDEB_VENDORisRaspbian👍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.
Oh, that sounds nice. Do you have an example what that looks like? (For me to "code by numbers")? So those files don't go into the
debian/directory, but elsewhere?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.
They'd go here -- Tianon just means using a makefile
include.Good to know; I cribbed this from other examples of rules that didn't make light of that file 🙈
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.
Yeah, sorry; more concretely, something like:
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.
(but as it's temporary, I don't think it really matters all that much)
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.
Thanks!! ❤️❤️
For sure! Current patch does the job, so I'm ok with it for now. But it's good to learn how to do these things correctly; there's a risk in having "the wrong way" present as it's all too easy to (as one does) taking the "wrong way" as an example and such things starting to spread around.
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.
I got the "wrong way" from some of the best maintained packages in Debian, so you're definitely right 😂
In any case, I think I will have a proposal next week for simplifying this whole mess and putting it semi-permanently out of mind.