Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

problems when emere xterm

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
AgaKhan
n00b
n00b
Posts: 27
Joined: Mon Nov 15, 2004 8:19 pm
Location: Trondheim, Norway

problems when emere xterm

  • Quote

Post by AgaKhan » Fri Apr 29, 2005 8:16 pm

When trying to emerge xterm I get the following error while compiling:

Code: Select all

/bin/install -c -m  755 resize /var/tmp/portage/xterm-200-r1/image//usr/bin/`echo resize| sed 's/$//'|sed 's,x,x,'|sed 's/$//'`
/bin/install: cannot stat `resize': No such file or directory
make: *** [install] Error 1

!!! ERROR: x11-terms/xterm-200-r1 failed.
!!! Function src_install, Line 53, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Any suggestions?
Top
sequeira
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Sun Apr 04, 2004 5:51 pm

  • Quote

Post by sequeira » Fri Apr 29, 2005 8:19 pm

I get exactly the same. Still digging around.
--
Tony
Top
snis
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Mon Mar 03, 2003 2:47 pm
Location: Stockholm, Sweden
Contact:
Contact snis
Website

  • Quote

Post by snis » Fri Apr 29, 2005 8:44 pm

Same here, there is a bug opened http://bugs.gentoo.org/show_bug.cgi?id=90891, however not resolved yet.

Sequiera or AgaKahn have you had any luck with this one yet?
Top
sequeira
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Sun Apr 04, 2004 5:51 pm

  • Quote

Post by sequeira » Fri Apr 29, 2005 9:03 pm

From what I can tell it is not compiling resize, and therefore cannot install it.

My portage knowledge is small, but I'm looking at a way of of avoiding building xterm, or fixing the Makefile.

Cheers.
--
Tony
Top
xgrtl
n00b
n00b
Posts: 13
Joined: Thu Mar 10, 2005 10:42 pm

  • Quote

Post by xgrtl » Fri Apr 29, 2005 9:22 pm

I found the apparent reason and a workaround... i don't have much time right now so I am not really sure if it is a bug in xterm make system or in bash

the plink.sh shell that bash uses to link resize uses internally the $CMD variable which is a strange variable because it is set by bash to the current command every time it executes something

i really now almost nothing about shell scripts, but if you add something to plink.sh it helps the problem:

original plink.sh:

#!/bin/sh
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
#
# Reduce the number of dynamic libraries used to link an executable.
CMD=
while test $# != 0
do
OPT="$1"
shift
case $OPT in
-l*)
echo "testing if $OPT is needed"
if ( eval $CMD $* >/dev/null 2>/dev/null )
then
: echo ...no
else
echo ...yes
CMD="$CMD $OPT"
fi
;;
*)
CMD="$CMD $OPT"
;;
esac
done
eval $CMD



you can change it to:

#!/bin/sh
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
#
# Reduce the number of dynamic libraries used to link an executable.

CMD=
if true
then
while test $# != 0
do
OPT="$1"
shift
case $OPT in
-l*)
echo "testing if $OPT is needed"
if ( eval $CMD $* >/dev/null 2>/dev/null )
then
: echo ...no
else
echo ...yes
CMD="$CMD $OPT"
fi
;;
*)
CMD="$CMD $OPT"
;;
esac
done
eval $CMD
fi

only the 2nd and 3rd line after the comments and the last one have really been changed... if some bash guru could examine this file (I am really surprised that it works at all and about the magical powers of an if true statement) it would be great

good luck
Top
xgrtl
n00b
n00b
Posts: 13
Joined: Thu Mar 10, 2005 10:42 pm

  • Quote

Post by xgrtl » Fri Apr 29, 2005 9:25 pm

Oops... my last message lost all indenting, but it really doesn't matter... it is all about enclosing everything with an if true statement because inside if the CMD variable seems to behave nicely
Not really scientific but it worked for me
Top
daf@donkeyfr.org
n00b
n00b
User avatar
Posts: 15
Joined: Sun Sep 01, 2002 4:30 am
Contact:
Contact daf@donkeyfr.org
Website

  • Quote

Post by daf@donkeyfr.org » Fri Apr 29, 2005 10:21 pm

xgrtl wrote:I found the apparent reason and a workaround... i don't have much time right now so I am not really sure if it is a bug in xterm make system or in bash

the plink.sh shell that bash uses to link resize uses internally the $CMD variable which is a strange variable because it is set by bash to the current command every time it executes something

i really now almost nothing about shell scripts, but if you add something to plink.sh it helps the problem:

original plink.sh:

Code: Select all

#!/bin/sh
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
# 
# Reduce the number of dynamic libraries used to link an executable.
CMD=
while test $# != 0
do
    OPT="$1"
    shift
    case $OPT in
    -l*)
        echo "testing if $OPT is needed"
        if ( eval $CMD $* >/dev/null 2>/dev/null )
        then
            : echo ...no
        else
            echo ...yes
            CMD="$CMD $OPT"
        fi
        ;;
    *)
        CMD="$CMD $OPT"
        ;;
    esac
done
eval $CMD
you can change it to:

Code: Select all

#!/bin/sh
# $XFree86: xc/programs/xterm/plink.sh,v 3.1 2001/03/13 09:48:43 dickey Exp $
#
# Reduce the number of dynamic libraries used to link an executable.

CMD=
if true
then
    while test $# != 0
    do
        OPT="$1"
        shift
        case $OPT in
        -l*)
            echo "testing if $OPT is needed"
            if ( eval $CMD $* >/dev/null 2>/dev/null )
            then
                : echo ...no
            else
                echo ...yes
                CMD="$CMD $OPT"
            fi
            ;;
        *)
            CMD="$CMD $OPT"
            ;;
        esac
    done
    eval $CMD
fi
only the 2nd and 3rd line after the comments and the last one have really been changed... if some bash guru could examine this file (I am really surprised that it works at all and about the magical powers of an if true statement) it would be great

good luck
just use this bbcode :

Code: Select all

[code]...
[/code]
Top
mrpete
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Mon Sep 01, 2003 10:12 am

  • Quote

Post by mrpete » Fri Apr 29, 2005 10:25 pm

Yep - I've also had this problem. The problem seems only to occur when using bash-3.x. Reverting back to bash-2.x allows me to emerge xterm without any problems.
Top
barum87
n00b
n00b
Posts: 62
Joined: Mon Mar 28, 2005 9:31 am

same thing happened for me..

  • Quote

Post by barum87 » Fri Apr 29, 2005 11:45 pm

hmm exactly same thing happened to me during update..

should i just wait til the bug gets fixed?
Top
Fraggle
Apprentice
Apprentice
Posts: 187
Joined: Thu Mar 13, 2003 6:06 pm
Location: Washington, DC

Re: same thing happened for me..

  • Quote

Post by Fraggle » Sat Apr 30, 2005 4:31 am

barum87 wrote:hmm exactly same thing happened to me during update..

should i just wait til the bug gets fixed?
I am wondering the same.
Top
doubleoseven
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 78
Joined: Sun Feb 13, 2005 3:53 pm
Location: Lenzburg, Switzerland

  • Quote

Post by doubleoseven » Sat Apr 30, 2005 9:26 am

i have the same problem but i'm using zshell
Move Your Body, Now STOP! Move Your Mind.
Top
avx
Advocate
Advocate
User avatar
Posts: 2152
Joined: Mon Jun 21, 2004 4:06 am

  • Quote

Post by avx » Sat Apr 30, 2005 4:06 pm

Hi,

the (more or less) funny/strange thing is, that I even can't downgrade xterm. I've have 200-r1 installed, tried to downgrade to 199 or upgrade to the masked 201. Both ways don't work, so I guess it's not really a problem of BASH, cause it worked flawless before.

I'll see, if I can fix it :wink:

cheers,
ph030

EDIT:
Problem has been solved (at least for me) with a new ebuild + patch. Get it at bugs.g.o!
Top
riggity_ryan
n00b
n00b
User avatar
Posts: 18
Joined: Tue Jun 15, 2004 5:50 am

  • Quote

Post by riggity_ryan » Mon May 02, 2005 3:59 am

Sorry if this question sounds silly, but how do you use the patches once someone makes them? I've never had to do it before. I couldn't even find plink.sh to change it by hand.
"Even a mosquito doesn't get a pat on the back until he's well into his work"
Top
Post Reply

13 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic