'locale/*.qm': No such file or directory #5

Open
opened 3 months ago by bugrasan · 1 comments

the problem occurred while installing the AUR package, however also happens while trying to build the tar ball.

the error happens when run the ./build_release.sh right after unpacking the tar ball. a second run of ./build_release.sh works fine. but this breaks the installation of AUR.

$ ./build_release.sh
Info: creating stash file /tmp/qddcswitch/build_release/.qmake.stash
/usr/bin/uic ../forms/AddMonitorDialog.ui -o generated/ui_AddMonitorDialog.h
/usr/bin/uic ../res/MonitorInputToggle.ui -o generated/ui_MonitorInputToggle.h
/usr/bin/uic ../forms/qddcswitch.ui -o generated/ui_qddcswitch.h
g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/DDCManager.o ../src/DDCManager.cpp
g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/main.o ../src/main.cpp
/usr/bin/rcc -name mainResources ../res/mainResources.qrc -o generated/qrc_mainResources.cpp
g++ -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -dM -E -o generated/moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp
lrelease /tmp/qddcswitch/qddcswitch\.pro
mkdir -p /tmp/qddcswitch/build_release/bin/locale
cp -f /tmp/qddcswitch/locale/*.qm /tmp/qddcswitch/build_release/bin/locale
g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/AddMonitorDialog.o ../src/AddMonitorDialog.cpp
g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/qrc_mainResources.o generated/qrc_mainResources.cpp
cp: cannot stat '/tmp/qddcswitch/locale/*.qm': No such file or directory
make: *** [Makefile:750: copydata] Error 1
make: *** Waiting for unfinished jobs....
Updating '/tmp/qddcswitch/locale/qddcswitch_en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 25 untranslated source text(s)
Updating '/tmp/qddcswitch/locale/qddcswitch_fi.qm'...
    Generated 25 translation(s) (25 finished and 0 unfinished)

however the files exist:

$ ls /tmp/qddcswitch/locale/*.qm
/tmp/qddcswitch/locale/qddcswitch_en.qm  /tmp/qddcswitch/locale/qddcswitch_fi.qm
the problem occurred while installing the AUR package, however also happens while trying to build the tar ball. the error happens when run the `./build_release.sh` right after unpacking the tar ball. a second run of `./build_release.sh` works fine. but this breaks the installation of AUR. ``` $ ./build_release.sh Info: creating stash file /tmp/qddcswitch/build_release/.qmake.stash /usr/bin/uic ../forms/AddMonitorDialog.ui -o generated/ui_AddMonitorDialog.h /usr/bin/uic ../res/MonitorInputToggle.ui -o generated/ui_MonitorInputToggle.h /usr/bin/uic ../forms/qddcswitch.ui -o generated/ui_qddcswitch.h g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/DDCManager.o ../src/DDCManager.cpp g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/main.o ../src/main.cpp /usr/bin/rcc -name mainResources ../res/mainResources.qrc -o generated/qrc_mainResources.cpp g++ -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -dM -E -o generated/moc_predefs.h /usr/lib/qt/mkspecs/features/data/dummy.cpp lrelease /tmp/qddcswitch/qddcswitch\.pro mkdir -p /tmp/qddcswitch/build_release/bin/locale cp -f /tmp/qddcswitch/locale/*.qm /tmp/qddcswitch/build_release/bin/locale g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/AddMonitorDialog.o ../src/AddMonitorDialog.cpp g++ -c -pipe -O2 -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DAPP_NAME=\"qddcswitch\" -DAPP_VERSION=\"1.0.0.0\" -DAPP_COPYRIGHT="\"Copyright 2021\"" -DAPP_COPYRIGHTHOLDERS="\"Asko Ropponen\"" -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_UITOOLS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../qddcswitch -I. -I/usr/include/qt -I/usr/include/qt/QtUiTools -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Igenerated -Igenerated -I/usr/lib/qt/mkspecs/linux-g++ -o generated/qrc_mainResources.o generated/qrc_mainResources.cpp cp: cannot stat '/tmp/qddcswitch/locale/*.qm': No such file or directory make: *** [Makefile:750: copydata] Error 1 make: *** Waiting for unfinished jobs.... Updating '/tmp/qddcswitch/locale/qddcswitch_en.qm'... Generated 0 translation(s) (0 finished and 0 unfinished) Ignored 25 untranslated source text(s) Updating '/tmp/qddcswitch/locale/qddcswitch_fi.qm'... Generated 25 translation(s) (25 finished and 0 unfinished) ``` however the files exist: ``` $ ls /tmp/qddcswitch/locale/*.qm /tmp/qddcswitch/locale/qddcswitch_en.qm /tmp/qddcswitch/locale/qddcswitch_fi.qm ```
Owner

Are you using an AUR helper such as yay? (I recall someone complaining about this elsewhere and they were using yay, they could compile the AUR package w/ makepkg though.)

However I can confirm that the step fails when running ./build_release.sh on a fresh clone of this repo.

Which is strange, as using the AUR PKGBUILD the build works fine the first time, when built with makepkg.

The .qm language files are created in make, with custom build targets defined in qddcswitch.pro: QMAKE_EXTRA_TARGETS += first lrelease mkdir copydata, in which lrelease creates .qm files and copydata then copies them to the folder.

Relevant log when build with makepkg from the AUR PKGBUILD:

lrelease /home/asko/AUR/qddcswitch/src/qddcswitch/qddcswitch\.pro
Updating '/home/asko/AUR/qddcswitch/src/qddcswitch/locale/qddcswitch_en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 25 untranslated source text(s)
Updating '/home/asko/AUR/qddcswitch/src/qddcswitch/locale/qddcswitch_fi.qm'...
    Generated 25 translation(s) (25 finished and 0 unfinished)
mkdir -p /home/asko/AUR/qddcswitch/src/qddcswitch/build/bin/locale
cp -f /home/asko/AUR/qddcswitch/src/qddcswitch/locale/*.qm /home/asko/AUR/qddcswitch/src/qddcswitch/build/bin/locale

For some reason when direcly running ./build_release.sh on a fresh clone seems to run lrelease after copydata, therefore not finding the .qm files:

lrelease /tmp/qddcswitch/qddcswitch\.pro
mkdir -p /tmp/qddcswitch/build_release/bin/locale
cp -f /tmp/qddcswitch/locale/*.qm /tmp/qddcswitch/build_release/bin/locale
cp: cannot stat '/tmp/qddcswitch/locale/*.qm': No such file or directory
make: *** [Makefile:792: copydata] Error 1
make: *** Waiting for unfinished jobs....
Updating '/tmp/qddcswitch/locale/qddcswitch_en.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 25 untranslated source text(s)
Updating '/tmp/qddcswitch/locale/qddcswitch_fi.qm'...
    Generated 25 translation(s) (25 finished and 0 unfinished)

Which is strange because both ./build_release.sh and the PKGBUILD call the same commands (qmake & make) to build this program.

I need to look into this more but for now it should be possible to build the AUR package with standard tools (makepkg).

Are you using an AUR helper such as `yay`? (I recall someone complaining about this elsewhere and they were using `yay`, they could compile the AUR package w/ `makepkg` though.) However I can confirm that the step fails when running `./build_release.sh` on a fresh clone of this repo. Which is strange, as using the AUR PKGBUILD the build works fine the first time, when built with `makepkg`. The `.qm` language files are created in `make`, with custom build targets defined in qddcswitch.pro: `QMAKE_EXTRA_TARGETS += first lrelease mkdir copydata`, in which `lrelease ` creates `.qm` files and `copydata` then copies them to the folder. Relevant log when build with `makepkg` from the AUR PKGBUILD: ``` lrelease /home/asko/AUR/qddcswitch/src/qddcswitch/qddcswitch\.pro Updating '/home/asko/AUR/qddcswitch/src/qddcswitch/locale/qddcswitch_en.qm'... Generated 0 translation(s) (0 finished and 0 unfinished) Ignored 25 untranslated source text(s) Updating '/home/asko/AUR/qddcswitch/src/qddcswitch/locale/qddcswitch_fi.qm'... Generated 25 translation(s) (25 finished and 0 unfinished) mkdir -p /home/asko/AUR/qddcswitch/src/qddcswitch/build/bin/locale cp -f /home/asko/AUR/qddcswitch/src/qddcswitch/locale/*.qm /home/asko/AUR/qddcswitch/src/qddcswitch/build/bin/locale ``` For some reason when direcly running `./build_release.sh` on a fresh clone seems to run `lrelease` after `copydata`, therefore not finding the `.qm` files: ``` lrelease /tmp/qddcswitch/qddcswitch\.pro mkdir -p /tmp/qddcswitch/build_release/bin/locale cp -f /tmp/qddcswitch/locale/*.qm /tmp/qddcswitch/build_release/bin/locale cp: cannot stat '/tmp/qddcswitch/locale/*.qm': No such file or directory make: *** [Makefile:792: copydata] Error 1 make: *** Waiting for unfinished jobs.... Updating '/tmp/qddcswitch/locale/qddcswitch_en.qm'... Generated 0 translation(s) (0 finished and 0 unfinished) Ignored 25 untranslated source text(s) Updating '/tmp/qddcswitch/locale/qddcswitch_fi.qm'... Generated 25 translation(s) (25 finished and 0 unfinished) ``` Which is strange because both `./build_release.sh` and the [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qddcswitch) call the same commands (qmake & make) to build this program. I need to look into this more but for now it should be possible to build the AUR package with standard tools (`makepkg`).
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Okxa/qddcswitch#5
Loading…
There is no content yet.