Bug 204860 - japanese/tex-ptex fails during configure without X
Summary: japanese/tex-ptex fails during configure without X
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords: patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-11-28 11:11 UTC by Mats Klingberg
Modified: 2017-04-20 07:45 UTC (History)
3 users (show)

See Also:
mandree: maintainer-feedback?


Attachments
Poudriere log file (31.82 KB, text/plain)
2015-11-28 11:11 UTC, Mats Klingberg
no flags Details
Add --without-x to CONFIGURE_FLAGS (3.50 KB, patch)
2017-04-08 23:45 UTC, Fabian Freyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mats Klingberg 2015-11-28 11:11:39 UTC
Created attachment 163607 [details]
Poudriere log file

I'm trying to build texlive-full in Poudriere without X11 support, but japanese/tex-ptex fails during the configure stage with the following error:

=======================<phase: configure      >============================
===>  Configuring for ja-tex-ptex-3.6_1

<snip>

checking for X... no
configure: error: Sorry, could not find X include and library files required for Metafont.
===>  Script "configure" failed unexpectedly.
Please report the problem to hrs@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/japanese/tex-ptex/work/texlive-20150521-source/texk/web2c/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1


The full Poudriere log is attached, and my (poudriere) make.conf contains:

OPTIONS_UNSET= CUPS X11 OPENGL

% freebsd-version
10.2-RELEASE-p7
Comment 1 Roel Harbers 2015-12-02 14:37:09 UTC
I'm getting this exact same error, both with poudriere, and with a regular port make, on both 10.1 and 10.2
Comment 2 Roel Harbers 2015-12-11 08:33:36 UTC
It's been two weeks... Any progress on this?

Or alternatively, any pointers how I could help to resolve this?
Comment 3 Fabian Freyer 2017-04-08 23:45:00 UTC
Created attachment 181610 [details]
Add --without-x to CONFIGURE_FLAGS

It seems that configuring with --without-x fixes the build. However, I can't completely test this, as I'm not a user of ja-tex-ptex.

Therefore I'd be interested in some useful test cases. Then again I am mostly only interested in building texlive-full without X11. I'll attach a patch for whoever might need it.
Comment 4 Matthias Andree freebsd_committer freebsd_triage 2017-04-19 22:55:07 UTC
Fabian, thank you for the patch. I don't see where there's maintainer feedback, so I'm resetting the relevant flag go "?". 

We need to ping hrs@ and wait for his response, and possibly commit with a maintainer timeout if we can reproduce the issue and see that the fix helps. I'd wait until the week-end though since the maintainer timeout is usually a fortnight.
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-04-20 07:39:19 UTC
A commit references this bug:

Author: hrs
Date: Thu Apr 20 07:38:36 UTC 2017
New revision: 438928
URL: https://svnweb.freebsd.org/changeset/ports/438928

Log:
  Add --without-x unconditionally to CONFIGURE_ARGS because a build
  failure occurs at the configure stage when X11 is not installed.
  The actual build process does not change by --with-x or --without-x.

  PR:	204860

Changes:
  head/japanese/tex-ptex/Makefile
Comment 6 Hiroki Sato freebsd_committer freebsd_triage 2017-04-20 07:45:24 UTC
Sorry for the long delay.  A fix has been committed.  Please try the latest ports tree and let me know (or reopen this PR) if you still see the same issue.