You are not logged in.

#1 2023-04-20 09:25:01

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Is there a way to set a local dependency in pacman.conf?

I know the title isn't very clear, so I'm gonna clarify now: is there a way to make pacman always download firefox-i18n-bg as a dependency along with the firefox package whenever the latter has a new version? Whenever firefox updates, it always reverts back to the English interface and it's becoming rather annoying to have to tinker its settings every single time to make it back to Bulgarian interface. It would be a lot easier if I could somehow force pacman to download the relevant package along with the new firefox version bc when that package is present, firefox automatically sets its interface to be Bulgarian.
The English interface doesn't bother me much but you could say I've grown accustomed to Bulgarian interface, after more than 20 years of using firefox in Bulgarian.


Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#2 2023-04-20 09:48:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,849

Re: Is there a way to set a local dependency in pacman.conf?

Sounds similar to https://bbs.archlinux.org/viewtopic.php?id=285028 .

Does the revert to english also happen for a brand new profile ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-04-20 12:06:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,371
Website

Re: Is there a way to set a local dependency in pacman.conf?

https://wiki.archlinux.org/title/System … nsupported

Firefox and it's language packs should be updated in the repos at the same time, both should be pulled in by a system update.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2023-04-20 17:04:07

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Re: Is there a way to set a local dependency in pacman.conf?

Lone_Wolf wrote:

Sounds similar to https://bbs.archlinux.org/viewtopic.php?id=285028 .

Does the revert to english also happen for a brand new profile ?

Similar - yes, but not the same. Bc in my case if I download the language pack manually, it works automatically and I don't have to dive into firefox's settings.
And I don't wanna have to create a new profile bc it took me literally years to make my profile what it is today. So starting from scratch is out of the question.

My locale is Bulgarian, I'm sure of it bc I've set it myself and the locale file is clear on that either:

LANG=bg_BG.UTF-8
LC_ADDRESS=bg_BG.UTF-8
LC_IDENTIFICATION=bg_BG.UTF-8
LC_MEASUREMENT=bg_BG.UTF-8
LC_MONETARY=bg_BG.UTF-8
LC_NAME=bg_BG.UTF-8
LC_NUMERIC=bg_BG.UTF-8
LC_PAPER=bg_BG.UTF-8
LC_TELEPHONE=bg_BG.UTF-8
LC_TIME=bg_BG.UTF-8

So based on that, the system should detect that my language is Bulgarian and therefore automatically select and download i18n-bg for firefox. But that doesn't happen anymore.

WorMzy wrote:

Firefox and it's language packs should be updated in the repos at the same time, both should be pulled in by a system update.

For a long time the i18n packages used to come with firefox as its dependency but then for unknown reasons someone removed the language pack from being a dependency. Since I doubt that anyone here would heed my request to make i18n a dependency again, so that it comes along with the firefox package, I figured it would be easier if I could find a way to force pacman to download it along with the main package.


Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#5 2023-04-20 17:49:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Is there a way to set a local dependency in pacman.conf?

What exactly are you doing when "installing/updating" firefox? All the language packs get pushed to the repos at the same time by definition of where they are coming from, if you do normal system updates like you should you can't not get them at the same time: https://wiki.archlinux.org/title/System … nsupported

Automatic locale based lookup has not ever been a thing, you always needed to install the lang pack you wanted.

Last edited by V1del (2023-04-20 17:50:39)

Offline

#6 2023-04-20 17:56:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Is there a way to set a local dependency in pacman.conf?

You don't need to force pacman to install both packages at the same time as that's already the default behavior.  The only way you'd have a problem would be if you explicitly forced pacman to not update all packages together as suggested above - this is quite simply not supported and is expected to lead to breakage.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2023-04-20 18:19:41

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Re: Is there a way to set a local dependency in pacman.conf?

To answer V1del and Trilby:
This is the only content of ignorepkg and as you can see, i18n-bg isn't among the ignored packages:

IgnorePkg = pacman-mirrorlist breeze-icons qbittorrent-qt5 pinta lib32-nvidia-utils nvidia-lts nvidia-settings nvidia-utils nvidia-dkms

I won't get into details why these are there, I have my reasons which are too long to explain in a single sentence and not to go off-topic.

Secondly, I have an alias which displays all dependencies of any package (basically an alias for "pacman -Qii"):

[rado@arch]: ~>$ deps firefox
Име                      : firefox
Версия                   : 112.0.1-1
Описание                 : Standalone web browser from mozilla.org
Архитектура              : x86_64
URL                      : https://www.mozilla.org/firefox/
Лицензи                  : GPL  LGPL  MPL
Групи                    : Нищо
Доставя                  : Нищо
Dependencies              : dbus-glib  ffmpeg  gtk3  libpulse  libxt  mime-types  nss  ttf-font
Additional dependencies : hunspell-en_US: Spell checking, American English
                           libnotify: Notification integration [installed]
                           networkmanager: Location detection via available WiFi networks [installed]
                           pulseaudio: Audio support [installed]
                           speech-dispatcher: Text-to-Speech
                           xdg-desktop-portal: Screensharing with Wayland
