FS#32126 - [groff] couldn't exec gxditview: No such file or directory

Attached to Project: Arch Linux
Opened by datareaver (datareaver) - Saturday, 20 October 2012, 23:45 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 08 May 2013, 13:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The program gxditview does not exist in groff (compilation bug ? but I have binary groff X86_64 from base in my archlinux)

There is also another bug with groff and gv. The circles are not traced


# command :

groff -p -X test.groff

groff: couldn't exec gxditview: No such file or directory


groff test.groff |gv -


Additional info:
* package version(s)
GNU grops (groff) version 1.21
GNU troff (groff) version 1.21


Steps to reproduce:

groff -p -X test.groff

groff test.groff |gv -


(To test, I have compiled last sources from gnu site and it works (circles and command gxditview (included in groff))
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 08 May 2013, 13:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.22.2-3
Comment by datareaver (datareaver) - Saturday, 20 October 2012, 23:53 GMT
"There is also another bug with groff and gv. The circles are not traced." :

I just forget -p switch in command groff test.groff |gv -


With groff from source of gnu site groff -p test.groff |gv - and groff -p -X test.groff works
Comment by Jakob Steltner (trurl23) - Saturday, 24 November 2012, 08:37 GMT
Reproducible, although this is probably intentional to eliminate groff's dependencies to X.org as it is compiled using --without-x option.
Comment by Jakob Steltner (trurl23) - Saturday, 24 November 2012, 09:13 GMT
In case this is not intentional, here's a patch for groff's PKGBUILD to include gxditview.
The patch does the following:
- change --without-x to --with-x.
- set appresdir to reside in /usr/share/X11/app-defaults within pkgdir.
- add libxaw dependency for gxditview
- increase pkgrel by one (to 3)

This doesn't fix the other issue mentioned by the comment above (circles not traced) which might be an upstream bug.
Comment by Greg (dolby) - Saturday, 24 November 2012, 18:28 GMT
Libxaw should be optional if thats possible and theres any intention of doing this as groff is in core.
Pulling X libraries for packages in the core repo is unecceptable.
Comment by Jakob Steltner (trurl23) - Sunday, 25 November 2012, 12:50 GMT
Okay, that explains it. IMHO libxaw can't be marked optional as it is a compile-time dependency which is probably (?) also not possible in core packages. How are such cases handled?
Would it be okay to create another package (e.g. in AUR) which provides groff (+gxditview) and conflicts with groff, so that users who need gxditview could replace the core groff package with the one from core?
Comment by Greg (dolby) - Sunday, 25 November 2012, 13:24 GMT
If a library doesnt link against any of the binaries that provide the basic functionality of the package, it can be made optional and get added to makedepends without causing problems. Thats how its done in many packages. Make dependencies are no issue. See for example here: https://mailman.archlinux.org/pipermail/arch-dev-public/2012-November/024089.html

The only exception to the above rule for core so far is grub2.
Comment by Jakob Steltner (trurl23) - Sunday, 25 November 2012, 16:08 GMT
Find updated patch for PKGBUILD attached. libxaw is build time dependency and optional runtime dependency now.

Loading...