You are not logged in.

#26 2005-12-04 00:19:33

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

Dusty wrote:

aurbuild reressurected, this time in its original language, I love it....

It's home now.

Offline

#27 2005-12-04 00:56:14

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: aurbuild

is it just me, or is the new version faster?

Dusty

Offline

#28 2005-12-04 02:20:42

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

Re: aurbuild

I just tried it and found it quite handy.  smile  Some feature requests: add emacs to the editor list and maybe a prompt while the menu is displayed.

Offline

#29 2005-12-04 03:04:54

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

I left emacs out a while back because it did nothing but crash on me -thats why I used zile instead. Seems to work fine now, I'll add it.
prompt? you mean like a bash prompt where you have to type exit to get back into the app?

Offline

#30 2005-12-04 03:21:13

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

Re: aurbuild

I mean a prompt like:

Enter your choice:

instead of having the cursor blinking at the side of the screen.

Offline

#31 2005-12-04 04:21:14

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

ok mr.snowman, replaced zile with emacs and added the prompt message.

version 0.6.1

Offline

#32 2005-12-04 04:49:59

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

Re: aurbuild

Thanks big_smile.
Another feature request though roll : add the facility to also view the .install file (if any). And maybe extending that to the other text files in the tarball...

Offline

#33 2005-12-04 17:59:19

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

Snowman wrote:

Thanks big_smile.
Another feature request though roll : add the facility to also view the .install file (if any). And maybe extending that to the other text files in the tarball...

try the package here and tell me what you think. It comes with a config file to specify the editor and the menu is changed to be able to edit each file.

Offline

#34 2005-12-04 22:55:19

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

Re: aurbuild

The config file for the default editor is a nice idea.   The only suggestions I can make is to replace, in the menu,  'Edit' by 'View/Edit' .  And maybe to put the 'No' in red. The yellow is not very visible on white background. :? No problem if you want to keep the yellow. I've just changed the script and now I have it in red 8)

Offline

#35 2005-12-05 00:26:24

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

Thanks for the great suggestions, Snowman. Everything has been commited and uploaded to aur.  smile

Offline

#36 2005-12-05 01:08:55

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

Re: aurbuild

Penguin wrote:

Thanks for the great suggestions, Snowman. Everything has been commited and uploaded to aur.  smile

8)

Offline

#37 2005-12-05 01:44:58

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: aurbuild

I have to admit, that I haven't started using this until recently, but it kicks ass.

Two "feature requests":
1) It'd be better to use the EDITOR environment variable than a seperate config setting
2) It'd be nice to override the menu somehow if the PKGBUILD is marked safe (--auto-build-if-marked-safe hehe)

Offline

#38 2005-12-05 04:03:27

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

phrakture wrote:

I have to admit, that I haven't started using this until recently, but it kicks ass.

Two "feature requests":

1) It'd be better to use the EDITOR environment variable than a seperate config setting

is that in /etc/profile? It must not be set-up by default, echo $EDITOR gives me nothing...

2) It'd be nice to override the menu somehow if the PKGBUILD is marked safe (--auto-build-if-marked-safe hehe)

What if its not safe? exit or go to the menu?
Heres with auto build as a modifier to -s or -b that will go to the menu if not safe:
link

Offline

#39 2005-12-05 05:25:54

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

Re: aurbuild

Penguin wrote:
phrakture wrote:

I have to admit, that I haven't started using this until recently, but it kicks ass.

Two "feature requests":

1) It'd be better to use the EDITOR environment variable than a seperate config setting

is that in /etc/profile? It must not be set-up by default, echo $EDITOR gives me nothing...

It's not defined in /etc/profile.  I have defined it in my ~/.bashrc. I agree with phrakture that using the EDITOR variable would be nice.

Penguin wrote:
phrakture wrote:

2) It'd be nice to override the menu somehow if the PKGBUILD is marked safe (--auto-build-if-marked-safe hehe)

What if its not safe? exit or go to the menu?
Heres with auto build as a modifier to -s or -b that will go to the menu if not safe:
link

I will try it tomorrow.

Offline

#40 2005-12-05 06:14:05

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: aurbuild

Penguin wrote:

is that in /etc/profile? It must not be set-up by default, echo $EDITOR gives me nothing...

