Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-14 Thread Maximilian Gass
On Mon, Dec 14, 2009 at 08:56:13PM +0100, Joerg Jaspert wrote:
> > You have a valid point there and gave me a new idea how to simplify.
> How?
Just an idea how to achieve something similar without any extra tools. However,
this bug report should stay on-topic.

> > I think space is cheap. If you said Debian wants to be more than just a
> > collection of packages and envstore does not qualify, that would be a useful
> > argument ;)
> 
> Its not only that. Its also - it is not just the package size. But also
> the amount it takes in the various package/sources and contents
> files. In the case of packages like envstore that makes more size than
> the package itself. And there it is very valid to question if the
> package actually adds value to the archive, or only increases the
> bandwidth each mirror has to provide for the Debian mirror. Each user
> has to download for updates. Each apt has to deal with.
I see.

> Now, I wont remove it, unless you ask for it in a bug. But how about
> morphing this into a useful collection of various shell tools? I'm sure
> there are more "tools" like envstore that are too small in itself to
> make a useful package, that all together would actually make sense to
> have.
I think we already have a such a collection, called moreutils. I will discuss 
this
with upstream.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-14 Thread Joerg Jaspert

>> Umm, the thing this tool does is so trivial in shell - do we really need
>> a package? It only wastes space, IMO.
> You have a valid point there and gave me a new idea how to simplify.

How?

> I think space is cheap. If you said Debian wants to be more than just a
> collection of packages and envstore does not qualify, that would be a useful
> argument ;)

Its not only that. Its also - it is not just the package size. But also
the amount it takes in the various package/sources and contents
files. In the case of packages like envstore that makes more size than
the package itself. And there it is very valid to question if the
package actually adds value to the archive, or only increases the
bandwidth each mirror has to provide for the Debian mirror. Each user
has to download for updates. Each apt has to deal with.

> Also, I do not want to tread on the internal affairs of the FTP team - but I'd
> rather envstore was rejected in the first place, than being accepted and
> suggested for removal afterwards.

I voiced my opinion about that internally.

Now, I wont remove it, unless you ask for it in a bug. But how about
morphing this into a useful collection of various shell tools? I'm sure
there are more "tools" like envstore that are too small in itself to
make a useful package, that all together would actually make sense to
have.

-- 
bye, Joerg
>Do you agree to uphold the Social Contract and the DFSG in your Debian
>work?
Absolutely.
(does anyone say "no" to this question? :) )



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-14 Thread Maximilian Gass
On Sat, 12 Dec 2009 19:54:12 +0100 Frank Lin PIAT wrote:
> I wonder how Unix could survive 30 years without such command.

Just because something is useful does not mean it is necessary for survival.
Unix also survived without udev or Gnome.


On Sat, 12 Dec 2009 21:36:41 +0100 Joerg Jaspert wrote:
> Umm, the thing this tool does is so trivial in shell - do we really need
> a package? It only wastes space, IMO.

You have a valid point there and gave me a new idea how to simplify.

I think space is cheap. If you said Debian wants to be more than just a
collection of packages and envstore does not qualify, that would be a useful
argument ;)

Also, I do not want to tread on the internal affairs of the FTP team - but I'd
rather envstore was rejected in the first place, than being accepted and
suggested for removal afterwards.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-13 Thread Daniel Friesel
On Sat, Dec 12, 2009 at 07:54:12PM +0100, Frank Lin PIAT wrote:
> 
> WTF?
> 
> Please Sam, drop your F* webpage. The [Open-Source] world don't need yet
> another license. Or make it clear that no one should actually use it.

You might want to send that part of the message to Sam. Anyway, noone
forces you to care about the license as long as it is free and maybe
GPL-compatible (which the WTFPL is).


> In most situation, this packaged can be replaced with:
> 
> echo $FOO > ~/.var_FOO
> then
> FOO=$(cat ~/.var_FOO)

I'd have to type the parameter name all the time, which is of course not
gonna kill me, but still can be avoided.
Also, this only works for one parameter, more of them would be quite
some work.


> In some exceptional situation, where the variable variables and escape
> code should be preserved, one can use:
> export | grep " PS4=" > ~/.var_FOO
> then
> . ~/.var_FOO
> 
> (No, it isn't guaranteed to be portable, and there might even be easier
> ways to achieve all this).

OK, I have to admit that I didn't think about using export for that.
  export | grep -e '^var1=' -e '^var2=' ... > ~/.something
would do the job in most cases. However, this is more about convenience.

Personally, I use envstore frequently, and I'm quite sure my usecase for
it is not totally uncommon. And when I do thing frequently, I want to do
them with as little effort as possible - and you'll have to agree that
typing "envstore s MPD_HOST" (especially with tabcompletion) is less
effort and you don't have to remember a file name as well.

