Re: [gentoo-dev] NPM / NodeJS project

2015-06-28 Thread Andrew Udvare

> On 2015-06-28, at 09:30, Michael Orlitzky  wrote:
> 
>  https://github.com/orlitzky/npm We don't 
> have any standalone javascript packages in the tree at the
> moment but I know there's been some interest before. Is anyone still
> (planning on) working on javascript stuff in-tree?

Not in tree, but I was planning on an idea called enpm but I realised resolving 
dependencies in npm is horrible, almost as bad as the live code on building 
with Go. The only way I could see this work is to package the dependencies with 
the app in a single tarball similar to what Vagrant does now. It is not the 
Gentoo way but these new systems (gem, Composer, even Go) seem to not care very 
much about having packages you can consider stable, nor predictable 
dependencies.

I would still find it useful to install CoffeeScript (among others like 
PhantomJS) via Portage for global use. Right now I hack on ~/node_modules/.bin 
to PATH in my shell (luckily that works).

[gentoo-dev] Automated Package Removal and Addition Tracker, for the week ending 2015-06-28 23:59 UTC

2015-06-28 Thread Robin H. Johnson
The attached list notes all of the packages that were added or removed
from the tree, for the week ending 2015-06-28 23:59 UTC.

Removals:

Additions:
sci-mathematics/rw  2015-06-22 15:12:57 mjo
dev-perl/Mo 2015-06-26 09:17:07 monsieurp
dev-ruby/bundler-audit  2015-06-26 15:23:09 zerochaos
dev-python/hypothesis   2015-06-27 09:18:20 idella4
dev-util/scala-ide  2015-06-28 11:55:10 monsieurp

--
Robin Hugh Johnson
Gentoo Linux Developer
E-Mail : robb...@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
Removed Packages:
Added Packages:
sci-mathematics/rw,added,mjo,2015-06-22 15:12:57
dev-perl/Mo,added,monsieurp,2015-06-26 09:17:07
dev-ruby/bundler-audit,added,zerochaos,2015-06-26 15:23:09
dev-python/hypothesis,added,idella4,2015-06-27 09:18:20
dev-util/scala-ide,added,monsieurp,2015-06-28 11:55:10
Done.

Re: [gentoo-dev] Herd/project cleanup

2015-06-28 Thread Manuel Rüger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 27.06.2015 22:20, Brian Evans wrote:
> On 06/27/2015 03:39 PM, Johannes Huber wrote:
>> Hello Kentoos,
> 
>> i think this topic is overdue. Compared to the list of members
>> and real activity i would love to cleanup the herd/project.
> 
>> So please raise your hands to say "yes i want to stay part of
>> it" or "no i am not interested anymore". Please answer me within
>> 90 days. If you reading this mail after the 90 days and be
>> removed, feel free to re-join.
> 
>> Greetings,
> 
> I wish to stay with the mysql and php herds/projects
> 
> Brian
> 

I think this topic is only about kde project, other projects might
handle it differently. Actually I don't know why it was CC'ed to g-dev.
:)

Manuel
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0

iQJ8BAEBCgBmBQJVkCagXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4MDA1RERERkM0ODM2QkE4MEY3NzY0N0M1
OEZCQTM2QzhEOUQ2MzVDAAoJEFj7o2yNnWNcrq4QAJwJ0gAT5uJFVQekzVTfkkc5
uqHnzFONwz4RnputD4pNhHpAWV61CvFua2xlqdZ8UlxegXNNtRLvqn3qIzsikwWR
J0FhfDsdfzzwcNLMzBAmmPfJlyy+6nNFEIWSMQOVvUVdT8zwGbiymD7fIk1bDrzH
DkH2YWDqH9vA8zm9nebuzwSMebr1+6SFCwGOewN820XAAix9G+0iG4/z6Ae8ATXm
Ga9KKGx5OYWJtdU9i0v5e+EExM5f+BsDSFqhph+r9aSN14MRPVrBXbvc4BdNTk7B
wzDYFxIXryNES0XzjZlF3P2s1Pgqx9EghHKZXajdzc+65bEAFj3UHqqbboeINdXT
yBSXi5h/C+Sylhu4mlrV3J2xxrahBVtNJug4ua5Q87vED68mDlwc/5O3ND6ipztd
QZKvnI7GuUGzsIOSj/joLumyu6tjYXa5hKYvn9ZXL5eA09Xx8rkPRhvpUZ97YYjZ
Y1pMQW78PwGtO2dMvSKMktkdFDUAEr0Q3i9ZBKNAzr6/i7Kh0+k+bU/EuFpnGcbT
dTBKlvboaeiKLM78zy4r5sbctqh9ZCpMxUPgI9JR3FomzAbDafACIcPt5qQjDH+v
Znl3yyL6F0ffio22EKzt9i458sFS36kSPhcOCknipJrV9ScIeuKUEgbCRzBtf+z8
QXEHQKfMlbLVQ6NwNK/O
=aHXc
-END PGP SIGNATURE-



[gentoo-dev] Re: Herd/project cleanup

2015-06-28 Thread Michael Palimaka
On 28/06/15 05:39, Johannes Huber wrote:
> Hello Kentoos,
> 
> i think this topic is overdue. Compared to the list of members and real 
> activity i would love to cleanup the herd/project.
> 
> So please raise your hands to say "yes i want to stay part of it" or "no i am 
> not interested anymore". Please answer me within 90 days. If you reading this 
> mail after the 90 days and be removed, feel free to re-join. 
> 
> Greetings,
> 

I'll stay for now.




[gentoo-dev] NPM / NodeJS project

