Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169051 - dev-lang/squirrel - extremely fast interpreted language (new ebuild)
Summary: dev-lang/squirrel - extremely fast interpreted language (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://squirrel-lang.org/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 169060
  Show dependency tree
 
Reported: 2007-03-02 21:42 UTC by patrick
Modified: 2010-03-05 18:45 UTC (History)
2 users (show)

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


Attachments
squirrel-2.1.1.ebuild (squirrel-2.1.1.ebuild,1.04 KB, text/plain)
2007-03-02 21:44 UTC, patrick
Details
squirrel-2.1.1.ebuild (squirrel-2.1.1.ebuild,1.04 KB, text/plain)
2007-03-03 13:57 UTC, patrick
Details
squirrel-2.1.1.ebuild (squirrel-2.1.1.ebuild,1.05 KB, text/plain)
2007-03-04 17:26 UTC, patrick
Details
squirrel-2.1.1.ebuild (squirrel-2.1.1.ebuild,987 bytes, text/plain)
2007-03-04 18:35 UTC, patrick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description patrick 2007-03-02 21:42:44 UTC
I wrote an ebuild for Squirrel.

Reproducible: Always

Steps to Reproduce:
Comment 1 patrick 2007-03-02 21:44:28 UTC
Created attachment 111856 [details]
squirrel-2.1.1.ebuild

I keyworded it x86 and amd64, even though I think it should work also on many other platforms, but I can't test, because I have no access to those machines.
Comment 2 patrick 2007-03-03 13:57:22 UTC
Created attachment 111915 [details]
squirrel-2.1.1.ebuild

install examples into samples instead of Samples
Comment 3 keenblade 2007-03-03 22:24:27 UTC
Emerge fails with this error on ~amd64. (Btw, it compiles manually fine)

>>> Compiling source in /var/tmp/portage/dev-lang/squirrel-2.1.1 ...
make: *** No rule to make target `sq64'.  Stop.

!!! ERROR: dev-lang/squirrel-2.1.1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 1292:   Called src_compile
  squirrel-2.1.1.ebuild, line 22:   Called die

!!! emake failed
Comment 4 patrick 2007-03-04 12:59:41 UTC
Well, I tried it on my computer, and it worked, I have no idea what could have caused this...
Especially when you say that it worked manually. Perhaps you have an idea what happened?
Comment 5 keenblade 2007-03-04 13:33:27 UTC
(In reply to comment #4)
> Especially when you say that it worked manually. Perhaps you have an idea what
> happened?
> 
for my case, the ebuild runs make inside:
/var/tmp/portage/dev-lang/squirrel-2.1.1
but it must have run there:
/var/tmp/portage/dev-lang/squirrel-2.1.1/work (I guess it must run make sq64 here).
I don't have ebuild skills, yet. Sorry if I'm wrong.
Comment 6 patrick 2007-03-04 17:26:58 UTC
Created attachment 112083 [details]
squirrel-2.1.1.ebuild

In fact your hint was really helpful. I guess now the ebuild should be fixed now, could you try?
Comment 7 patrick 2007-03-04 17:28:26 UTC
Oh, and the reason it worked for me was because I use paludis (stupid me, should've tried it with portage...)
Comment 8 patrick 2007-03-04 18:35:19 UTC
Created attachment 112100 [details]
squirrel-2.1.1.ebuild

Making use of my newly obtained knowledge about how ${S} should be used.
Comment 9 patrick 2007-03-06 20:29:36 UTC
This is now in the sunrise overlay. You can find it at:
http://www.gentoo-sunrise.org/sunrise/browser/sunrise/dev-lang/squirrel
Comment 10 keenblade 2007-03-07 22:32:39 UTC
(In reply to comment #6)
> Created an attachment (id=112083) [edit]
> squirrel-2.1.1.ebuild
> 
> In fact your hint was really helpful. I guess now the ebuild should be fixed
> now, could you try?
> 
Thanks. But there are still problems. Now it emerges, but when I run 
sq
 it says 
bash: /usr/bin/sq: Permission denied

Also while emerging it gives these warnings:
strip: x86_64-pc-linux-gnu-strip --strip-unneeded
   usr/bin/sq
   usr/lib/libsqstdlib.a
   usr/lib/libsquirrel.a

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * sqcompiler.cpp:652: warning: dereferencing type-punned pointer will break strict-aliasing rules

Comment 11 keenblade 2007-03-07 22:58:52 UTC
(In reply to comment #9)
> This is now in the sunrise overlay. You can find it at:
> http://www.gentoo-sunrise.org/sunrise/browser/sunrise/dev-lang/squirrel
> 
Also this one (Revision 3145) fails to emerge with this error:
strip: x86_64-pc-linux-gnu-strip --strip-unneeded
   bin/sq
   lib/libsqstdlib.a
   lib/libsquirrel.a

 * QA Notice: Excessive files found in the / partition
 * /var/tmp/portage/dev-lang/squirrel-2.1.1/image/lib/libsqstdlib.a
/var/tmp/portage/dev-lang/squirrel-2.1.1/image/lib/libsquirrel.a


!!! ERROR: dev-lang/squirrel-2.1.1 failed.
Call stack:
  misc-functions.sh, line 570:   Called install_qa_check
  misc-functions.sh, line 276:   Called die

!!! static archives (*.a) and libtool library files (*.la) do not belong in /
Comment 12 patrick 2007-03-08 19:01:56 UTC
Thanks for the clue, this was really stupid bug. Should be fixed now (again ;-).
Comment 13 keenblade 2007-03-09 01:01:54 UTC
(In reply to comment #12)
> Thanks for the clue, this was really stupid bug. Should be fixed now (again
> ;-).
> 
Hi, Patrick. With Revision 3183 when I run
sq
 it says 
bash: /usr/bin/sq: Permission denied

Althoug emerge completes,it gives gives these warnings while emerging:

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * sqcompiler.cpp:652: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqvm.cpp:711: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:23: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:46: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:57: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:81: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:92: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:160: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:168: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:195: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:213: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdblob.cpp:238: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdio.cpp:187: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:21: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:42: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:104: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:116: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:185: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:204: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:211: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:218: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstream.cpp:228: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstring.cpp:216: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstring.cpp:241: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstring.cpp:255: warning: dereferencing type-punned pointer will break strict-aliasing rules
sqstdstring.cpp:279: warning: dereferencing type-punned pointer will break strict-aliasing rules
Comment 14 patrick 2007-03-09 14:09:39 UTC
Fine, I repaired that one, too. About the warnings you get, they are a problem of squirrel, not the ebuild, so I can do nothing about that.
Comment 15 keenblade 2007-03-09 21:18:42 UTC
Thank you very much for maintaining this. With Revision 3187 everything works.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2008-02-04 21:46:24 UTC
Eh, didn't mean to close this.
Comment 17 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2009-02-11 21:06:05 UTC
This ebuild causes conflicts/collides with ispell:

 * Detected file collision(s):
 * 
 *      /usr/bin/sq
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * app-text/ispell-3.2.06-r6
 *      /usr/bin/sq
 * 
 * Package 'dev-lang/squirrel-2.1.1' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.

I don't know why I have ispell installed - I don't like it :-). But I do think that some action should be taken because of the conflict. I'd think neither squirrel or ispell should install a binary with such a short name in the first place, though it looks like it's trying to imitate a shell's name (e.g. ``/bin/sh'', or ``#!/usr/bin/sq'' ?)
I think the ebuild should at least block ispell.
Comment 18 Markos Chandras (RETIRED) gentoo-dev 2010-03-05 18:45:35 UTC
+# ChangeLog for dev-lang/squirrel
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*squirrel-2.2.4 (05 Mar 2010)
+
+  05 Mar 2010; Markos Chandras <hwoarang@gentoo.org> +squirrel-2.2.4.ebuild,
+  +files/squirrel-2.2.4-autotools.patch,
+  +files/squirrel-2.2.4-stdint.h.patch,
+  +files/squirrel-2.2.4-supertux-const.patch, +metadata.xml:
+  Initial commit for squirrel package. Moved from sunrise. Thanks to Nathan
+  Phillip Brink <ohnobinki@ohnopublishing.net> for the ebuild. Fixes bug
+  #169051
+

Nathan will proxy-maintain it

Closing