-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed: install python files for debian in dist-packages and use sit…
…e-packages for others
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
usr/lib/python*/site-packages/cec/* | ||
usr/lib/python*/dist-packages/cec/* | ||
usr/bin/pyCecClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0a97062
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.
That is IMO stupid commit:
In file debian/python-libcec.install you are using hardcoded usr/lib/python/dist-packages/cec/** and in file src/libcec/cmake/CheckPlatformSupport.cmake you're setting path depending of /etc/lsb-release exists or not.
That never works for all situations.
Btw, apt-file tells me /etc/lsb-release is in package debian-edu-config, I would assume nobody has installed that package
0a97062
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 would assume that every Debian based distro installed has this, and it seems to be working well. Are you sure that's it's not a stupid comment?
0a97062
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.
Hmmm, that's strange. I do not have that file installed, checked 4 debian installations
0a97062
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.
dpkg -L base-files | grep lsb-release shows NOTHING
0a97062
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.
https://packages.debian.org/sid/lsb-release
While it is intended for use by LSB packages, this command may also be useful for programmatically distinguishing between a pure Debian installation and derived distributions.
It's even advertised for this purpose in Debian's package db?
0a97062
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.
Seems that Debian has stuck it in a separate package, while Ubuntu stuck it in it's base package. Do you have some other file to distinguish between Debian(based) and something else? The
dist-packages
directory is something that's not standard, but something that Debian package maintainers chose to use.0a97062
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.
Sure, but it's lsb_release and not /etc/lsb-release
0a97062
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.
Why not use lsb_release -i?
0a97062
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.
Is that installed by default on plain Debian too? Then it would be an easy change.
0a97062
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.
Maybe better solution:
check content of /etc/os-release
This file is part of base-files package
0a97062
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'm not alone 😄
Issue #314