Package Build Error

More
14 Sep 2022 00:43 #251859 by aluebke
Package Build Error was created by aluebke
I've been building the package for some time so that I can install it on my machines.  I use the standard command, dpkg-buildpackage -b -uc. Lately however when I build I get an error towards the end about LinuxCNC_Developer_es.pdf being missing, here's some of the log:

make[1]: Entering directory '/home/pi/linuxcnc-dev'
# The G-code quick reference html docs are built as
# `docs/html/en_US.UTF-8/gcode.html`.  We install them
# into `/usr/share/doc/linuxcnc-uspace/` in each
# linuxcnc-doc-en_US.UTF-8 package, then rename them there (except
# for the English one) to include the language in the filename,
# so they don't collide when we install all the doc debs.
#
# Rename the "main" doc directories from
# `usr/share/doc/linuxcnc-uspace` to `usr/share/doc/linuxcnc`,
# because that's where the `.desktop` files look for the docs.
dh_installdocs --doc-main-package=linuxcnc-uspace --package=linuxcnc-doc-en
        install -d debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-doc-en
        install -d debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_Developer.pdf debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_Documentation.pdf debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_Getting_Started.pdf debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_Integrator.pdf debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/LinuxCNC_Manual_Pages.pdf debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/AUTHORS debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/INSTALL.adoc debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/README.adoc debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/README.axis debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/axis_light_background debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/rtfaults.adoc debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a debian/tmp/usr/share/doc/linuxcnc/tklinuxcnc.adoc debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        cp --reflink=auto -a ./docs/html/gcode.html debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace
        chown -R 0:0 debian/linuxcnc-doc-en/usr/share/doc
        chmod -R u\+rw,go=rX debian/linuxcnc-doc-en/usr/share/doc
        install -p -m0644 debian/copyright debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-doc-en/copyright
        install -d debian/linuxcnc-doc-en/usr/share/doc-base/
        install -p -m0644 debian/linuxcnc-doc-en.doc-base debian/linuxcnc-doc-en/usr/share/doc-base/linuxcnc-doc-en
mv debian/linuxcnc-doc-en/usr/share/doc/linuxcnc-uspace debian/linuxcnc-doc-en/usr/share/doc/linuxcnc
dh_installdocs --doc-main-package=linuxcnc-uspace --package=linuxcnc-doc-es
        install -d debian/linuxcnc-doc-es/usr/share/doc/linuxcnc-doc-es
dh_installdocs: error: Cannot find (any matches for) "usr/share/doc/linuxcnc/LinuxCNC_Developer_es.pdf" (tried in ., debian/tmp)

make[1]: *** [debian/rules:112: override_dh_installdocs-indep] Error 255
make[1]: Leaving directory '/home/pi/linuxcnc-dev'
make: *** [debian/rules:38: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2

Please Log in or Create an account to join the conversation.

More
14 Sep 2022 12:20 #251891 by tommylight
Replied by tommylight on topic Package Build Error
Did you try to build it without the docs?

Please Log in or Create an account to join the conversation.

More
14 Sep 2022 23:32 #251952 by aluebke
Replied by aluebke on topic Package Build Error
Yes it completes if I build it with no docs.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
16 Sep 2022 12:31 #252072 by JT
Replied by JT on topic Package Build Error
I ran into the same issue building master on Debian 10.10.

JT

Please Log in or Create an account to join the conversation.

More
01 Oct 2022 08:58 #253154 by deedee
Replied by deedee on topic Package Build Error
I have the same issue on Debian 10.13.

I tried with
./configure --disable-build-documentation-translation

but building fails. Are there any tricks/workarounds?

Please Log in or Create an account to join the conversation.

More
06 Oct 2022 07:35 - 06 Oct 2022 07:37 #253595 by elovalvo
Replied by elovalvo on topic Package Build Error

Yes it completes if I build it with no docs.

 

If you only want the doc in English, after the 'configure' command you have to delete the following lines from the 'rules' file in the 'debian' folder:

dh_installdocs --doc-main-package=linuxcnc-uspace --package=linuxcnc-doc-es
mv debian/linuxcnc-doc-es/usr/share/doc/linuxcnc-uspace/gcode.html debian/linuxcnc-doc-es/usr/share/doc/linuxcnc-uspace/gcode_es.html
mv debian/linuxcnc-doc-es/usr/share/doc/linuxcnc-uspace debian/linuxcnc-doc-es/usr/share/doc/linuxcnc

dh_installdocs --doc-main-package=linuxcnc-uspace --package=linuxcnc-doc-fr
mv debian/linuxcnc-doc-fr/usr/share/doc/linuxcnc-uspace/gcode.html debian/linuxcnc-doc-fr/usr/share/doc/linuxcnc-uspace/gcode_fr.html
mv debian/linuxcnc-doc-fr/usr/share/doc/linuxcnc-uspace debian/linuxcnc-doc-fr/usr/share/doc/linuxcnc

dh_installdocs --doc-main-package=linuxcnc-uspace --package=linuxcnc-doc-zh-cn
mv debian/linuxcnc-doc-zh-cn/usr/share/doc/linuxcnc-uspace/gcode.html debian/linuxcnc-doc-zh-cn/usr/share/doc/linuxcnc-uspace/gcode_zh_CN.html
mv debian/linuxcnc-doc-zh-cn/usr/share/doc/linuxcnc-uspace debian/linuxcnc-doc-zh-cn/usr/share/doc/linuxcn
Last edit: 06 Oct 2022 07:37 by elovalvo.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum