FTBFS trying to create .lyx directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gpsim-doc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
FTBFS in Ubuntu:
https:/
Debian hits the same issue:
https:/
Appears to be not well maintained (see debb #1043166).
This error seems to be intentional by packaging, to avoid documentation being built in $HOME. See https:/
---
lyx -batch -E pdf gpsim-doc.pdf gpsim.lyx
LyX: Creating directory /sbuild-
Failed to create directory. Exiting.
support/lassert.cpp (51): ASSERTION pimpl_-
( 1) lyx: lyx(+0x700b4a) [0x55c89b008b4a]
( 2) lyx: lyx(+0x72876f) [0x55c89b03076f]
( 3) lyx: lyx(+0x29ca5f) [0x55c89aba4a5f]
( 4) lyx: lyx(+0x29de83) [0x55c89aba5e83]
( 5) lyx: lyx(+0x2a0515) [0x55c89aba8515]
( 6) lyx: lyx(+0x2a2742) [0x55c89abaa742]
( 7) lyx: lyx(+0x6e36ac) [0x55c89afeb6ac]
( 8) /lib/x86_
( 9) /lib/x86_
( 10) /lib/x86_
( 11) /lib/x86_
( 12) /lib/x86_
( 13) /lib/x86_
( 14) /lib/x86_
( 15) /lib/x86_
( 16) /lib/x86_
( 17) /lib/x86_
( 18) lyx: lyx(+0x2a0b5e) [0x55c89aba8b5e]
( 19) lyx: lyx(+0x1a63cf) [0x55c89aaae3cf]
( 20) /lib/x86_
( 21) /lib/x86_
( 22) lyx: lyx(+0x1b2495) [0x55c89aaba495]
make: *** [debian/rules:16: build-stamp] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
description: | updated |
From https:/ /git.launchpad. net/ubuntu/ +source/ gpsim-doc/ tree/debian/ rules:
build: configure-stamp build-stamp
build-stamp:
dh_testdir
lyx -batch -E pdf gpsim-doc.pdf gpsim.lyx
touch build-stamp
From Lyx upstream bug https:/ /www.lyx. org/trac/ ticket/ 4393 this is a known issue but wontfix since they view Lyx as more of a userspace application. However, there exists a -userdir parameter which might allow setting a different dir to use for its cached information. So, perhaps the rules need adjusted to:
build: configure-stamp build-stamp
build-stamp:
dh_testdir
mkdir /var/tmp/lyx
lyx -userdir /var/tmp/lyx -batch -E pdf gpsim-doc.pdf gpsim.lyx
touch build-stamp
From the man page, sounds like an alternative is to set LYX_USERDIR_ 23x="/var/ tmp/lyx"