Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149631 - sys-cluster/openpbs ~amd64 patch
Summary: sys-cluster/openpbs ~amd64 patch
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement
Assignee: AMD64 Project
URL: http://www.somewhereville.com/?p=20
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-30 09:29 UTC by JTRiley
Modified: 2007-04-17 13:20 UTC (History)
3 users (show)

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


Attachments
My modified ebuild which includes the x86_64 "fix" for config.guess (openpbs-2.3.16-r4.ebuild,3.35 KB, text/plain)
2006-09-30 09:32 UTC, JTRiley
Details
Patch that goes with my modified ebuild above (OpenPBS_x86_64.patch,532 bytes, patch)
2006-09-30 09:33 UTC, JTRiley
Details | Diff
openpbs-2.3.16-r4.ebuild (openpbs-2.3.16-r4.ebuild,3.39 KB, text/plain)
2006-10-01 09:38 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JTRiley 2006-09-30 09:29:50 UTC
I've been messing with PBS Pro at school with our new cray and wanted to try OpenPBS at home on my G2 box.  First obstacle was that there is no keyword for amd64.  So, I popped the keywords into package.keywords and attempted to emerge.  Upon emerge I got the following error regarding system type:

creating cache ./config.cache
checking host system type... Invalid configuration                                               `x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognized

Invalid configuration `x86_64-pc-linux': machine `x86_64-pc' not recognized
configure: error: config.sub failed on x86_64-pc-linux

Turns out, thanks to http://www.somewhereville.com/?p=20, that this is due to OpenPBS's outdated auto-config script.  I've supplied my modified ebuild as well as the appropriate patch to make this build fully working for amd64. 

Please make these changes and add the amd64 keywords to this package as it works great on x86_64. Thanks and god bless G2.  

~Justin



Portage 2.1.2_pre1-r3 (default-linux/amd64/2006.0, gcc-3.4.4/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.5
Last Sync: Wed, 27 Sep 2006 01:20:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/spool/PBS"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ...
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"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa apache2 asf avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups cvs directfb dlloader dri dssi dvd dvdr dvdread eds elibc_glibc emboss encode exif fbcon fbdev fglrx flac foomaticdb fortran gd gif gnome gpm gstreamer gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java joystick jpeg jpeg2k kde kernel_linux keyboard lirc lirc_devices_livedrive_midi lzw lzw-tiff mad mouse mozilla mp3 mpeg mysql mysqli ncurses net nls nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre pdf pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection ruby samba sdl session spell spl sql ssl subversion tcpd tiff tk truetype truetype-fonts type1-fonts unicode usb userland_GNU vcd video_cards_fbcon video_cards_nv video_cards_nvidia video_cards_vesa vim-with-x visualization vorbis wmf xanim xcomposite xinerama xml xmms xorg xpm xv xvid zeroconf zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 JTRiley 2006-09-30 09:32:59 UTC
Created attachment 98448 [details]
My modified ebuild which includes the x86_64 "fix" for config.guess
Comment 2 JTRiley 2006-09-30 09:33:43 UTC
Created attachment 98449 [details, diff]
Patch that goes with my modified ebuild above
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-01 09:38:58 UTC
Created attachment 98531 [details]
openpbs-2.3.16-r4.ebuild

I've got a different idea -- run gnuconfig_update() instead. Please try this ebuild, no patches required.
Comment 4 Sebastiaan 2006-11-22 04:22:29 UTC
I have the same problem compiling openpbs on amd64. The -r4 ebuild does not work as well.

I am questioning the solution from Justin, because this looks like openpbs will be build for i686 (32 bit), while it is perfectly 64 bit enabled (I guess looking at ia64 support).

I copied the config.sub and config.guess from the /usr/share/gnuconfig/ to buildutils, and it seems to have compiled smoothly.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-11-22 05:52:17 UTC
(In reply to comment #4)
> I have the same problem compiling openpbs on amd64. The -r4 ebuild does not
> work as well.

Sebastiaan, are you referring to the -r4 ebuild on this bug or in the tree? The one on this bug should do exactly what you suggest in a cleaner way.
Comment 6 Sebastiaan 2006-11-23 00:57:55 UTC
I'm sorry, I assumed this ebuild was the same as the one in the tree.

Yes, this ebuild solves this bug. Thanks!
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2007-04-17 13:20:58 UTC
openpbs has been masked for security reasons, torque is proposed as replacement.