Open khurshid-alam opened 1 year ago
Hmm, could you provide some links to authoritative documentation that this is indeed "wrong", and not just for Debian but also distros in general? and the best practices with Meson in this case.
Note that we use flatpak as the primary/official upstream packaging mechanism, so I'd like to be sure this is an upstream problem rather than "it's the distro's choice", too. I know nothing about packaging, so someone would need to provide a patch for this, ideally with some confirmation/input from distro packagers and linuxland pythonistas to confirm that the patch has the right approach and won't break things.
GTG itself is not a python library and shouldn't be installed in the same location as liblarch.
Many python programs are not python libraries. That doesn't mean they are forbidden to be installed to python's global import path. It just means that if they do so, other software isn't allowed to import the GTG internal code, and if they do then they should expect to break.
What is the advantage of moving GTG/
out of the global import path?
import GTG
no matter how ill advisedWhat is the disadvantage?
you make it physically impossible for people to do import GTG no matter how ill advised
Yes, it is basically because of that reason. Citing security reasons.
Hmm, could you provide some links to authoritative documentation that this is indeed "wrong", and not just for Debian but also distros in general?
There is no such absolute prefered method documented. But when you ask on debian mailing list, they advised against it because of above reason, at least on deb based distros.
But I am ok with since it doesn't stop gtg from working. So it can be closed.
I would appreciate additional details about how installing GTG in a place where people can inadvisably do import GTG
is a "security" problem.
What hacking vulnerability is introduced by this? I'd love to know. Maybe you can provide a link to the Debian mailing list where someone claimed this is the case?
Debian Salsa building with
dh $@ --with python3 --buildsystem=meson
I think it's due to meson build. GTG itself is not a python library and shouldn't be installed in the same location as liblarch.
The install file correctly put authors into
usr/share/doc/gtg/
and xpm into /usr/share/pixmaps but not core files.I am posting here since salsa repo doesn't have any issue tracker.