EDITOR is one of those quasi-standard things - actually most programs check for $VISUAL first, then $EDITOR.  cvs uses $EDITOR when it needs a comment, and I think mutt uses it when an editor isn't defined.

RMS was trying to standardize $BROWSER too.

Offline

#41 2005-12-05 12:07:03

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

ah I see. I recall gentoo setting it up in rc.conf or something, thats why I was  a little confused.

Added the EDITOR environment to the link above.  Its just the plain file so you'll need something like wget to download it cause a brower will probably mess up the indents.

Offline

#42 2005-12-10 02:00:50

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

phrakture wrote:

Two "feature requests":
1) It'd be better to use the EDITOR environment variable than a seperate config setting
2) It'd be nice to override the menu somehow if the PKGBUILD is marked safe (--auto-build-if-marked-safe hehe)

Implemented this and uploaded to aur.

The config file is gone, so if you don't have the EDITOR envoriment variable set, you'll have to do so in ~.bashrc as:
export EDITOR="your_editor"
You may have to logout and in again if restarting your terminal doesn't work.

The --auto-build or -a will be a modifier to --builddeps and --syncdeps. If the package is safe, it will automatically build and install it otherwise go to the menu.

menu screenshot:
http://user-contributions.org/users/pen … safe-1.png

Offline

#43 2005-12-11 00:05:40

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: aurbuild

Very cool Penguin...thanks for all of your work on this, I know people have been looking for a good solution for a while.

Offline

#44 2005-12-19 02:10:52

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

It appears my host for the source is borked again. Turns out everything I uploaded the other day is lost and now I can't transfer files to it anymore. I've decided to use my own damn machine for this now so, aur has been updated...again... with the new URL.

I also inlcuded a manpage. Cause hell, if I've gotta' redo it, I might as well right a manpage too. roll

Offline

#45 2005-12-27 22:16:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: aurbuild

Random idea which shouldn't be too hard (just ass slow):

--check-updates:
print 'warning: this is hella slow, yo'
for each pkg in all installed pkgs:
   if exists in aur:
      download PKGBUILD and compare pkgver/pkgrel to installed -$pkgver-$pkgrel
      if aur > installed, rebuild

edit: fixed formatting... also, the "all installed packages" should probably use the pacman3 notion of --foreign package - those that are installed but do not exist in any other repo...

Offline

#46 2005-12-28 21:53:58

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

implemented.

manpage wrote:

       -u, --upgrade
              Upgrade  out-of-date  packages  installed  from aur. This will check aur's website for each aur package so it may
              take a while. Each package will be evaluated and upgraded one by one displaying a confirmation message. Use  this
              as a modifier to --syncdeps or --builddeps. Additionally, --auto-build may be used to bypass the menu if detected
              safe.

       Example:
              aurbuild -sua

       -n, --noconfirm
              Used in conjunction with --upgrade to bypass upgrade confirmation messages.

thanks phrakture

Offline

#47 2005-12-29 01:23:05

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: aurbuild

Feature Request #167.32:
If an install file exists, you are forced to look at it unless the package is marked safe - the reason being that malicious .install files are the only real security hole here, due to the 'sudo' installation...

Offline

#48 2005-12-29 01:45:55

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: aurbuild

Little Bug I found when running aurbuild -su it makes really no sence to me so maybe one of you guys can figure it out.

pydance is the last package it shows before I get the error
pydance: no updates
Traceback (most recent call last):
  File "/usr/bin/aurbuild", line 535, in ?
    aur = float(convert)
ValueError: invalid literal for float(): 21pre191


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#49 2005-12-29 02:19:33

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: aurbuild

msg43 wrote:

Little Bug I found when running aurbuild -su it makes really no sence to me so maybe one of you guys can figure it out.

pydance is the last package it shows before I get the error
pydance: no updates
Traceback (most recent call last):
  File "/usr/bin/aurbuild", line 535, in ?
    aur = float(convert)
ValueError: invalid literal for float(): 21pre191

yeah, I forgot about the possibility of letters in the version number. See if this works:

EDIT: upgrade is in aur.

aurbuild -sa aurbuild

Use wget for it, browsers like to loose python's indention.

phrakture: Could you try that link as well for your suggestion?

Offline

#50 2005-12-29 03:50:37

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: aurbuild

Penguin that seems to work very well! Thanks for fixing it!


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB