Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.23k stars 364 forks source link

compilation: msgfmt uses unexistant file (probably wrong flags) #2519

Open mb6ockatf opened 1 month ago

mb6ockatf commented 1 month ago

Affected Version

trying to install yay 12.4.2-1 having msgfmt (GNU gettext-tools) 0.22.5

Describe the bug

msgfmt po/ca.po -o po/ca.mo
msgfmt: error while opening "-o" for reading: No such file or directory
make: *** [Makefile:134: po/ca.mo] Error 1

Reproduction Steps

  1. Do as it is said in README.md
    sudo pacman -S --needed git base-devel && \
    git clone https://aur.archlinux.org/yay.git && \
    cd yay && \
    makepkg -si

Expected behavior

yay installs

Output

$ makepkg -si
==> Making package: yay 12.4.2-1 (Sat 05 Oct 2024 09:51:35 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yay-12.4.2.tar.gz
==> Validating source files with sha256sums...
    yay-12.4.2.tar.gz ... Passed
==> Extracting sources...
  -> Extracting yay-12.4.2.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Nothing to be done for 'build'.
==> Entering fakeroot environment...
==> Starting package()...
msgfmt po/ca.po -o po/ca.mo
msgfmt: error while opening "-o" for reading: No such file or directory
make: *** [Makefile:134: po/ca.mo] Error 1
==> ERROR: A failure occurred in package().
    Aborting...