Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed package descriptions for firefox-fonts mod #1010

Open
wants to merge 1 commit into
base: firefox-fonts
Choose a base branch
from

Conversation

bell345
Copy link

@bell345 bell345 commented Jan 20, 2025

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

This PR fixes issue #1007 by using the correct package names for downloading the extra fonts. I also corrected the command for checking if the mod has already been installed. Note that this does not address the deprecation warning, but it does restore the intended functionality to the firefox-fonts mod.

Benefits of this PR and context:

This PR enables users of the firefox-fonts mod to have CJK fonts automatically installed in their firefox container, whereas before this functionality was broken. This fixes issue #1007, but does so without addressing the deprecation warning, because the "mozillateam" PPA has nothing to do with the firefox-fonts mod and must be fixed in the docker-firefox repository.

How Has This Been Tested?

  1. I forked the repository and implemented the changes on my copy of the firefox-fonts branch.
  2. I enabled the GitHub action for pushing a new Docker image, added secrets corresponding to my own Docker account, and changed the name of the repo in .github/workflows/BuildImage.yml.
  3. This created the Docker image sigptr/mods:firefox-fonts on Dockerhub.
  4. On my Unraid instance where I run a Firefox container, I changed the value of the DOCKER_MODS variable to sigptr/mods:firefox-fonts
  5. After restarting my container, I verified in the logs that the correct packages were being installed:
W: https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.3.3 - built Jan 18 2025 18:59:40
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12101012

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x561f7a81e930 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x561f7a81e930 for event 3
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
 2025-01-20 12:24:50,962 [INFO] websocket 0: got client connection from 127.0.0.1
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
fonts-noto-color-emoji is already the newest version (2.042-1).
The following additional packages will be installed:
  fonts-dejavu-core fonts-dejavu-extra fonts-dejavu-mono
Suggested packages:
  fonts-crosextra-caladea fonts-crosextra-carlito
The following NEW packages will be installed:
  fonts-croscore fonts-dejavu fonts-dejavu-core fonts-dejavu-extra
  fonts-dejavu-mono fonts-noto-cjk fonts-noto-cjk-extra
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 211 MB of archives.
After this operation, 329 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 fonts-croscore all 20201225-2 [1,709 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-dejavu-mono all 2.37-8 [502 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-dejavu-core all 2.37-8 [835 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-dejavu-extra all 2.37-8 [1,947 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/universe amd64 fonts-dejavu all 2.37-8 [3,020 B]
Get:6 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-noto-cjk all 1:20230817+repack1-3 [61.2 MB]
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-noto-cjk-extra all 1:20230817+repack1-3 [145 MB]
Fetched 211 MB in 21s (10.2 MB/s)
Selecting previously unselected package fonts-croscore.
(Reading database ... 46559 files and directories currently installed.)
Preparing to unpack .../0-fonts-croscore_20201225-2_all.deb ...
Unpacking fonts-croscore (20201225-2) ...
Selecting previously unselected package fonts-dejavu-mono.
Preparing to unpack .../1-fonts-dejavu-mono_2.37-8_all.deb ...
Unpacking fonts-dejavu-mono (2.37-8) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../2-fonts-dejavu-core_2.37-8_all.deb ...
Unpacking fonts-dejavu-core (2.37-8) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../3-fonts-dejavu-extra_2.37-8_all.deb ...
Unpacking fonts-dejavu-extra (2.37-8) ...
Selecting previously unselected package fonts-dejavu.
Preparing to unpack .../4-fonts-dejavu_2.37-8_all.deb ...
Unpacking fonts-dejavu (2.37-8) ...
Selecting previously unselected package fonts-noto-cjk.
Preparing to unpack .../5-fonts-noto-cjk_1%3a20230817+repack1-3_all.deb ...
Unpacking fonts-noto-cjk (1:20230817+repack1-3) ...
Selecting previously unselected package fonts-noto-cjk-extra.
Preparing to unpack .../6-fonts-noto-cjk-extra_1%3a20230817+repack1-3_all.deb ...
Unpacking fonts-noto-cjk-extra (1:20230817+repack1-3) ...
Setting up fonts-noto-cjk (1:20230817+repack1-3) ...
Setting up fonts-dejavu-mono (2.37-8) ...
Setting up fonts-dejavu-core (2.37-8) ...
Setting up fonts-croscore (20201225-2) ...
Setting up fonts-dejavu-extra (2.37-8) ...
Setting up fonts-noto-cjk-extra (1:20230817+repack1-3) ...
Setting up fonts-dejavu (2.37-8) ...
Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Obt-Message: Xinerama extension is not present on the server
  1. I accessed my container through the web endpoint and confirmed that the CJK fonts were working correctly:
    image
  2. I then remade the changes on my firefox-fonts-merge branch, taking care to only include the actual changes and not the CI modifications I used for testing.

Source / References:

#1007

@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_1010

@LinuxServer-CI
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants