public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] wierd problem with ebuild
@ 2002-12-16  6:45 Henti Smith
  2002-12-16  6:49 ` Henti Smith
  2002-12-16 13:53 ` Aron Griffis
  0 siblings, 2 replies; 9+ messages in thread
From: Henti Smith @ 2002-12-16  6:45 UTC (permalink / raw
  To: gentoo-dev

Hi there 

I'm busy writing an ebuild for moonlight 3d modeler .. it's pretty cool :) 
anyway .. 

when executing ebuild /path/moonlight-0.5.5.ebuild install I get this

>>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
/bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
/bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
make: *** [/usr/lib/moonlight] Error 2

!!! ERROR: media-gfx/moonlight-0.5.5 failed.
!!! Function src_install, Line 2, Exitcode 2
!!! (no error message)

I'm not sure at all what the token "32562" stuff is ... anybody have a clue ? 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-16  6:45 [gentoo-dev] wierd problem with ebuild Henti Smith
@ 2002-12-16  6:49 ` Henti Smith
       [not found]   ` <20021219142832.GA25245@Hitachi>
  2002-12-16 13:53 ` Aron Griffis
  1 sibling, 1 reply; 9+ messages in thread
From: Henti Smith @ 2002-12-16  6:49 UTC (permalink / raw
  To: gentoo-dev

On Mon, 16 Dec 2002 08:45:03 +0200
Henti Smith <bain@tcsn.co.za> wrote:

> Hi there 
> 
> I'm busy writing an ebuild for moonlight 3d modeler .. it's pretty cool :) 
> anyway .. 
> 
> when executing ebuild /path/moonlight-0.5.5.ebuild install I get this
> 
> >>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
> /bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
> /bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
> make: *** [/usr/lib/moonlight] Error 2
> 
> !!! ERROR: media-gfx/moonlight-0.5.5 failed.
> !!! Function src_install, Line 2, Exitcode 2
> !!! (no error message)
> 
> I'm not sure at all what the token "32562" stuff is ... anybody have a clue ? 

on closer inspection of the Makefile ... this is where the problem seems to come in 

installdata:
    @mkdir -p $(DESTDIR)$(prefix)/bin
    @mkdir -p $(DESTDIR)$(prefix)/etc
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/GEOMETRIES
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/HIERARCHIES
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/IMAGES
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/MATERIALS
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/PROJECTS
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/SCENES
    @mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/TT_FONTS
    cp moonlightrc $(DESTDIR)$(prefix)/etc/
    cp moonlight $(DESTDIR)$(prefix)/bin/
    chmod +x $(DESTDIR)$(prefix)/bin/moonlight
    cp $(VPATH)/../tt_fonts/*.txt $(VPATH)/../tt_fonts/*.ttf $(DESTDIR)$(prefix)/share/moonlight/database/TT_FONTS

I'm still not sure how that translates to 32562 .. 

anybody else wanna have a crack at this ... ? 

mail me .. I'll send you my current ebuikd .. it's dirty .. but it compiles at least ;PPPP ehe 

another question .. if the source untar's into a straight diretoiry without version info .. 
is it ok if I change S=${WORKDIR}/moonlight ? 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-16  6:45 [gentoo-dev] wierd problem with ebuild Henti Smith
  2002-12-16  6:49 ` Henti Smith
@ 2002-12-16 13:53 ` Aron Griffis
  2002-12-17 10:16   ` Henti Smith
  1 sibling, 1 reply; 9+ messages in thread
From: Aron Griffis @ 2002-12-16 13:53 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

Henti Smith wrote:	[Mon Dec 16 2002, 01:45:03AM EST]
> >>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
> /bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
> /bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
> make: *** [/usr/lib/moonlight] Error 2

Looks like the leading dollarsign is somehow being translated into the
PID of the shell process, though I don't know how that is from the
Makefile snippet.  Normally in a Makefile you would need a quadrupled
dollarsign ($$$$) for that to occur.

