[Slackbuilds-users] How to contribute ?

Alan Hicks alan at lizella.net
Mon Jan 5 06:26:28 UTC 2009


On Sun, Jan 04, 2009 at 09:49:45PM -0800, Phillip Warner wrote:
> > TMP="$HOME/tmp/SBo" ; export TMP
> > TAG="_whatever" ; export TAG
> > ./prgnam.SlackBuild
> > ./someotherthing.SlackBuild
> > ./somethingelse.SlackBuild
> 
> Unfortunately, if you are going to really test the scripts as a normal 
> user you still have to comment out the "chown root:root" line in all of
> the scripts.  You could probably safely sed all of the *.SlackBuild
> files, but ideally all of the scripts would have one switch to allow you
> to test the SlackBuilds as a user.  Activating the switch could skip the
> chown line, change TMP so it's under $HOME, and change the build tag
> (say _SBo-test) so the created package is flagged as a test package.
> 
> Perhaps in the future something like that could be added to the template
> and then all of the current SlackBuilds.

Honestly I don't see what the big deal is about all this. If you really
want to run a script as a user for testing purposes and you're too lazy
to comment out the chown/chmod lines and the like yourself, the
following code should work flawlessly.[0] Put it in your .bashrc or 
.bash_profile or whatever you use.

sbo_user_build() {
  export TMP="${HOME}/SBo/tmp"
  export OUTPUT="${TMP}"
  export TAG="SBo-test"
  alias chown=true
  alias chmod=true
  sh $#
}

Call it thusly.

  sbo_user_build foo.SlackBuild

Happy now? Hopefully this discussion can finally die.

[0] flawlessly (adj.)
      Completely untested, but deemed so simple and obvious that the
      creator could not possibly have made any mistakes.

                          -- Alan Hicks' Guide to Jargon

-- 
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20090105/10badbb3/attachment.sig>


More information about the SlackBuilds-users mailing list