Required by            : firefox-i18n-bg

I know that the most of the users here can't read Cyrillic, so I have translated to English the relevant lines.
As you can see, the i18n-bg package ISN'T among the dependencies of Firefox and what's more, it's actually vice versa - firefox is required by the package firefox-i18n-bg which means that if I run

# pacman -S firefox-i18n-bg

it will download firefox as a dependency, not the other way around. Which to me, doesn't make much sense but it is what it is: i18n package is NOT listed in the firefox package deps.

If you visit this page, you'll see that i18n is NOT listed anywhere as a dependency:
https://archlinux.org/packages/extra/x86_64/firefox/

However, this page DOES list firefox as a dependency:
https://archlinux.org/packages/extra/an … x-i18n-bg/

IDK about you guys, but that tells me one thing: someone made a mistake and marked the wrong package as a dependency.


Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#8 2023-04-20 18:23:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Is there a way to set a local dependency in pacman.conf?

Stop trying to provide evidence that firefox-i18n-bg is not a dependency of firefox.  We know that - and it's completely irrelevant.  If you update firefox through any supported mechanism (i.e., `pacman -Syu`) then firefox-i18n-bg will be upgraded at the same time.  It's as simple as that.  If that is not happening, you are not updating via pacman and / or not from the arch linux repos.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2023-04-20 18:24:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Is there a way to set a local dependency in pacman.conf?

All of this is completely normal, you can just update your system with pacman -Syu and once your language pack of choice is installed it will come as well.

Are you actually complaining about something you get a repeated problem with or is this a one time ocurrence that you wonder about? Do you really want firefox to list EVERY SINGLE language pack there is for no reason at all every time you update? You could argue that firefox should depend on a common virtual package that all languages provide, but that's a complete technicality that will not ever affect you in your day to day assuming you are updating Arch/your packages correctly.

Last edited by V1del (2023-04-20 18:25:06)

Offline

#10 2023-04-20 19:10:51

rado84
Banned
From: Sofia, Bulgaria
Registered: 2019-05-12
Posts: 135

Re: Is there a way to set a local dependency in pacman.conf?

Trilby wrote:

Stop trying to provide evidence that firefox-i18n-bg is not a dependency of firefox.  We know that - and it's completely irrelevant.  If you update firefox through any supported mechanism (i.e., `pacman -Syu`) then firefox-i18n-bg will be upgraded at the same time.  It's as simple as that.  If that is not happening, you are not updating via pacman and / or not from the arch linux repos.

Aha, OK. It will be upgraded only if it has been installed manually first. But if it has NOT been installed, it won't be downloaded which is the point of this topic (how to make pacman download the language pack along with firefox when the language pack has not been installed manually). Do I need to translate the contents of this screenshot for you or will you understand what is NOT happening using the "supported mechanisms"?

https://i.imgur.com/lKPCa7S.png


moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2023-04-20 22:08:56)


Core i7-4770, GTX 1660 Ti, 32 GB RAM, Arch 6.x LTS, Cinnamon 5.2.7, GDM

Offline

#11 2023-04-20 19:14:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Is there a way to set a local dependency in pacman.conf?

Do not translate anything through google translate.  But also do not post screenshots of text.  Post text as text, and prepend LC_ALL=C to commands that you are going to share on these forums:
https://wiki.archlinux.org/title/Genera … s_and_code

Your current description of your question is entirely different from everything else in this thread, e.g.:

rado84 wrote:

is there a way to make pacman always download firefox-i18n-bg as a dependency along with the firefox package whenever the latter has a new version? Whenever firefox updates, it always reverts back to the English interface...

What you are showing in that screenshot looks to not be an update of firefox, but a fresh install. (edit: oops, not it's just a reinstall with nothing updating).  There is a very easy way to make pacman always install firefox-i18n-bg along with firefox updates: install it, just once, and you'll be set.

Last edited by Trilby (2023-04-20 19:17:56)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2023-04-20 19:15:01

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,823

Re: Is there a way to set a local dependency in pacman.conf?

Stop posting pictures of text, post the text.
This will also allow others to use google translate - or even better: use "LC_ALL=C" w/ the command.

But I guess that thing says that FF is up to date and just re-installs the already installed package.
There's no need to update any other package, because they're already up-to-date as well.

And I don't wanna have to create a new profile bc it took me literally years to make my profile what it is today. So starting from scratch is out of the question.

That's not the point.
You're merely supposed to test whether the behavior is because of a setting in your current profile (ie. if you're in the exact same situation as the user in the linked thread)
Testing this is MANDATORY if you want to continue the topic in a productive manner.

Offline

Board footer

Powered by FluxBB