Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141231 - Can't compile sci-mathematics/pari-2.1.7-r1 without X
Summary: Can't compile sci-mathematics/pari-2.1.7-r1 without X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-20 20:01 UTC by FUJINAKA Tohru
Modified: 2006-09-26 16:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for ebuild to pull in X only for USE="X" (pari-2.3.0-noX.patch,450 bytes, patch)
2006-09-24 12:08 UTC, Markus Dittrich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description FUJINAKA Tohru 2006-07-20 20:01:44 UTC
While I don't have X in my box, compiling sci-mathematics/pari fails even though there's no flag `X' in it's USE.

--

$ emerge -pv dev-perl/crypt-dsa
[ebuild  N    ] sci-mathematics/pari-2.1.7-r1  USE="doc emacs" 0 kB

$ emerge dev-perl/crypt-dsa
...
i686-pc-linux-gnu-gcc -c -O2 -march=i686 -fomit-frame-pointer -DGCC_INLINE -I. -I../src/headers -I../src/graph -o plotport.o ../src/graph/plotport.c
../src/graph/plotX.c:34:22: X11/Xlib.h: No such file or directory
../src/graph/plotX.c:35:23: X11/Xutil.h: No such file or directory

$ emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r13 i686)
=================================================================
System uname: 2.6.16-gentoo-r13 i686 Intel(R) Celeron(TM) CPU                1000MHz
Gentoo Base System version 1.6.15
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.1.3-r1, 2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.gentoo.gr.jp http://ftp.gentoo.or.kr/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="ja_JP.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
USE="x86 apache2 apm avi berkdb bitmap-fonts canna cjk cli crypt cups curl dlloader doc dri emacs emboss encode expat fam flash foomaticdb fortran gd gdbm gif gpm imagemagic imap imlib ipv6 isdnlog jpeg leim libg++ libwww logrotate maildir mcal memlimit mp3 mpeg mysql ncurses nls nptl ogg opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection ruby samba sdl session spell spl ssl tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vorbis xml xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2006-07-20 20:21:24 UTC
Wrong product, reassigning
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2006-09-21 19:23:01 UTC
Hi,

Thanks for you report! I just checked and pari indeed requires libX11 by default.
I hope I can provide a fix soon and I'll also have a look at pari-2.3.0.

Best,
Markus
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2006-09-22 12:07:47 UTC
(In reply to comment #2)
> Hi,
> 
> Thanks for you report! I just checked and pari indeed requires libX11 by
> default.
> I hope I can provide a fix soon and I'll also have a look at pari-2.3.0.
> 
> Best,
> Markus
> 

Could you please try if pari-2.3.0 builds properly on your system without
X? Scanning through the configure suggest that it might.

Thanks,
Markus
Comment 4 FUJINAKA Tohru 2006-09-24 07:32:49 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Hi,
> > 
> > Thanks for you report! I just checked and pari indeed requires libX11 by
> > default.
> > I hope I can provide a fix soon and I'll also have a look at pari-2.3.0.
> > 
> > Best,
> > Markus
> > 
> 
> Could you please try if pari-2.3.0 builds properly on your system without
> X? Scanning through the configure suggest that it might.
> 
> Thanks,
> Markus

Hello,
I'm afraid that it seems would not worked. It looks requires X relates.

~ # emerge -pv pari
[ebuild  N    ] x11-proto/kbproto-1.0.3  USE="-debug" 56 kB
[ebuild  N    ] x11-proto/xextproto-7.0.2  USE="-debug" 66 kB
[ebuild  N    ] x11-proto/xf86bigfontproto-1.1.2  USE="-debug" 36 kB
[ebuild  N    ] x11-proto/inputproto-1.3.2  USE="-debug" 45 kB
[ebuild     U ] x11-misc/util-macros-1.1.0 [1.0.2] USE="-debug" 42 kB
[ebuild  N    ] x11-libs/libXau-1.0.2  USE="-debug" 214 kB
[ebuild     U ] x11-proto/xproto-7.0.7 [7.0.5] USE="-debug" 130 kB
[ebuild  N    ] x11-proto/bigreqsproto-1.0.2  USE="-debug" 35 kB
[ebuild  N    ] x11-libs/libXdmcp-1.0.1  USE="-debug" 226 kB
[ebuild  N    ] x11-proto/xcmiscproto-1.1.2  USE="-debug" 35 kB
[ebuild  N    ] x11-libs/xtrans-1.0.1  USE="-debug" 89 kB
[ebuild  N    ] x11-libs/libX11-1.0.3  USE="ipv6 -debug" 1,415 kB
[ebuild  N    ] sci-mathematics/pari-2.3.0  USE="doc emacs" 1,962 kB

~ # emerge --info
(snip)
USE="...(snip)... vorbis xml xorg zlib"
Comment 5 FUJINAKA Tohru 2006-09-24 07:40:34 UTC
> Hello,
> I'm afraid that it seems would not worked. It looks requires X relates.

Uh, is that the behavior you expected?
There's no way to install pari without libX11?

Thanks in advance,
tohru.
Comment 6 Markus Dittrich (RETIRED) gentoo-dev 2006-09-24 12:08:07 UTC
Created attachment 97972 [details, diff]
patch for ebuild to pull in X only for USE="X"

Yeah, currently the build still pulls in X even though configure doesn't
require it (as far as I can tell). Please try the following patch and see
if it compiles through.

Thanks,
Markus
Comment 7 FUJINAKA Tohru 2006-09-24 18:16:04 UTC
(In reply to comment #6)
> Created an attachment (id=97972) [edit]
> patch for ebuild to pull in X only for USE="X"
> 
> Yeah, currently the build still pulls in X even though configure doesn't
> require it (as far as I can tell). Please try the following patch and see
> if it compiles through.
> 
> Thanks,
> Markus
> 

With the patched one, compiling and quick testing finished successfully.

# ebuild pari-2.3.0.ebuild compile
# cd /var/tmp/portage/pari-2.3.0/work/pari-2.3.0/
# make bench

Thank you.
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2006-09-25 05:39:49 UTC
(In reply to comment #7)
> 
> With the patched one, compiling and quick testing finished successfully.
> 
> # ebuild pari-2.3.0.ebuild compile
> # cd /var/tmp/portage/pari-2.3.0/work/pari-2.3.0/
> # make bench
> 
> Thank you.
> 

Nice and thanks for testing! I'll incorporate this patch into the ebuild.

Best,
Markus
Comment 9 Markus Dittrich (RETIRED) gentoo-dev 2006-09-26 16:54:15 UTC
(In reply to comment #8)
> Nice and thanks for testing! I'll incorporate this patch into the ebuild.
> 
> Best,
> Markus
> 

I've incorporated this change into the pari-2.3.0 ebuild.

Thanks,
Markus