Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Thu, 2022-02-17 at 10:02 +, Jonathan Dowland wrote: > On Mon, Feb 14, 2022 at 11:28:18AM +0100, Stella Ashburne wrote: > > I wonder who embed Thai fonts and code in the first place.. > > อย่าเหยียดเชื้อชาติ +1 -- Tixy
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Mon, Feb 14, 2022 at 11:28:18AM +0100, Stella Ashburne wrote: I wonder who embed Thai fonts and code in the first place.. อย่าเหยียดเชื้อชาติ -- Please do not CC me for listmail. Jonathan Dowland ✎j...@debian.org https://jmtd.net
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Thu, Feb 17, 2022 at 09:41:30AM -, Curt wrote: > On 2022-02-17, wrote: [...] > > On Wed, Feb 16, 2022 at 02:37:02PM -0600, David Wright wrote: [...] > >> Tomas's question seems to me more rhetorical than a scientific inquiry. > > > > In a way, yes. I was trying my best to animate people to look into stuff. > > The answer is, nevertheless, a good read. > > Yeah, I really meant to refer to Stella, sorry. No need. I enjoyed the exchange. All of it. Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Thu, Feb 17, 2022 at 09:40:40AM -, Curt wrote: > On 2022-02-16, David Wright wrote: [...] > > Tomas's question seems to me more rhetorical than a scientific inquiry. > > Great video, though. Thanks. > > Actually, I wanted to allude to Stella but should've obviously just > responded to one of *her* posts. > > And when Feynman refers to someone from another planet I think instead > of AI, and how deep you have to go in knowledge of all sorts, in > successively deeper frameworks of truth, before you can arrive at what > we do "naturally." Add to it: "it's a process, not a state", and then you've got the whole mess :) Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-17, wrote: > > --Isw399PmXxwTK8QE > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Wed, Feb 16, 2022 at 02:37:02PM -0600, David Wright wrote: >> On Wed 16 Feb 2022 at 15:38:22 (-), Curt wrote: >> > On 2022-02-16, wrote: > > [...] > >> > > So why not do your research yourself? >> > > >> > > ;-) >> > =20 >> > Of course, it=E2=80=99s an excellent question [...] > >> > https://fs.blog/richard-feynman-on-why-questions/ >>=20 >> Tomas's question seems to me more rhetorical than a scientific inquiry. > > In a way, yes. I was trying my best to animate people to look into stuff. > The answer is, nevertheless, a good read. Yeah, I really meant to refer to Stella, sorry. >> Great video, though. Thanks. > > Absolutely. > > Cheers > --=20 > t > > --Isw399PmXxwTK8QE > Content-Type: application/pgp-signature; name="signature.asc" > > > --Isw399PmXxwTK8QE-- > > --
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-16, David Wright wrote: > On Wed 16 Feb 2022 at 15:38:22 (-), Curt wrote: >> On 2022-02-16, wrote: >> > >> >> So why not create libraries for Burmese, Laotian and Cambodian (Khmer) la= >> > nguages? Why don't we have libburmese, liblaotian and libkhmer and make >> > the= >> > m essential dependencies for libpango? >> > >> > So why not do your research yourself? >> > >> > ;-) >> >> Of course, it’s an excellent question. But the problem, you see, when you >> ask >> why something happens, how does a person answer why something happens? For >> example, Aunt Minnie is in the hospital. Why? Because she went out, slipped >> on >> the ice, and broke her hip. That satisfies people. It satisfies, but it >> wouldn’t satisfy someone who came from another planet and knew nothing about >> why when you break your hip do you go to the hospital. How do you get to the >> hospital when the hip is broken? Well, because her husband, seeing that her >> hip >> was broken, called the hospital up and sent somebody to get her. All that is >> understood by people. And when you explain a why, you have to be in some >> framework that you allow something to be true. Otherwise, you’re perpetually >> asking why. >> >> https://fs.blog/richard-feynman-on-why-questions/ > > Tomas's question seems to me more rhetorical than a scientific inquiry. > Great video, though. Thanks. Actually, I wanted to allude to Stella but should've obviously just responded to one of *her* posts. And when Feynman refers to someone from another planet I think instead of AI, and how deep you have to go in knowledge of all sorts, in successively deeper frameworks of truth, before you can arrive at what we do "naturally." > Cheers, > David. > > --
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Thu, Feb 17, 2022 at 07:05:33AM +0100, Stella Ashburne wrote: > Dearie > > > Sent: Wednesday, February 16, 2022 at 10:05 PM > > From: to...@tuxteam.de > > To: debian-user@lists.debian.org > > Subject: Re: Uninstalling a package removes other essential packages: What > > is the best course of action? > > > > > > So why not do your research yourself? > > > Honestly I don't know where to start. There are, of course, many ways to go about it. And, of course, it has the potential to eat all the time resources available, and then some. So everyone has to choose where to cut :) I'll present one way here, which always reminds me of the incredible gift we have: access to most of the source code for the things we use. For our case (libthai), start with apt. The library package is called libthai0, so (I'm on buster; YMMV): tomas@trotzki:~$ apt rdepends libthai0 libthai0 Reverse Depends: Depends: libthai-dev (= 0.1.28-3) Depends: php-wikidiff2 (>= 0.1.25) Depends: libsombok3 (>= 0.1.12) Depends: scim-thai (>= 0.1.12) Suggests: libqt5core5a Depends: libpango-1.0-0 (>= 0.1.25) Depends: libm17n-0 (>= 0.1.12) Depends: ibus-libthai (>= 0.1.19) Breaks: libthai-data (<< 0.1.10) Depends: gtk-im-libthai (>= 0.1.12) Depends: gtk3-im-libthai (>= 0.1.12) That gives you the "reverse dependencies", i.e. which packages do depend on libthai? Many of those (roughly: those having "im" in their name) are "input methods". Also that ibus- thing. The two dependencies with potential to "spread" are libpango (nearly everything rendering text these days uses that) and libqt5core5a (if you are using Qt applications). Let's have a look at this libpango-1.0-0: tomas@trotzki:~$ apt show libpango-1.0-0 Package: libpango-1.0-0 Version: 1.46.2-3 Priority: optional Section: libs Source: pango1.0 Maintainer: Debian GNOME Maintainers Installed-Size: 441 kB Depends: fontconfig (>= 2.1.91), libc6 (>= 2.14), libfribidi0 (>= 1.0.0), libglib2.0-0 (>= 2.61.2), libharfbuzz0b (>= 2.1.1), libthai0 (>= 0.1.25) [...] So the source package is pango1.0. You could install the source package and have a look into it, but Debian offers you: https://sources.debian.org/ Enter "pango1.0" into that little box ("by package name"). If you're bold, you can just stick that into the URL https://sources.debian.org/search/pango1.0/ You click on that one URL and there you have the sources, nicely sorted by Debian version. Click on yours (mine is buster). You'll notice that little box on the right labelled "search" (there's also a dropdown: we'll ignore that). It is pre-set with "package:pango1.0". We add to it (separated by a space) "libthai" and click on "search". Now it searches all of pango's sources for occurrences of libthai. I'll leave that here. Explore. Come back with questions. And mind those rabbit holes. Only pick the enjoyable ones :) Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Dearie > Sent: Wednesday, February 16, 2022 at 9:45 PM > From: "The Wanderer" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > There are a few possible answers. > I love reading your answers and found them to be informative. And I appreciate your effort and time spent on writing them. Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Dearie > Sent: Wednesday, February 16, 2022 at 10:05 PM > From: to...@tuxteam.de > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > So why not do your research yourself? > Honestly I don't know where to start. You're my daddy's contemporary and besides, I wasn't even born when Linux or Debian burst onto the scene. > As far as I can see [1], Thai standardisation is the farthest > along. I guess Burmese, Laotian and Cambodian are waiting for > helping hands (yours, perhaps?). > I do not possess the technical skills to accomplish it. Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Wed, Feb 16, 2022 at 02:37:02PM -0600, David Wright wrote: > On Wed 16 Feb 2022 at 15:38:22 (-), Curt wrote: > > On 2022-02-16, wrote: [...] > > > So why not do your research yourself? > > > > > > ;-) > > > > Of course, it’s an excellent question [...] > > https://fs.blog/richard-feynman-on-why-questions/ > > Tomas's question seems to me more rhetorical than a scientific inquiry. In a way, yes. I was trying my best to animate people to look into stuff. The answer is, nevertheless, a good read. > Great video, though. Thanks. Absolutely. Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Wed 16 Feb 2022 at 15:38:22 (-), Curt wrote: > On 2022-02-16, wrote: > > > >> So why not create libraries for Burmese, Laotian and Cambodian (Khmer) la= > > nguages? Why don't we have libburmese, liblaotian and libkhmer and make the= > > m essential dependencies for libpango? > > > > So why not do your research yourself? > > > > ;-) > > Of course, it’s an excellent question. But the problem, you see, when you ask > why something happens, how does a person answer why something happens? For > example, Aunt Minnie is in the hospital. Why? Because she went out, slipped > on > the ice, and broke her hip. That satisfies people. It satisfies, but it > wouldn’t satisfy someone who came from another planet and knew nothing about > why when you break your hip do you go to the hospital. How do you get to the > hospital when the hip is broken? Well, because her husband, seeing that her > hip > was broken, called the hospital up and sent somebody to get her. All that is > understood by people. And when you explain a why, you have to be in some > framework that you allow something to be true. Otherwise, you’re perpetually > asking why. > > https://fs.blog/richard-feynman-on-why-questions/ Tomas's question seems to me more rhetorical than a scientific inquiry. Great video, though. Thanks. Cheers, David.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-16, wrote: > >> So why not create libraries for Burmese, Laotian and Cambodian (Khmer) la= > nguages? Why don't we have libburmese, liblaotian and libkhmer and make the= > m essential dependencies for libpango? > > So why not do your research yourself? > > ;-) > Of course, it’s an excellent question. But the problem, you see, when you ask why something happens, how does a person answer why something happens? For example, Aunt Minnie is in the hospital. Why? Because she went out, slipped on the ice, and broke her hip. That satisfies people. It satisfies, but it wouldn’t satisfy someone who came from another planet and knew nothing about why when you break your hip do you go to the hospital. How do you get to the hospital when the hip is broken? Well, because her husband, seeing that her hip was broken, called the hospital up and sent somebody to get her. All that is understood by people. And when you explain a why, you have to be in some framework that you allow something to be true. Otherwise, you’re perpetually asking why. https://fs.blog/richard-feynman-on-why-questions/ Stella!!!
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Wed, Feb 16, 2022 at 02:31:21PM +0100, Stella Ashburne wrote: > Hello [...] > So why not create libraries for Burmese, Laotian and Cambodian (Khmer) > languages? Why don't we have libburmese, liblaotian and libkhmer and make > them essential dependencies for libpango? So why not do your research yourself? ;-) As far as I can see [1], Thai standardisation is the farthest along. I guess Burmese, Laotian and Cambodian are waiting for helping hands (yours, perhaps?). Perhaps we get a libmranmabhasa, then, who knows? Cheers [1] https://en.wikibooks.org/wiki/FOSS_Localization/Localization_Efforts_in_the_Asia-Pacific -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-16 at 08:31, Stella Ashburne wrote: > Hello >> What if someone sends you a document that has one or more words >> written in Thai? In order to be able to display that document >> correctly, the computer will need code that knows how to handle the >> Thai language. Whether that code is in libthai, or in a more >> general library, or embedded directly in whatever program it is >> that's reading the document, it's still there. >> >> Even if you can be sure you'll never have any reason to want to >> read a document that contains Thai, the same thing applies for >> every other language that doesn't just use the same character set, >> etc., as English. Most of them don't have sufficiently unusual >> and/or complex rules that they need a dedicated library to handle >> them, as Thai apparently does, but they do need something to handle >> whatever rules there may be. > > So why not create libraries for Burmese, Laotian and Cambodian > (Khmer) languages? Why don't we have libburmese, liblaotian and > libkhmer and make them essential dependencies for libpango? There are a few possible answers. A: Because the rules for handling those languages are similar enough to those used for other languages that they can be handled by the non-language-specific code already built in to libpango, but the rules for handling Thai are not. B: Because the rules for handling those languages are similar enough to those used for Thai that they can be handled by the code already present in libthai, so there's no need for another library. C: Because the people who wrote the language-specific code to handle those languages decided to write it as part of libpango, rather than as an external library which libpango can depend on. I don't know which of those answers is accurate, and I can't rule out that other answers may be possible as well, but those are the possibilities that come quickly to mind. It may be instructive to note that the listed maintainer of libthai0 is also the person who filed bug 620001, against libpango, about a rendering issue that affects (affected?) both Lao and Thai. This leaves me thinking that option B is probably less likely than the others, but I don't know that for certain. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw signature.asc Description: OpenPGP digital signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hello > Sent: Wednesday, February 16, 2022 at 10:04 AM > From: "The Wanderer" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > What if someone sends you a document that has one or more words written > in Thai? In order to be able to display that document correctly, the > computer will need code that knows how to handle the Thai language. > Whether that code is in libthai, or in a more general library, or > embedded directly in whatever program it is that's reading the document, > it's still there. > > Even if you can be sure you'll never have any reason to want to read a > document that contains Thai, the same thing applies for every other > language that doesn't just use the same character set, etc., as English. > Most of them don't have sufficiently unusual and/or complex rules that > they need a dedicated library to handle them, as Thai apparently does, > but they do need something to handle whatever rules there may be. > So why not create libraries for Burmese, Laotian and Cambodian (Khmer) languages? Why don't we have libburmese, liblaotian and libkhmer and make them essential dependencies for libpango? Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-15 at 12:56, Stella Ashburne wrote: > Hello The Wanderer >> Do you have any reason to believe that it might? As compared to any >> other random library that Debian provides. > > No, I don't have the technical knowledge to audit libthai. My point > is that why pull in non-English dependencies for an English-language > installation Because just because the main OS is configured to be in English, doesn't mean there won't be a time when the user needs to read a document written in that non-English language. What if someone sends you a document that has one or more words written in Thai? In order to be able to display that document correctly, the computer will need code that knows how to handle the Thai language. Whether that code is in libthai, or in a more general library, or embedded directly in whatever program it is that's reading the document, it's still there. Even if you can be sure you'll never have any reason to want to read a document that contains Thai, the same thing applies for every other language that doesn't just use the same character set, etc., as English. Most of them don't have sufficiently unusual and/or complex rules that they need a dedicated library to handle them, as Thai apparently does, but they do need something to handle whatever rules there may be. > Doing so may increase the chance of attacks by hackers. Not any more than pulling in any other dependency does. > The argument that an app, library or distro is open source does not > really mitigate the risks of attacks. I hadn't made that argument, I don't think, so this seems like a non sequitur. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw signature.asc Description: OpenPGP digital signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue, Feb 15, 2022 at 07:00:59PM +0100, Stella Ashburne wrote: > Dearie [...] > > Heck, I remember the times where there was a Germanized version of ASCII [...] > Gosh...you have just revealed your age(my father's contemporary perhaps?) Could well be :-) Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue, Feb 15 2022 at 06:56:28 PM, Stella Ashburne wrote: > Hello The Wanderer > >> Sent: Monday, February 14, 2022 at 8:48 PM >> From: "The Wanderer" >> To: debian-user@lists.debian.org >> Subject: Re: Uninstalling a package removes other essential >> packages: What is the best course of action? >> >> >> Do you have any reason to believe that it might? As compared to any >> other random library that Debian provides. >> > No, I don't have the technical knowledge to audit libthai. My point is > that why pull in non-English dependencies for an English-language > installationDoing so may increase the chance of attacks by > hackers. > > The argument that an app, library or distro is open source does not > really mitigate the risks of attacks. > > Consider the below decade-old bugs that had been "hiding" in plain sight: > > CVE-2016-5195 (Dirty COW) > CVE-2014-0160 (Heartbleed) > CVE-2016-8655 > CVE-2017-6074 > CVE-2021-3156 (Baron_Samedit) > You'll have to make your case in a bug report on the relevant package (pango?). The usual debian position is to enable as many options as possible, so that the same binary package will work for a wide variety of users. If this does not suit your security posture, you'll need to do one or more of the following: - take your concerns to the upstream developers (they might need more concrete reasons than what you have so far) - build the packages yourself with the offending features disabled - uninstall the packages and manage without the additional packages that get removed - isolate the packages you have issues with (and everything that depends on them) in separate virtual machines or other isolation mechanisms that satisfy your security requirements - pay someone to audit the codebase so your security needs are met (but first check with upstream if they will be willing to act on issues discovered during audit; if not you'll need other arrangements). Perhaps you could offer to run one or more of the automated tools that can help with finding security issues (there are various open-source and proprietary tools in this area) -- regards, kushal
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Dearie > Sent: Wednesday, February 16, 2022 at 1:55 AM > From: to...@tuxteam.de > To: "Stella Ashburne" > Cc: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > Heck, I remember the times where there was a Germanized version of ASCII > (yeah, 7 bit, curly and square brackets, and I think backslash, solidus > and a couple of other innocent signs were sacrificed for the umlauts). > > Needless to say, mixing C code with comments in German was... strange. > > Then, the upper bit came, and we got Latin-1; but still you couldn't > have German and, say, Greek or Russian in the same text. Now I can just > say "γεια σου". That easy. > Gosh...you have just revealed your age(my father's contemporary perhaps?) Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hello The Wanderer > Sent: Monday, February 14, 2022 at 8:48 PM > From: "The Wanderer" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > Do you have any reason to believe that it might? As compared to any > other random library that Debian provides. > No, I don't have the technical knowledge to audit libthai. My point is that why pull in non-English dependencies for an English-language installationDoing so may increase the chance of attacks by hackers. The argument that an app, library or distro is open source does not really mitigate the risks of attacks. Consider the below decade-old bugs that had been "hiding" in plain sight: CVE-2016-5195 (Dirty COW) CVE-2014-0160 (Heartbleed) CVE-2016-8655 CVE-2017-6074 CVE-2021-3156 (Baron_Samedit) Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue, Feb 15, 2022 at 06:35:46PM +0100, Stella Ashburne wrote: [...] > You are right. I would fix them if I had the knowledge and competency. Back to the libthai thing. Perhaps it is unfixable nowadays: what shall a browser do? Look at this harmless page [1]. Somewhere down there is the Thai translation of the likewise harmless English word "water". Your browser wouldn't be capable to represent that correctly without the rendering capability provided by libthai, I guess. (What I cant say is whether your browser is using the OS provided libthai, via pango, or whether it has ingested an own version of pango with its own version of libthai. This is left as an exercise for the reader). In short: computers have grown up a lot since the good ol' days of ASCII. Sometimes it's difficult to keep up. Heck, I remember the times where there was a Germanized version of ASCII (yeah, 7 bit, curly and square brackets, and I think backslash, solidus and a couple of other innocent signs were sacrificed for the umlauts). Needless to say, mixing C code with comments in German was... strange. Then, the upper bit came, and we got Latin-1; but still you couldn't have German and, say, Greek or Russian in the same text. Now I can just say "γεια σου". That easy. Yes, Unicode is a beast. But it reflects the chaotic and lively mess we humans are! I don't want my ISO-8859-x back thankyouverymuch (but: a friend of mine, who knows a lot, heartily disagrees with me: I might be wrong, after all). Cheers [1] https://en.wiktionary.org/wiki/water/translations -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue, Feb 15, 2022 at 06:26:18PM +0100, Stella Ashburne wrote: > Dearie, > > Thanks for your reply. [...] > We have to make allowance for the fact that some people are quick to judge > others Right. But we have to make allowance for the fact that no one of us is right all the time ;-) Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
> Sent: Tuesday, February 15, 2022 at 7:14 AM > From: "David Wright" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > But in view of that single letter in your reply, and another > post on d-u, I'll not bother to continue this thread. I'm > just not interested in taking what looks to me like a > xenophobic approach to foreign language scripts or anything > else in Debian. > My dear David, I am surprised you are quick to pass judgments on people. I don't think that's you. Me a xenophobe? Nothing can be further from the truth. One of my parents is a diplomat and I spent a significant part of my childhood and adolescence in Asia and Latin America. > People who are genuinely concerned about security vulnerabilities > normally work on fixing them, rather than spreading insinuations > of conspiracies. > You are right. I would fix them if I had the knowledge and competency. Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Dearie, Thanks for your reply. > Sent: Tuesday, February 15, 2022 at 2:48 PM > From: to...@tuxteam.de > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > Please, hold your horses. Lack of knowledge sometimes might > come across as "xenophobic" -- things sometimes clear themselves > once knowledge grows. Give us people a chance to learn :-) > We have to make allowance for the fact that some people are quick to judge others Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue, Feb 15, 2022 at 10:09:35AM -0600, David Wright wrote: > On Tue 15 Feb 2022 at 07:48:57 (+0100), to...@tuxteam.de wrote: > > Please, hold your horses. Lack of knowledge sometimes might > > come across as "xenophobic" [...] > Look back: the OP has had plenty of help from me, and may well > in future. Just not in this thread, not beating up on libthai* > just because they're the only "non-English files" found by > the OP. Was just a shy attempt on my part. If I've failed to convince you, it's my failure. Nevermind Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Tue 15 Feb 2022 at 07:48:57 (+0100), to...@tuxteam.de wrote: > On Mon, Feb 14, 2022 at 05:14:36PM -0600, David Wright wrote: > > [...] > > > Perhaps the simplest way of answering this is to configure > > your system with /etc/default/locale file as LANG=C.UTF-8, > > and unset any specific i18n or L10n settings and see what > > you get. Perhaps try again in 50 years: it could differ. > > I guess that is an avenue of investigation. still, I think > packages like a modern Web browser will pull in such > dependencies, either through the distro or (worse) bringing > in their own versions. A browser can't "know" which scripts > a Web page brings along and will insist in rendering Unicode > correctly. Oh, that's part of the investigation too. For example, I just typed $ less /home/auser/.cache/mozilla/firefox/sole-random.default/cache2/entries/0* and kept pressing → (the zero avoids too long a command line, and → implicitly answers "no" to "binary file. See it anyway?"). That which isn't random text or numbers is almost all in the usual "North Atlantic" English. For me, that it. Others might have different results. I'm afraid I won't be around in 50 years time. > > But in view of that single letter in your reply, and another > > post on d-u, I'll not bother to continue this thread. I'm > > just not interested in taking what looks to me like a > > xenophobic approach to foreign language scripts or anything > > else in Debian. > > Please, hold your horses. Lack of knowledge sometimes might > come across as "xenophobic" -- things sometimes clear themselves > once knowledge grows. Give us people a chance to learn :-) Look back: the OP has had plenty of help from me, and may well in future. Just not in this thread, not beating up on libthai* just because they're the only "non-English files" found by the OP. Cheers, David.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Mon, Feb 14, 2022 at 05:14:36PM -0600, David Wright wrote: [...] > Perhaps the simplest way of answering this is to configure > your system with /etc/default/locale file as LANG=C.UTF-8, > and unset any specific i18n or L10n settings and see what > you get. Perhaps try again in 50 years: it could differ. I guess that is an avenue of investigation. still, I think packages like a modern Web browser will pull in such dependencies, either through the distro or (worse) bringing in their own versions. A browser can't "know" which scripts a Web page brings along and will insist in rendering Unicode correctly. > But in view of that single letter in your reply, and another > post on d-u, I'll not bother to continue this thread. I'm > just not interested in taking what looks to me like a > xenophobic approach to foreign language scripts or anything > else in Debian. Please, hold your horses. Lack of knowledge sometimes might come across as "xenophobic" -- things sometimes clear themselves once knowledge grows. Give us people a chance to learn :-) Cheers -- t signature.asc Description: PGP signature
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Mon 14 Feb 2022 at 11:18:12 (+0100), Stella Ashburne wrote: > > Sent: Monday, February 14, 2022 at 1:02 AM > > From: "David Wright" > > > > Tee-hee. We Brits can sneak our code into Debian without arousing > > suspicion — we just label it "english". That's when we bother to > > label it at all — > > Indeed and the world is fortunate to have James and Jane Bond with their > sidekick Q to maintain world peace. > > Over here, we can count on Jason Bourne, Jack Ryan and Jack Reacher to do the > same job. > > In more recent memory, the real hero is undoubtedly Edward Snowden who > revealed to the world the extent of NSA's snooping. > > > Most of it just slips in as the default language > > of Debian. > > Does Debian have a default language? What is it? Latin? Esperanto? American > English? Perhaps the simplest way of answering this is to configure your system with /etc/default/locale file as LANG=C.UTF-8, and unset any specific i18n or L10n settings and see what you get. Perhaps try again in 50 years: it could differ. But in view of that single letter in your reply, and another post on d-u, I'll not bother to continue this thread. I'm just not interested in taking what looks to me like a xenophobic approach to foreign language scripts or anything else in Debian. People who are genuinely concerned about security vulnerabilities normally work on fixing them, rather than spreading insinuations of conspiracies. Cheers, David.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Mon, Feb 14, 2022 at 11:18:12AM +0100, Stella Ashburne wrote: > Dearie > > > Most of it just slips in as the default language > > of Debian. > > Does Debian have a default language? What is it? Latin? Esperanto? American > English? > Probably N. European English as learned in school - which covers most denizens of the UK, Ireland, Netherlands, Germany, Austria, Switzerland - and also Australia and NZ (and Commonwealth English - which is largely influenced by British spelling - Canadian is a hybrid spelling.) If English is not your first language, then your English will normally be determined by where your English teacher studied. This question came up - I think on debian-devel many years ago - and somebody said, as I remember it: - "British/American English - it really doesn't matter if you'll accept bad English" - and I think that's the right attitude. Debian does support many languages - but the level of translation and percentage of wiki/www.debian.org is significantly higher for some than for others. With every good wish, as ever, Andy Cater > Best regards. > > Stella >
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-14 at 05:28, Stella Ashburne wrote: > Hi Andy > >> From: "Andrew M.A. Cater" >> >> Stella (and others) >> >> This is apparently a long standing bug from pango1.0 >> >> Debian bug #565500 >> >> and has been outstanding for a decade or so. > > And why has the decade-old bug not been resolved, may I ask? I have only a vague guess about this, based on reading the bug report and the other bug reports (not all on the Debian bug tracker) linked from it. Your guess on that front may well be as good as mine; have you read those bug reports? > Won't it pose a security risk such as in escalation of root > privileges? Only if libthai itself contains a security vulnerability which would make such escalation possible - in which case it would be more important and more appropriate to fix that bug than to fix this one. >> Thai poses interesting font, formatting and display properties - if >> you're not Thai, it doesn't matter to you, but, as you can see it's >> fairly well embedded into various libraries. > > I wonder who embed Thai fonts and code in the first place.. I think you're reading this wrong. If you look at the package description for libpango-1.0-0 (which, as pointed out elsewhere, depends on libthai0 and is the reason why libthai0 is installed on your system), you'll see that it says in part: >>> Pango is a library for layout and rendering of text, with an >>> emphasis on internationalization. Pango can be used anywhere >>> that text layout is needed. It includes layout-and-rendering support for many, many languages. What this means in practice is that it implements a set of functions which other programs can call when they want to delegate the task of laying out and rendering text. The benefit of using those functions when writing a program, rather than handling the work yourself, is that A: you have less work to do, and B: you can automatically get layout and rendering right for every language the library supports, rather than having to worry about implementing every single one of them yourself. Most of the languages supported by Pango do not depend on language-specific external libraries; the code to support them is either internal to Pango, or contained in non-language-specific internal libraries. The Thai language (and apparently also related languages, such as Lao) is an exception, because the rules for laying it out and rendering it are both sufficiently complex and sufficiently distinct from those needed by most other languages that it was deemed better to implement that logic as a separate library. Any program that wants to let its text be translated into languages which use layout, etc., rules that differ from the language in which that text was written is likely to use libpango. Because libpango provides this type of support for Thai by depending on an external library, installing any of those programs will result in installing not only libpango-1.0-0, but also libthai0. None of those programs have embedded Thai fonts, or "Thai code" (whatever one might intend that to mean) - at least not by this avenue, and probably not at all. Rather, they have simply delegated layout and rendering work to libpango, by calling appropriate functions (which will cause the program to break if libpango is not available). libpango has also not embedded either of those things. Rather, it has delegated the task of laying out and rendering Thai-language text to libthai, by calling appropriate functions (which will cause the library, and the programs calling it, to break if libthai is not available). If a program on your system is configured to display Thai text - for example, if you go to a Website which contains text written in that language, such as https://en.wikipedia.org/wiki/Thai_language, and your browser is configured to display that Website as intended - then very probably the program will call the functions in libpango, which will recognize the Thai language and call the functions in libthai, which will do the layout-and-rendering work, and return the result up the stack, so that the program will be able to display the text correctly. If no program on your system ever encounters Thai text in a way that makes it want to call those functions, then the code in libthai will never actually run on your system. (And therefore your system will not be at risk from any security vulnerabilities contained in that code.) Please note that the only way that Thai is special here is that its support is provided by a language-specific external library. Pango contains comparable support for many, many other languages, they're just all implemented internally or using non-language-specific external libraries. Given that the intent of libpango is to provide support for layout and rendering of all of these languages, the alternative to having it depend on libthai0 would not be to omit the code which supports these things; rather, it would be to include that code in libpango-1.0-0 itself
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hi Andy > Sent: Sunday, February 13, 2022 at 9:14 PM > From: "Andrew M.A. Cater" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > Stella (and others) > > This is apparently a long standing bug from pango1.0 > > Debian bug #565500 > > and has been outstanding for a decade or so. And why has the decade-old bug not been resolved, may I ask? Won't it pose a security risk such as in escalation of root privileges? > Thai poses interesting font, > formatting and display properties - if you're not Thai, it doesn't matter > to you, but, as you can see it's fairly well embedded into various > libraries. I wonder who embed Thai fonts and code in the first place.. > It's about as relevant to you as the fact that the Debian installer supports > several languages: if you don't use them in install and set up the locales > they're essentially irrelevant but are there for the convenience of people > who need them. Indeed, I don't use non-English language versions during install and/or set up Thai-specific locales but libthai still ends up in my installed system. My concern is whether libthai poses a security risk to Debian users. Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Dearie > Sent: Monday, February 14, 2022 at 1:02 AM > From: "David Wright" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > Tee-hee. We Brits can sneak our code into Debian without arousing > suspicion — we just label it "english". That's when we bother to > label it at all — Indeed and the world is fortunate to have James and Jane Bond with their sidekick Q to maintain world peace. Over here, we can count on Jason Bourne, Jack Ryan and Jack Reacher to do the same job. In more recent memory, the real hero is undoubtedly Edward Snowden who revealed to the world the extent of NSA's snooping. > Most of it just slips in as the default language > of Debian. Does Debian have a default language? What is it? Latin? Esperanto? American English? Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Sun 13 Feb 2022 at 07:36:55 (+0100), Stella Ashburne wrote: > Hello Dearie > > > Sent: Sunday, February 13, 2022 at 8:34 AM > > From: "David Wright" > > To: debian-user@lists.debian.org > > Subject: Re: Uninstalling a package removes other essential packages: What > > is the best course of action? > > > > Installing those two would add 170 more packages to my system, so > > OMG > > > > What is the best course of action? > > > > Leave it. Worry about bigger issues than the odd library. > > > For all you know, the odd library which is this Thai file in question may > contain poorly designed code, ill-intentioned designed code or backdoors that > enable(s) root privileges without a user's direct intervention. Tee-hee. We Brits can sneak our code into Debian without arousing suspicion — we just label it "english". That's when we bother to label it at all — Most of it just slips in as the default language of Debian. And Linux. And computing in general. And the world. Cheers, David.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Stella (and others) This is apparently a long standing bug from pango1.0 Debian bug #565500 and has been outstanding for a decade or so. Thai poses interesting font, formatting and display properties - if you're not Thai, it doesn't matter to you, but, as you can see it's fairly well embedded into various libraries. It's about as relevant to you as the fact that the Debian installer supports several languages: if you don't use them in install and set up the locales they're essentially irrelevant but are there for the convenience of people who need them. Hope this helps. With every good wish, as ever, Andy Cater
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hello, On Sun, Feb 13, 2022 at 07:36:55AM +0100, Stella Ashburne wrote: > > From: "David Wright" > > Leave it. Worry about bigger issues than the odd library. > > > For all you know, the odd library which is this Thai file in > question may contain poorly designed code, ill-intentioned > designed code or backdoors that enable(s) root privileges without > a user's direct intervention. Wait until you find out that every single Intel CPU in the world has a full install of Minix OS running inside of it. General computing - it'll be the death of us! Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Sun, Feb 13, 2022 at 07:31:58AM +0100, Stella Ashburne wrote: > Hello Dearie > > I am happy to hear from you again and hope that everything's fine with you > and your family. > > > Sent: Sunday, February 13, 2022 at 6:23 AM > > From: "David" > > To: "debian-user" > > Subject: Re: Uninstalling a package removes other essential packages: What > > is the best course of action? > > > > > > But, why do you care? There may be many packages installed > > that you will never notice that you will never use. > > Why pick on this one? > > > > libthai appears to not occupy much disk space: > > > > > > So there's hardly any win for the effort. > > > > Indeed, you asked a very pertinent question. > > "Why pick on this one?", you asked. > > It just happens that this file was in my installed Debian. I have checked for > other non-English files and found none other than Thai files. > > "But, why do you care?" you wondered. > > I care because I am worried that it may contain poorly designed code or > backdoors that enable root privileges without my explicit intervention. > Nobody has bothered to audit the Thai files that I mentioned for integrity > and probable malicious activity. > > > Alternatively, don't install lxqt-core. Only install what you want. > > Some ideas here: > > https://wiki.debian.org/ReduceDebian > > > > Naturally this kind of thing takes time and effort which you may > > or may not find is worthwhile depending on your goals, and > > what you choose to spend productive time doing. > > > You're right. I don't have the time nor the intellectual capacity > to customize my Debian setup. I'll just have to look for other > ways to install a custom Debian without foreign-language files. I think there is a more fundamental issue here, that may call in to question whether Debian is suitable for you at all. You focus on "foreign-language files" perhaps because with limited experience these stand out to you as being worthless to you, so a prime candidate for removal in the goal of having the most slimmed-down and therefore secure operating system. The problem is that this is antithetical to the entire way that Debian is designed. Since Debian distributes binary packages, someone at some point has to decide what optional features each package will have baked into it, and everyone gets those (and all their dependencies) whether they use those features or not. Now in some cases the programs themselves can detect at runtime what features are present and disable those that aren't. This enables the package maintainer to split up the package into a core package and several optional packages (might be "Recommends" rather than "Depends" in Debian parlance). So in that case there is some degree of control over what features are present. Also there are some packages that can be compiled in such different ways that they warrant having different variants with different compile-time options. For example, there is exim-daemon-light which does the basic job, but for a more feature-rich experience you'd want exim-daemon-heavy, which is the same application but with many extras compiled in and a much bigger dependency list as a result. But these examples are outliers and most moderately complex packages in Debian have just one variant and no modularity, so the maintainer has erred on the side of features and enabled pretty much everything. Therefore what I am saying is, Debian starts from a position of enabling and installing a lot of dependencies that you may never use, so if you don't like that, you don't like Debian. I am suggesting that the only reason why this isn't more obvious to you is that you probably don't notice what (the fictional example) libfoobarbaz3 might be, but you DO notice libthai and wonder why you have Thai things on your system. Yet both things have the possibility to include buggy code that an attacker might leverage. The task you seem to want to set yourself, that of auditing what is the minimal software requirement and only installing that, is a big one. I am not convinced that it's a good use of time and on the whole the risk proposition of having unused and unaudited code sitting on your storage isn't that bad especially if you take other steps to improve security ("defence in depth"). However, it is your time to use as you please. I am suggesting that if you want to do this, Debian may not be a great place to start from. If you want an operating system where you have high levels of customisation over how each and every package is compiled, such that you can disable every feature that you don't need, I think you want a source-based operating system like Gentoo, NixOS or Guix. Or you could go for one like Arch where the core operating system is quite small but you can build additional software to your whim: https://wiki.archlinux.org/title/Arch_Build_System If that "ports" style of system appeals, then you may even consider going for something BSD-based like OpenBSD
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hello Dearie > Sent: Sunday, February 13, 2022 at 8:34 AM > From: "David Wright" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > Installing those two would add 170 more packages to my system, so OMG > > > > What is the best course of action? > > Leave it. Worry about bigger issues than the odd library. > For all you know, the odd library which is this Thai file in question may contain poorly designed code, ill-intentioned designed code or backdoors that enable(s) root privileges without a user's direct intervention. Best regards. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hello Dearie I am happy to hear from you again and hope that everything's fine with you and your family. > Sent: Sunday, February 13, 2022 at 6:23 AM > From: "David" > To: "debian-user" > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > But, why do you care? There may be many packages installed > that you will never notice that you will never use. > Why pick on this one? > > libthai appears to not occupy much disk space: > > > So there's hardly any win for the effort. > Indeed, you asked a very pertinent question. "Why pick on this one?", you asked. It just happens that this file was in my installed Debian. I have checked for other non-English files and found none other than Thai files. "But, why do you care?" you wondered. I care because I am worried that it may contain poorly designed code or backdoors that enable root privileges without my explicit intervention. Nobody has bothered to audit the Thai files that I mentioned for integrity and probable malicious activity. > Alternatively, don't install lxqt-core. Only install what you want. > Some ideas here: > https://wiki.debian.org/ReduceDebian > > Naturally this kind of thing takes time and effort which you may > or may not find is worthwhile depending on your goals, and > what you choose to spend productive time doing. > You're right. I don't have the time nor the intellectual capacity to customize my Debian setup. I'll just have to look for other ways to install a custom Debian without foreign-language files.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Sat 12 Feb 2022 at 17:03:06 (+0100), Stella Ashburne wrote: > I did a minimal install of LXQt: > > sudo apt install lxqt-core lightdm > > and discovered that the following two packages were installed as well: > > libthai-data/stable,now 0.1.28-3 all [installed,automatic] > libthai0/stable,now 0.1.28-3 amd64 [installed,automatic] Installing those two would add 170 more packages to my system, so I presume quite a lot more besides those two were installed on yours. > *I do not speak or write Thai* Nor I. > When I did the following > > sudo apt remove libthai* > > I was very surprised to see that many packages that I think are essential to > running Debian properly would be removed if I answered "Yes" to the question > "Do you want to continue?" > > What should I do? You should type: $ apt-cache rdepends libthai0 and notice that the printed list includes libpango-1.0-0. So now type: $ apt-cache rdepends libpango-1.0-0 | less and that shows the cause of your problem. Whether or not you read Thai, in order to typeset a document that contains, say, an aphorism in a foreign language, you need to at least know how to lay out that language, which includes how its words break or are spaced. >From a very superficial reading of APT-ish metadata, I'd guess that you might have spotted the language Thai because there are some wrinkles in pango's support for it, and perhaps those led to libthai* being linked to it. Anyway, the upshot is that you'll have a job to run a system without pango's support for text. > What is the best course of action? Leave it. Worry about bigger issues than the odd library. Cheers, David.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On Sun, 13 Feb 2022 at 08:33, Stella Ashburne wrote: > > 3. Remove it some sneaky that only removes libthai but leaves everything > > else the same, and have things break and or apt/dpkg complain. > > > Could you show me how to do it please? Thanks. Hi Stella, With a small effort, you can try something like this: https://wiki.debian.org/Packaging/HackingDependencies But, why do you care? There may be many packages installed that you will never notice that you will never use. Why pick on this one? libthai appears to not occupy much disk space: $ for n in $(dpkg -L libthai-data libthai0) ; do if [[ -f "$n" ]] && [[ ! -h "$n" ]] ; then ls -l "$n" ; fi ; done -rw-r--r-- 1 root root 9314 2019-08-27 10:56 /usr/share/doc/libthai-data/changelog.Debian.gz -rw-r--r-- 1 root root 28215 2018-08-01 15:08 /usr/share/doc/libthai-data/changelog.gz -rw-r--r-- 1 root root 2450 2019-08-27 10:56 /usr/share/doc/libthai-data/copyright -rw-r--r-- 1 root root 579256 2019-08-27 10:56 /usr/share/libthai/thbrk.tri -rw-r--r-- 1 root root 41000 2019-08-27 10:56 /usr/lib/x86_64-linux-gnu/libthai.so.0.3.1 -rw-r--r-- 1 root root 9314 2019-08-27 10:56 /usr/share/doc/libthai0/changelog.Debian.gz -rw-r--r-- 1 root root 28215 2018-08-01 15:08 /usr/share/doc/libthai0/changelog.gz So there's hardly any win for the effort. Alternatively, don't install lxqt-core. Only install what you want. Some ideas here: https://wiki.debian.org/ReduceDebian Naturally this kind of thing takes time and effort which you may or may not find is worthwhile depending on your goals, and what you choose to spend productive time doing.
Re: Uninstalling a package removes other essential packages: What is the best course of action?
Hi, > Sent: Sunday, February 13, 2022 at 12:35 AM > From: "Bijan Soleymani" > To: debian-user@lists.debian.org > Subject: Re: Uninstalling a package removes other essential packages: What is > the best course of action? > > > 3. Remove it some sneaky that only removes libthai but leaves everything > else the same, and have things break and or apt/dpkg complain. > Could you show me how to do it please? Thanks. Stella
Re: Uninstalling a package removes other essential packages: What is the best course of action?
On 2022-02-12 11:03, Stella Ashburne wrote: What should I do? What is the best course of action? It seems that basic X windows or GUI apps are compiled with libthai support. This is probably done in a way that they won't run without it being installed (failed to load due to missing library). If you remove it you probably won't be able to run those programs. It would seem your options are: 1. Keep libthai installed 2. Remove it the way you are trying to do and lose all those GUI apps and libraries 3. Remove it some sneaky that only removes libthai but leaves everything else the same, and have things break and or apt/dpkg complain. Bijan