Package Details: ttf-ms-win10-auto-zh_tw 10.0.19042.789-6

Git Clone URL: https://aur.archlinux.org/ttf-ms-win10-auto.git (read-only, click to copy)
Package Base: ttf-ms-win10-auto
Description: Microsoft Windows 10 Traditional Chinese TrueType fonts
Upstream URL: http://www.microsoft.com/typography/fonts/product.aspx?PID=164
Licenses: custom
Conflicts: ttf-ms-win10-zh_tw
Provides: ttf-ms-win10-zh_tw
Submitter: Zepman
Maintainer: RubenKelevra
Last Packager: RubenKelevra
Votes: 33
Popularity: 0.98
First Submitted: 2021-02-24 16:44 (UTC)
Last Updated: 2024-07-23 00:51 (UTC)

Dependencies (6)

Required by (0)

Sources (145)

Pinned Comments

Zepman commented on 2021-02-24 16:49 (UTC) (edited on 2021-03-24 22:08 (UTC) by Zepman)

This package is based on ttf-ms-win10. It differs in that it automatically downloads the fonts from Microsoft, if possible without downloading an entire ISO file.

If Polkit allows the user to create loop devices and mount files using udisks, around 200 MB of (mostly compressed) data will be downloaded. This can be a slow download method even over the fastest connections, since the fonts are taken from a large ISO file without downloading the entire file.

If Polkit is not available or it does not allow the user to use udisks, the entire ISO file will be downloaded and install.wim will be extracted. A check ensures that enough temporary disk space is available, which can be up to twice the size of the ISO file. This can happen if either Polkit or an authentication agent is not running, or when a user is logged in remotely (e.g. through SSH).

Latest Comments

1 2 3 4 5 6 Next › Last »

RubenKelevra commented on 2024-07-23 16:16 (UTC)

To whom it may concern: Don't feed the troll. Thanks :)

boyd8444 commented on 2024-07-23 16:07 (UTC)

@RubenKelevra Noob? It sounds like you're the noob here since you can't even manage to make a working PKGBUILD.

RubenKelevra commented on 2024-07-23 14:18 (UTC)

@boyd8444 yeah, I end the discussion here. This is not the place for noobs to ask basic questions.

Have a nice day.

boyd8444 commented on 2024-07-23 12:25 (UTC)

@RubenKelevra If I were an official package maintainer I might make the effort to use a chroot build environment, but yay uses a normal user to build and has the option to remove build dependencies which is all I need.

Your needs may be different, but claiming that a chroot build environment is more serure is just false. A chroot in no way protects you from installing malicious code if that is what you mean by security.

RubenKelevra commented on 2024-07-23 08:42 (UTC) (edited on 2024-07-23 09:32 (UTC) by RubenKelevra)

@boyd8444 pkgrel 6 includes the suggested cleanup code and may work in your setup.

Anyway, I suggest moving away from yay, as building packages outside a chroot is not a safe practice.

And stop marking packages out of date, if they are not out of date, just because they don't build for you. That's what comments are for.

boyd8444 commented on 2024-07-23 00:59 (UTC) (edited on 2024-07-23 01:21 (UTC) by boyd8444)

@RubenKelevra I saw the instructions about loopback devices and didn't ignore them, but thought a well designed PKGBUILD should include error handling for this case. We just disagree.

You are correct to point out that yay does not support a chroot build environment and so is not supported.

The ttf-ms-win11-auto worked with yay so I switched to that one.

RubenKelevra commented on 2024-07-23 00:48 (UTC) (edited on 2024-07-23 00:49 (UTC) by RubenKelevra)

@boyd8444 building in a chroot is always recommended, for safety reasons. If yay doesn't support this, you shouldn't use it.

"To avoid problems caused by your particular system configuration, build packages in a clean chroot. If the build process still fails in a clean chroot, the issue is probably with the PKGBUILD."

-- https://wiki.archlinux.org/title/Arch_User_Repository

Apart from this, the PKGBUILD always explained, that you need to clean-up manually after failed buidling attempts. So please read the PKGBUILD instructions, before complaining:

# If the
# build fails, it might be that these must be unmounted manually. This can be
# done with:
#
#  $ udisksctl unmount -b /dev/loop0
#  $ udisksctl loop-delete -b /dev/loop0
#  $ fusermount -uz src/mnt/http
#
# Replace /dev/loop0 with the relevant loop device, which is reported during
# package build.

RubenKelevra commented on 2024-07-23 00:42 (UTC)

@jprt thanks, I've added a modified version (which doesn't break chroot builds) to the PKGBUILD and added you as contributor.

boyd8444 commented on 2024-07-23 00:22 (UTC) (edited on 2024-07-23 00:27 (UTC) by boyd8444)

This is stil broken. When the build fails, it leaves mounted loop back device and doen't umount or destroy the one it created. It doesn't cleanly recover from this error. Poor error handling. That is what broken means.

I don't want to make major configuration changes to my automounting configuration just to use this PKGBUILD. That is what broken means.

I use yay, not a chroot. If you don't support yay, then say so:

==> Starting prepare()...
- Examininging locally available fonts
- Fonts are missing
- Mount filesystems as a non-privileged user: allowed
- Downloading fonts directly
  - Mounting HTTP file
file name:  19042.631.201119-0144.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x86FRE_en-us.iso
host name:  software-static.download.prss.microsoft.com
port number:    80
protocol:   http
request path:   /pr/download/19042.631.201119-0144.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x86FRE_en-us.iso
auth data:  (null)
file size:  4079597568
  - Creating loop device
Error setting up loop device for mnt/http/19042.631.201119-0144.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x86FRE_en-us.iso: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error waiting for loop object after creating '/dev/loop1': Timed out waiting for object
/home/xxxxxxxx/.cache/yay/ttf-ms-win10-auto/PKGBUILD: line 402: -1: substring expression < 0

RubenKelevra commented on 2024-07-22 23:31 (UTC)

@boyd8444 "This PKGBUILD is totally broken" is neither helpful not true. The PKG builds fine in a chroot:

==> Making package: ttf-ms-win10-auto 10.0.19042.789-5 (Tue Jul 23 00:52:28 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package_ttf-ms-win10-auto()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-japanese()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-japanese"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-korean()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-korean"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-sea()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-sea"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-thai()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-thai"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-zh_cn()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-zh_cn"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-zh_tw()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-zh_tw"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_ttf-ms-win10-auto-other()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "ttf-ms-win10-auto-other"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ttf-ms-win10-auto 10.0.19042.789-5 (Tue Jul 23 00:54:54 2024)

If you have any issues, feel free to point them out.

"It doesn't cleanly recover from ANY failure." is not a valid error description.