It is of course possible to write a rather simple shell script or even
shell function instead, but then you'll have to mess around mith eval,
which tends to get quite hairy as soon as any unusual characters appear.
A solution written in C is slightly cleaner and of course relieves the
user of the need to write yet another shell script for that task.


> I wonder how Unix could survive 30 years without such command.

Because theres is a difference between a system which simply runs and a
system which runs while also being extremely usable.
(Yeah, a little overstatement in case of envstore, but you should get
my point - there's nothing wrong with more convenience.)


Anyway, of course I can't judge wether this package is "relevant" enough
to be included in Debian. Personally I think that having it won't hurt,
but if someone decides to remove it - well, so what.


signature.asc
Description: Digital signature


Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-12 Thread Joerg Jaspert

> * Package name: envstore
>   Version : 2.0
>   Upstream Author : Daniel Friesel 
> * URL : https://derf.homelinux.org/~derf/projects/envstore/* 
> License : WTFPL
>   Programming Lang: C
>   Description : save and restore environment variables

Umm, the thing this tool does is so trivial in shell - do we really need
a package? It only wastes space, IMO.

-- 
bye, Joerg
"Hätten die Affen, von denen wir angeblich abstammen, geahnt, dass durch
die Evolution eines Tages aus Ihren Reihen Politiker entstehen würden,
wären sie auf Ihren Bäumen geblieben und hätten niemals versucht den
aufrechten Gang zu erlernen."
(J. Sheridan, Babylon5)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-12 Thread Jonathan Yu
On Sat, Dec 12, 2009 at 1:54 PM, Frank Lin PIAT  wrote:
> Hi all,
>
> Do April Fools' Day occur in November in some part of the world?
>
> On Sun, 2009-11-29 at 21:01 +0100, Maximilian Gass wrote:
>> Package: wnpp
>>
>> * Package name    : envstore
>>   Version         : 2.0
>>   Upstream Author : Daniel Friesel 
>> * URL             : https://derf.homelinux.org/~derf/projects/envstore/
>> * License         : WTFPL
>
> WTF?
>
> Please Sam, drop your F* webpage. The [Open-Source] world don't need yet
> another license. Or make it clear that no one should actually use it.
FWIW, the WTFPL is accepted as compatible with the GPL by the Free
Software Foundation:

http://www.fsf.org/licensing/licenses/index_html#GPLCompatibleLicenses

That is, at least version 2 of that license...
>
>>   Description     : save and restore environment variables
>>
>> envstore allows you to save environment variables into a seperate store, list
>> them, and reload them into the shell again.
>
> In most situation, this packaged can be replaced with:
>
> echo $FOO > ~/.var_FOO
> then
> FOO=$(cat ~/.var_FOO)
>
> In some exceptional situation, where the variable variables and escape
> code should be preserved, one can use:
> export | grep " PS4=" > ~/.var_FOO
> then
> . ~/.var_FOO
>
> (No, it isn't guaranteed to be portable, and there might even be easier
> ways to achieve all this).
>
> I wonder how Unix could survive 30 years without such command.
>
> Franklin
>
>
> --
> To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-12-12 Thread Frank Lin PIAT
Hi all,

Do April Fools' Day occur in November in some part of the world?

On Sun, 2009-11-29 at 21:01 +0100, Maximilian Gass wrote:
> Package: wnpp
> 
> * Package name: envstore
>   Version : 2.0
>   Upstream Author : Daniel Friesel 
> * URL : https://derf.homelinux.org/~derf/projects/envstore/
> * License : WTFPL

WTF?

Please Sam, drop your F* webpage. The [Open-Source] world don't need yet
another license. Or make it clear that no one should actually use it.

>   Description : save and restore environment variables
> 
> envstore allows you to save environment variables into a seperate store, list
> them, and reload them into the shell again.

In most situation, this packaged can be replaced with:

echo $FOO > ~/.var_FOO
then
FOO=$(cat ~/.var_FOO)

In some exceptional situation, where the variable variables and escape
code should be preserved, one can use:
export | grep " PS4=" > ~/.var_FOO
then
. ~/.var_FOO

(No, it isn't guaranteed to be portable, and there might even be easier
ways to achieve all this).

I wonder how Unix could survive 30 years without such command.

Franklin




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#558684: ITP: envstore -- save and restore environment variables

2009-11-29 Thread Maximilian Gass
Package: wnpp
Severity: wishlist
Owner: Maximilian Gass 

* Package name: envstore
  Version : 2.0
  Upstream Author : Daniel Friesel 
* URL : https://derf.homelinux.org/~derf/projects/envstore/
* License : WTFPL
  Programming Lang: C
  Description : save and restore environment variables

envstore allows you to save environment variables into a seperate store, list
them, and reload them into the shell again.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org