You are not logged in.

#1 2011-01-02 09:53:52

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Update Arch Packaging Standards

Pre-emptive notice: I can't edit the page myself because it's locked.

The Arch Packaging Standards wiki page should be updated to include double quotation marks around all variables. There seems to be some misconception that using

${foo}

somehow prevents word-splitting in Bash... it doesn't. All variables should be double-quoted to prevent values with spaces in them from splitting words. Even if most people don't build on a path with spaces in the name, it is bad coding practice to rely on this to prevent breakage. As it stands, the following would not work as intended if the $srcdir contains a space in the path:

cd ${srcdir}

Note that the PKGBUILD prototypes included in pacman wrap variables in double quotation marks, so it seems that the wiki page is simply out-of-date.




It may be a good time to add the OCaml Package Guidelines to the page too.

Last edited by Xyne (2011-01-02 10:00:52)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2011-01-02 09:56:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Update Arch Packaging Standards

ask Eric for rights.


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-01-02 10:02:33

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Update Arch Packaging Standards

wonder wrote:

ask Eric for rights.

ok, email sent


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2011-01-03 03:32:38

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Update Arch Packaging Standards

I had just updated the prototype before reading this.  I've added the OCaml Package Guidelines to the page.

Offline

#5 2011-01-03 10:09:03

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Update Arch Packaging Standards

Thanks


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB