Re: Debian policy, a problem or a misunderstand ?

2008-10-18 Thread Osamu Aoki
On Sat, Oct 18, 2008 at 07:16:50AM +0200, Laurent Guignard wrote:
 Hi mentors,
 
 I read the Debian policy to create my package and i read this at chapter
 6.1 Introduction to package maintainer scripts
 
 The package management system looks at the exit status from these
 scripts. *It is important that they exit with a non-zero status if there
 is an error*, so that the package management system can stop its
 processing. For shell scripts this means that you almost always need to
 use set -e (this is usually true when writing shell scripts, in fact).
 It is also important, of course, that *they don’t exit with a non-zero
 status if everything went well.*
 
 It seems that if an error occurs, the script have to exit with non-zero
 status and later in paragraph, if all went well, the script has to exit
 with non-zero status.
 
 How do i have understand that ?
 
 My opinion is that if everything went well, the exit status has to be
 zero other else a non-zero status ?

Basic shell exit code convention may be non-intuitive.

non-zero  if ERROR
zero  if success

[EMAIL PROTECTED]:~$ true ; echo $?
0
[EMAIL PROTECTED]:~$ false ; echo $?
1

Osamu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Debian policy, a problem or a misunderstand ?

2008-10-18 Thread Ben Finney
Laurent Guignard [EMAIL PROTECTED] writes:

 Hi mentors,
 
 I read the Debian policy to create my package and i read this at chapter
 6.1 Introduction to package maintainer scripts
 
 The package management system looks at the exit status from these
 scripts. *It is important that they exit with a non-zero status if there
 is an error*, so that the package management system can stop its
 processing. For shell scripts this means that you almost always need to
 use set -e (this is usually true when writing shell scripts, in fact).
 It is also important, of course, that *they don’t exit with a non-zero
 status if everything went well.*
 
 It seems that if an error occurs, the script have to exit with non-zero
 status

Yes.

 and later in paragraph, if all went well, the script has to exit
 with non-zero status.

No, you've flipped a boolean somewhere :-) It says exactly the
opposite: it is important that the script *not* exit with a non-zero
status if all went well.

 How do i have understand that ?

Perhaps the double negatives are confusing you.

 My opinion is that if everything went well, the exit status has to
 be zero other else a non-zero status ?

Yes, that's the meaning of the passage you quoted.

-- 
 \“I don't accept the currently fashionable assertion that any |
  `\   view is automatically as worthy of respect as any equal and |
_o__)   opposite view.” —Douglas Adams |
Ben Finney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Alexander Bürger
Hei,

  You might want to investigate the 'pbuilder' package for maintaining a
  chroot specifically to build your packages inside.
 
 You should also test your packages in unstable too.

So how would I do that efficiently? It is highly unlikely that I buy a
second computer, or that I replace ubuntu on the existing one...

The package has only 4 files (binary, copyright, changelog, manpage).

 http://wiki.debian.org/PaulWise

I did not find any hints regarding debian/ubuntu on this wiki page.

Best wishes,

Alexander



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Stephen Gran
This one time, at band camp, Alexander Bürger said:
 Hei,
 
   You might want to investigate the 'pbuilder' package for maintaining a
   chroot specifically to build your packages inside.
  
  You should also test your packages in unstable too.
 
 So how would I do that efficiently? It is highly unlikely that I buy a
 second computer, or that I replace ubuntu on the existing one...

Most people who want to run stable on their machines use an unstable
chroot for development work.
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Re: RFS: fig2sxd

2008-10-18 Thread Holger Levsen
Hi,

On Saturday 18 October 2008 12:28, Stephen Gran wrote:
 Most people who want to run stable on their machines use an unstable
 chroot for development work.

Depending on the needs, a virtual machine using the virtualbox package is 
another good option.


regards,
Holger


pgpQCyr2DTHf8.pgp
Description: PGP signature


Re: Debian policy, a problem or a misunderstand ?

2008-10-18 Thread Laurent Guignard


Ben Finney a écrit :
 Laurent Guignard [EMAIL PROTECTED] writes:
 
 Hi mentors,

 I read the Debian policy to create my package and i read this at chapter
 6.1 Introduction to package maintainer scripts

 The package management system looks at the exit status from these
 scripts. *It is important that they exit with a non-zero status if there
 is an error*, so that the package management system can stop its
 processing. For shell scripts this means that you almost always need to
 use set -e (this is usually true when writing shell scripts, in fact).
 It is also important, of course, that *they don’t exit with a non-zero
 status if everything went well.*

 It seems that if an error occurs, the script have to exit with non-zero
 status
 
 Yes.
 
 and later in paragraph, if all went well, the script has to exit
 with non-zero status.
 
 No, you've flipped a boolean somewhere :-) It says exactly the
 opposite: it is important that the script *not* exit with a non-zero
 status if all went well.
 
 How do i have understand that ?
 
 Perhaps the double negatives are confusing you.

Yes it is. A saturday, 07:00 it is excusable ;).

 
 My opinion is that if everything went well, the exit status has to
 be zero other else a non-zero status ?
 
 Yes, that's the meaning of the passage you quoted.
 

Sorry for noise.

-- 
Laurent Guignard, Registered as user #301590 with the Linux Counter
Site : http://www.famille-guignard.org
Blog : http://blog.famille-guignard.org
Projet : http://sicontact.sourceforge.net
GULL de Villefranche sur Saône : http://www.cagull.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Alexander Reichle-Schmehl
Hi!

Alexander Bürger schrieb:

 You might want to investigate the 'pbuilder' package for maintaining a
 chroot specifically to build your packages inside.
 You should also test your packages in unstable too.
 So how would I do that efficiently? It is highly unlikely that I buy a
 second computer, or that I replace ubuntu on the existing one...

You don't need a second computer.  Ben already mentioned one tool you
could use: pbuilder.  You can set up an chroot environment with that
tool, build packages in a clean sid environment and you can test
(some) things when using pbuilder --login and installing your package there.


Best regards,
  Alexander



signature.asc
Description: OpenPGP digital signature


Re: Debian policy, a problem or a misunderstand ?

2008-10-18 Thread Eduardo M KALINOWSKI
Ben Finney wrote:
 Laurent Guignard [EMAIL PROTECTED] writes:

   
 [...]
 It is also important, of course, that *they don’t exit with a non-zero
 status if everything went well.*
 

 How do i have understand that ?
 

 Perhaps the double negatives are confusing you.
   

They are confusing indeed. It would be better if it was written ...
that they exit with a zero return status if everything went well.

Comments, your could a wishlist bug be filled suggesting this wording
change?

-- 
Your program is sick!  Shoot it and put it out of its memory.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Alexander Bürger
Hi,

 ... a virtual machine ...

I set up a virtual machine with debian unstable and re-built the
package. The only change from this step was that the Standards-Version
is now 3.8.0.

The new package is re-uploaded to debian-mentors. 
It can be found via:
- URL: http://mentors.debian.net/debian/pool/main/f/fig2sxd
- Source repository: deb-src http://mentors.debian.net/debian unstable main 
contrib non-free
- dget http://mentors.debian.net/debian/pool/main/f/fig2sxd/fig2sxd_0.19-1.dsc

I would be glad if someone uploaded the package for me.

Thanks,

Alexander



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: cracklib2 bashism in update-cracklib fixed

2008-10-18 Thread Pierre Habouzit
On Thu, Oct 16, 2008 at 08:07:11PM +, Jan Dittberner wrote:
 Hello release team, hello mentors,
 
 the Ubuntu folks discovered a bug [1] in cracklib-runtime that turned
 out to be caused by a bashism in its update-cracklib script. Steve
 Langasek fixed the issue in the Ubuntu package and forwarded me a link
 to the debdiff [2].
 
 Unfortunately a new upstream version of cracklib2 has been created and
 was uploaded to unstable recently, so I cannot simply go the way
 through unstable. I don't want to introduce the new upstream release
 in Lenny at this late point of the release cycle and you surely do not
 want it too.
 
 I prepared an upload to testing-proposed-updates that includes only
 the fix for the bug mentioned above and the fix for the
 cracklib-runtime's postinst maintainer-script-ignores-error fix that
 I made in 2.8.13-1. I'm no DD so I need a sponsor to upload the
 package. I put the package on mentors.debian.net [3]. The debdiff is
 attached to this mail.
 
 Will the package reach Lenny this way? If not, could anybody please
 unblock it when it's uploaded?
 
 
 Regards
 Jan Dittberner
 
 [1] https://bugs.launchpad.net/bugs/278743
 [2] http://launchpadlibrarian.net/18591357/cracklib2-278743.debdiff
 [3] 
 http://mentors.debian.net/debian/pool/main/c/cracklib2/cracklib2_2.8.12-8lenny1.dsc


I'll sponsor and unblock it.



-- 
·O·  Pierre Habouzit
··O[EMAIL PROTECTED]
OOOhttp://www.madism.org


pgpooRLw47FmZ.pgp
Description: PGP signature


Re: Debian policy, a problem or a misunderstand ?

2008-10-18 Thread Justin T Pryzby
On Sat, Oct 18, 2008 at 07:16:50AM +0200, Laurent Guignard wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi mentors,
 
 I read the Debian policy to create my package and i read this at chapter
 6.1 Introduction to package maintainer scripts
 
 The package management system looks at the exit status from these
 scripts. *It is important that they exit with a non-zero status if there
 ^
 is an error*, so that the package management system can stop its
 processing. For shell scripts this means that you almost always need to
 use set -e (this is usually true when writing shell scripts, in fact).
 It is also important, of course, that *they don’t exit with a non-zero
 ^^^
 status if everything went well.*
Perhaps this should say If everything goes well, they should exit
with zero status.

 It seems that if an error occurs, the script have to exit with non-zero
 status and later in paragraph, if all went well, the script has to exit
 
  should not
 with non-zero status.

 How do i have understand that ?  My opinion is that if everything
 went well, the exit status has to be zero other else a non-zero
 status ?
Correct.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RFS: ttf-rufscript

2008-10-18 Thread Andrew Starr-Bochicchio
Dear mentors,

I am looking for a sponsor for my package ttf-rufscript.

* Package name : ttf-rufscript
  Version : 010-1
  Upstream Author : Hiran Venugopalan [EMAIL PROTECTED]
* URL : http://hiran.in/blog/rufscript-font
* License : GPL-3 + Font exception
  Section : x11

It builds these binary packages:
ttf-rufscript - a handwriting based font for Latin characters

The package appears to be lintian clean.

The upload would fix these bugs: 502645

The package can be found on mentors.debian.net:
- URL: http://mentors.debian.net/debian/pool/main/t/ttf-rufscript
- Source repository: deb-src http://mentors.debian.net/debian unstable
main contrib non-free
- dget
http://mentors.debian.net/debian/pool/main/t/ttf-rufscript/ttf-rufscript_010-1.dsc

I would be glad if someone uploaded this package for me.

Kind regards
 Andrew Starr-Bochicchio


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Ben Finney
Alexander Bürger [EMAIL PROTECTED] writes:

 Hi,
 
  ... a virtual machine ...
 
 I set up a virtual machine with debian unstable and re-built the
 package. The only change from this step was that the Standards-Version
 is now 3.8.0.

You also tested the package inside the chroot as a user of that
package, to make sure it's as functional?

-- 
 \“Like the creators of sitcoms or junk food or package tours, |
  `\ Java's designers were consciously designing a product for |
_o__)   people not as smart as them.” —Paul Graham |
Ben Finney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Ben Finney
Alexander Bürger [EMAIL PROTECTED] writes:

 Hei,
 
  You should also test your packages in unstable too.
 
 So how would I do that efficiently? It is highly unlikely that I buy
 a second computer, or that I replace ubuntu on the existing one...

As an aside: It is the burden of the package maintainer to ensure they
have the proper development and packaging environment. If you're not
able to maintain a Debian ‘unstable’ environment for proper packaging
and testing of your packages, you may want to re-think whether you're
currently able to do the service of package management.

-- 
 \“Pinky, are you pondering what I'm pondering?” “Wuh, I think |
  `\  so, Brain, but how will we get three pink flamingos into one |
_o__) pair of Capri pants?” —_Pinky and The Brain_ |
Ben Finney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Alexander Bürger
Hi,
 
  ... virtual machine with debian unstable ...
 ... inside the chroot ...

Which chroot?

 ... make sure it's as functional?

Yes, it is!

Best wishes,

Alexander



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RFS: fig2sxd

2008-10-18 Thread Alexander Bürger
Hi,

   ... also test your packages in unstable ...
  ... how ... efficiently? ...
 ... burden ... If you're not able ... re-think ...

Sorry. I do not package very often so I sometimes have basic questions
or problems. I was not sure what would be the simplest acceptable
solution to the 'ubuntu problem'. I had the impression that pbuilder was
not acceptable and I did not immediately think of a virtual machine.

Best wishes,

Alexander



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]