Try removing the @ from the start of the lines so that make will show
the command it's running.

Aron

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-16 13:53 ` Aron Griffis
@ 2002-12-17 10:16   ` Henti Smith
  2002-12-18 18:33     ` Aron Griffis
  0 siblings, 1 reply; 9+ messages in thread
From: Henti Smith @ 2002-12-17 10:16 UTC (permalink / raw
  To: Aron Griffis; +Cc: gentoo-dev

On Mon, 16 Dec 2002 08:53:44 -0500
Aron Griffis <agriffis@gentoo.org> wrote:

> Henti Smith wrote:	[Mon Dec 16 2002, 01:45:03AM EST]
> > >>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
> > /bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
> > /bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
> > make: *** [/usr/lib/moonlight] Error 2
> 
> Looks like the leading dollarsign is somehow being translated into the
> PID of the shell process, though I don't know how that is from the
> Makefile snippet.  Normally in a Makefile you would need a quadrupled
> dollarsign ($$$$) for that to occur.

very interresting ... 

> Try removing the @ from the start of the lines so that make will show
> the command it's running.

Sorry .. I'm not 100% sure which @ sign you are refering to. would you like to clarify?

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-17 10:16   ` Henti Smith
@ 2002-12-18 18:33     ` Aron Griffis
  2002-12-19  7:43       ` Henti Smith
  0 siblings, 1 reply; 9+ messages in thread
From: Aron Griffis @ 2002-12-18 18:33 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

Henti Smith wrote:	[Tue Dec 17 2002, 05:16:41AM EST]
> Sorry .. I'm not 100% sure which @ sign you are refering to. would you
> like to clarify?

In a Makefile:

blah:
	@echo hello

blah2:
	echo hello

$ make blah
hello

$ make blah2
echo hello
hello

Without the leading @ sign, make shows the commands it's running.

Aron

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-18 18:33     ` Aron Griffis
@ 2002-12-19  7:43       ` Henti Smith
  2002-12-19  8:05         ` Henti Smith
  2002-12-19 12:06         ` Aron Griffis
  0 siblings, 2 replies; 9+ messages in thread