2015-06-28 Thread Michael Orlitzky
I recently found a need for the CoffeeScript compiler[0] that runs on
top of NodeJS. Its test suite requires a bunch of other javascript
packages, and I wound up packaging enough of them to test CoffeeScript.

In the process I wrote an eclass to handle packages hosted on the npm
registry[1] and install them globally. I put all of this in an overlay
for now:

  https://github.com/orlitzky/npm

We don't have any standalone javascript packages in the tree at the
moment but I know there's been some interest before. Is anyone still
(planning on) working on javascript stuff in-tree?

If not, I'll probably commit dev-lang/coffee-script to the tree without
its test suite. But if so, the eclass and few dev-js packages I have
might be a good start. Then I could add coffee-script with its test
suite working.


[0] http://coffeescript.org/
[1] https://www.npmjs.com/



[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.eclass

2015-06-28 Thread Martin Vaeth
Dan Douglas  wrote:
> for x in *; do
> [[ -e $x ]] || continue
> ...
> done

You should also test for $x not being a symlink.
Otherwise you can miss the corner case that you have
a dead/unresolvable symlink called "*".




Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.eclass

2015-06-28 Thread Dan Douglas
On Sun, Jun 28, 2015 at 10:14 AM, Alexis Ballier  wrote:
> On Sun, 28 Jun 2015 14:46:01 +0200
> Patrice Clement  wrote:
>
>> man 3 glob
>> man 3 fnmatch
>> man 1 bash -> read the section called "Pattern Matching" under
>> "EXPANSION".
>>
>> in this case, $(ls) would unnecessarily spawn a subshell for listing
>> files. You can often get the same result by using wildcard expansion
>> (or globbing) like Michal said:
>>
>> for lang in *; do
>> ...
>> done
>>
>> It is often faster.
>
>
> and it avoids aliases:
>
> /etc $ echo $(ls)
> total 1.7M drwxr-xr-x 4 root root 4.0K Aug 29 2014 acpi -rw-r--r-- 1
> root root 44 Oct 6 2014 adjtime drwxr-xr-x 2 root root 4.0K Jun 26
> 19:27 adobe drwxr-xr-x 3 root root 4.0K Mar 22 15:46 ardour3 drwxr-xr-x
> 3 root root 4.0K May 8 13:14 ardour4 drwxr-xr-x 2 root root 4.0K Jun 15
> 17:06 at-spi2 drwxr-xr-x 3 root root etc.
>
> I doubt that is what is wanted
>
>
>
> However, beware of empty directories:
>
> /tmp/toto $ ls
> total 0
> /tmp/toto $ for a in *; do echo $a; done
> *
>

Portage doesn't enable shopt expand_aliases to my knowledge, and it
wouldn't matter if it did because aliases aren't inherited from parent
shells.

The reason for a glob aside from performance is pathname
expansion being evaluated last, after field splitting and all other
expansions. Files with names containing characters in IFS or glob
metacharacters will be mangled. `for x in $(anything)' is almost always
wrong.

A correct loop over files should be close to this (when nullglob is
disabled):

for x in *; do
[[ -e $x ]] || continue
...
done



Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.eclass

2015-06-28 Thread Alexis Ballier
On Sun, 28 Jun 2015 14:46:01 +0200
Patrice Clement  wrote:

> man 3 glob
> man 3 fnmatch
> man 1 bash -> read the section called "Pattern Matching" under
> "EXPANSION".
> 
> in this case, $(ls) would unnecessarily spawn a subshell for listing
> files. You can often get the same result by using wildcard expansion
> (or globbing) like Michal said:
> 
> for lang in *; do
> ...
> done
> 
> It is often faster.


and it avoids aliases:

/etc $ echo $(ls)
total 1.7M drwxr-xr-x 4 root root 4.0K Aug 29 2014 acpi -rw-r--r-- 1
root root 44 Oct 6 2014 adjtime drwxr-xr-x 2 root root 4.0K Jun 26
19:27 adobe drwxr-xr-x 3 root root 4.0K Mar 22 15:46 ardour3 drwxr-xr-x
3 root root 4.0K May 8 13:14 ardour4 drwxr-xr-x 2 root root 4.0K Jun 15
17:06 at-spi2 drwxr-xr-x 3 root root etc.

I doubt that is what is wanted



However, beware of empty directories:

/tmp/toto $ ls
total 0
/tmp/toto $ for a in *; do echo $a; done


   
*



Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.eclass

2015-06-28 Thread Patrice Clement
man 3 glob
man 3 fnmatch
man 1 bash -> read the section called "Pattern Matching" under "EXPANSION".

in this case, $(ls) would unnecessarily spawn a subshell for listing files. You
can often get the same result by using wildcard expansion (or globbing) like
Michal said:

for lang in *; do
...
done

It is often faster.

Cheers,
Patrice

Sunday 28 Jun 2015 14:25:25, Johannes Huber wrote :
> On Sunday 28 June 2015 04:12:01 Michal Górny wrote:
> 
> > > + for lang in $(ls) ; do
> > 
> > How about... for lang in *?
> 
> What is the advantage?
> 
> Greetings
> -- 
> Johannes Huber (johu)
> Gentoo Linux Developer / KDE Team
> GPG Key ID FDF4F788




pgpz97nHdicW7.pgp
Description: PGP signature


[gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog kde5-functions.eclass kde5.eclass

2015-06-28 Thread Johannes Huber
On Sunday 28 June 2015 04:12:01 Michał Górny wrote:

> > +   for lang in $(ls) ; do
> 
> How about... for lang in *?

What is the advantage?

Greetings
-- 
Johannes Huber (johu)
Gentoo Linux Developer / KDE Team
GPG Key ID FDF4F788

signature.asc
Description: This is a digitally signed message part.