From: Henti Smith @ 2002-12-19  7:43 UTC (permalink / raw
  To: Aron Griffis; +Cc: gentoo-dev

On Wed, 18 Dec 2002 13:33:36 -0500
Aron Griffis <agriffis@gentoo.org> wrote:

> Henti Smith wrote:	[Tue Dec 17 2002, 05:16:41AM EST]
> > Sorry .. I'm not 100% sure which @ sign you are refering to. would you
> > like to clarify?
> 
> 
> Without the leading @ sign, make shows the commands it's running.
> 

ok ... did that .. here is output .. 

>>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
/bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
/bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
make: *** [/usr/lib/moonlight] Error 2

!!! ERROR: media-gfx/moonlight-0.5.5 failed.
!!! Function src_install, Line 2, Exitcode 2
!!! (no error message)

Make file content is .. : 

VPATH=/var/tmp/portage/moonlight-0.5.5/work/moonlight/src
CXXFLAGS=-I$(VPATH) -I$(VPATH)/koalagui -I$(VPATH)/3D -I$(VPATH)/koalagui/graphics -I$(VPATH)/kbuilder/appcore -I. -D__X11__ -DML_USES_POSIX_THREADS -O2   -I/usr/include/gltt -I/usr/include/freetype
LDFLAGS=-Limage -Ltools -Lkernel -Lkoalagui -L3D/scene
CXX=g++
CC=g++
prefix=/usr
VERSION=0.5.5.61
INSTALLDATATARGET=installdata

include $(VPATH)/dir.mak
include $(VPATH)/rules.mak

installdata:
    mkdir -p $(DESTDIR)$(prefix)/bin
    mkdir -p $(DESTDIR)$(prefix)/etc
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/GEOMETRIES
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/HIERARCHIES
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/IMAGES
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/MATERIALS
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/PROJECTS
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/SCENES
    mkdir -p $(DESTDIR)$(prefix)/share/moonlight/database/TT_FONTS
    cp moonlightrc $(DESTDIR)$(prefix)/etc/
    cp moonlight $(DESTDIR)$(prefix)/bin/
    chmod +x $(DESTDIR)$(prefix)/bin/moonlight
    cp $(VPATH)/../tt_fonts/*.txt $(VPATH)/../tt_fonts/*.ttf $(DESTDIR)$(prefix)/share/moonlight/database/TT_FONTS

I'm going to try and see if I can do a "test install with just the course on an onld redhat boxlet 

Henti 


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-19  7:43       ` Henti Smith
@ 2002-12-19  8:05         ` Henti Smith
  2002-12-19 12:06         ` Aron Griffis
  1 sibling, 0 replies; 9+ messages in thread
From: Henti Smith @ 2002-12-19  8:05 UTC (permalink / raw
  To: agriffis; +Cc: gentoo-dev

On Thu, 19 Dec 2002 09:43:03 +0200
Henti Smith <bain@tcsn.co.za> wrote:

> ok ... did that .. here is output .. 
> 
> >>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
> /bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
> /bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
> make: *** [/usr/lib/moonlight] Error 2
> 
> !!! ERROR: media-gfx/moonlight-0.5.5 failed.
> !!! Function src_install, Line 2, Exitcode 2
> !!! (no error message)

ok .. it's deff the make file ... contacting the package maintainers 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
  2002-12-19  7:43       ` Henti Smith
  2002-12-19  8:05         ` Henti Smith
@ 2002-12-19 12:06         ` Aron Griffis
  1 sibling, 0 replies; 9+ messages in thread
From: Aron Griffis @ 2002-12-19 12:06 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

Henti Smith wrote:	[Thu Dec 19 2002, 02:43:03AM EST]
> > Without the leading @ sign, make shows the commands it's running.
> > 
> 
> ok ... did that .. here is output .. 
> 
> >>> Install moonlight-0.5.5 into /var/tmp/portage/moonlight-0.5.5/image/ category media-gfx
> /bin/sh: -c: line 1: syntax error near unexpected token `32563(D'
> /bin/sh: -c: line 1: `mkdir -p 32563(DESTDIR)/usr/lib/moonlight'
> make: *** [/usr/lib/moonlight] Error 2

The fact that it doesn't announce the commands it's running means that
we may be looking at the wrong part of the Makefile.

I would ask you to send me your ebuild so I can test it locally, but...
I'm headed out in a couple minutes for a week's vacation.  If you're
still working on this when I return, then we can take another try at it.
Good luck!

Aron

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] wierd problem with ebuild
       [not found]   ` <20021219142832.GA25245@Hitachi>
@ 2002-12-20  6:45     ` Henti Smith
  0 siblings, 0 replies; 9+ messages in thread
From: Henti Smith @ 2002-12-20  6:45 UTC (permalink / raw
  To: iblech; +Cc: gentoo-dev

> I have the following presumption:
> 
> $DESTDIR and $prefix are blank, so it turns to $$. And $$ is the actual
> process number, try echo $$ in different shells, and you will see different
> PIDs.
> 
> Try setting (before 'installdata:') the two variables to an non-empty value,

this was the problem ... to get an install running .. 
I had to do "make installdata" not "make install" 

problem solved thanks :)) 

Henti 

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-12-20  6:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-16  6:45 [gentoo-dev] wierd problem with ebuild Henti Smith
2002-12-16  6:49 ` Henti Smith
     [not found]   ` <20021219142832.GA25245@Hitachi>
2002-12-20  6:45     ` Henti Smith
2002-12-16 13:53 ` Aron Griffis
2002-12-17 10:16   ` Henti Smith
2002-12-18 18:33     ` Aron Griffis
2002-12-19  7:43       ` Henti Smith
2002-12-19  8:05         ` Henti Smith
2002-12-19 12:06         ` Aron Griffis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox