You are not logged in.

#1 2005-08-14 18:05:04

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

aurbuild

I have contacted Dusty and he has agreed to let me continue this project.
It has been re-written in bash with some improvements and upgrades:

1) If failure to retrieve the compressed files occurs, it will attempt to report whether the package is in [community] or doesn't exist at all in AUR.

2) Automatically chooses and executes the correct decompression program for the target compressed files. (.tar.gz, .gz, .tar.bz2, .bz2, .tgz, .zip)

3) Allows users to choose from a menu a list editors to view or edit the PKGBUILD before building.

4) Builds and installs missing makedepends and depends from abs.

5) Installs the target package.

6) Cleans up all work files including the built package after installation.

7) All of this can be done as regular user (and recommended over root user) through the use of fakeroot and sudo. This will prevent potentially destructive executions to the root filesystem, while emulating the desired root environment during the build proccess. Sudo is used to build and install missing deps and makedeps from abs using makepkg, and to install the target package with pacman (-i and-b to makepkg will not work as regular user).

The PKGBUILD and can be found in a AUR.
Suggestions are welcomed smile

Offline

#2 2005-08-15 10:55:59

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

Thank you Penguin !  now with sudo, aurbuild is very cool !

But I have this error after the build process:

==> Finished making: dav  (lun aoû 15 12:53:57 CEST 2005)
==> Leaving fakeroot environment...
==> Running sudo pacman --upgrade...
loading package data... could not open package: No such file or directory

sad

Offline

#3 2005-08-15 11:22:02

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

Re: aurbuild

strange, I had no such problem with that package as user. Did you alter the PKGBUILD? Is this the only one that gives you that error?
I'll look into this later today.

Offline

#4 2005-08-15 12:05:31

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

Penguin wrote:

Did you alter the PKGBUILD? Is this the only one that gives you that error?

No, I have the same problem with other PKGBUILD. sad

Offline

#5 2005-08-15 20:19:34

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: aurbuild

There existis another python script since May 2005, which can do the same and much more!

qpkg is a python script with which you can search for packages in all known repositories (official, TUR, PUR, etc...). You also can install packages directly from AUR (like aurbuild), but there is more... with qpkg you also can configure your pacman configuration to use user repositories (adding, removing and list repositories to pacman configuration).

qpkg can be found here:
-> http://aur.archlinux.org/packages.php?K=qpkg

Or in my personal repository:
[dma147]
Server = http://arch.linux-stats.org/pkgs

Offline

#6 2005-08-15 20:45:04

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

qpkg build aur's PKGBUILD with root   :?
This is dangerous roll

Offline

#7 2005-08-15 21:04:48

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: aurbuild

Yeah... that's correct... well, perhaps I should change that... ^^
In the next version it will be changed. Thanks for the hint.

Offline

#8 2005-08-15 21:23:42

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

Thanks to yo dma147  big_smile
qpkg is amazing ! 8)

Offline

#9 2005-08-15 21:45:56

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

Re: aurbuild

wain:

Delete the bullcrap from lines 219 - 223 (the if statement)
and put this in place :

source ./PKGBUILD
sudo pacman --upgrade $pat/${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz

if it works, please try it on a few other packages and let me know your outcome.

Offline

#10 2005-08-16 09:48:04

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: aurbuild

wain wrote:

qpkg build aur's PKGBUILD with root   :?
This is dangerous roll

Okay, I've changed that. Version 0.1.2 is out now, with which you also can build packages directly from AUR as normal user. They will be saved in ~/qpkg.packages.

It can be installed directly from my own repository:

[dma147]
Server = http://arch.linux-stats.org/pkgs

Or you can makepkg it by yourself with the PKGBUILD and the qpkg.install from AUR:
http://aur.archlinux.org/packages.php?K=qpkg

Offline

#11 2005-08-16 11:30:55

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

dma147 wrote:

I've changed that. Version 0.1.2 is out now, with which you also can build packages directly from AUR as normal user. They will be saved in ~/qpkg.packages.

Can you add -f to makepkg to overwrite package already built ? lol

thanks !

Offline

#12 2005-08-16 11:39:44

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

Penguin wrote:

wain:
Delete the bullcrap from lines 219 - 223 (the if statement)
and put this in place :

source ./PKGBUILD
sudo pacman --upgrade $pat/${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz

when running
==> Running sudo pacman --upgrade...
aurbuild try to upgrade this file:
/tmp/aur/dav-0.8.5-1.pkg.tar.gz

but he hasn't been built  :cry:
same problem with other PKGBUILD

Offline

#13 2005-08-16 11:40:59

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: aurbuild

That shouldn't be needed, I think, because the build-directory will be deleted every time before makepkg runs. Packages which are correctly build are copied to ~/qpkg.packages, which is not the build-directory.
So, there'll never be a built package in the way of makepkg. wink

Btw. I've just modified the actual version, so that you also can view the downloaded PKGBUILD, before makepkg'ing the package.

I'm just working on a new option with which you'll be able to free space on your harddisk by deleting unneeded src- and binary-packages from /var/cache/pacman. This option will also take care of packages which shouldn't be deleted, because they'll be used every time again, when you'll build a new kernel or something similar (nvidia or ati-drivers for example).

This new version will come out soon.


Btw. maybe, we should open a new thread for qpkg...?? *g*

Offline

#14 2005-08-16 12:41:42

dma147
Member
From: Berlin
Registered: 2005-07-22
Posts: 43
Website

Re: aurbuild

I've created a new thread for qpkg... please post all questions, bug or other stuff related to qpkg in this thread. Thanks.

--> http://bbs.archlinux.org/viewtopic.php?p=107962

Offline

#15 2005-08-16 12:46:47

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

I'm sorry Penguin and dma147  :oops:

qpkg could not ovewrite existing package for me and aurbuild could not find the new built package.   :shock:

The reason is in my /etc/makepkg.conf file  wink
:arrow:  export PKGDEST=/var/abs/local/public/


aurbuild and qpkg should use this PKGDEST path  8)

Offline

#16 2005-08-16 14:58:01

wain
Member
From: France
Registered: 2005-05-01
Posts: 289
Website

Re: aurbuild

Maybe you (dma147 & Penguin) can use

makepkg -w .

to write package to working directory  big_smile

Offline

#17 2005-08-16 22:30:08

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

Re: aurbuild

ok, I've fixed this bug. Aurbuild will honor a set $PKGDEST in /etc/makepkg.conf if it is specified, otherwise the package and the rest of the work files will be deleted from /tmp/aur/ after the install.

Thanks for pointing out this bug wain smile

http://aur.archlinux.org/packages.php?K=aurbuild

Offline

#18 2005-08-17 20:20:36

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: aurbuild

This is so useful it really should be in [community], please vote for it.

Offline

#19 2005-08-28 23:29:53

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

Re: aurbuild

version 0.4:

*Supports multiple package requests.
        *Ablity to install missing dependencies using pacman (see --help).
        *Indicates safe packages.
        *"Preview PKGBUILD using less" added to VIEW/EDIT menu.

Offline

#20 2005-09-18 23:15:54

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

Re: aurbuild

version 0.5:

-v0.5 (September 18, 2005)
    *Search AUR with a single keyword. Output is piped to less.

screenshot

Offline

#21 2005-10-12 00:29:48

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

Offline

#22 2005-10-15 23:18:54

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

Re: aurbuild

version 0.5.2:

-v0.5.2 (October 15, 2005)
    *Control+C will safely exit and cleanup work files.
    *Uses a temporary directory in $HOME to build packages instead of tmpfs.
     This should eliminate failed builds due to large packages over-filling tmpfs.

Offline

#23 2005-10-16 00:06:46

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

Re: aurbuild

Something weird happened when I submitted this. Everything seemed to be fscked. I re-submitted it and it seems fine now.

Offline

#24 2005-12-03 23:11:35

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

Re: aurbuild

I re-wrote this in python so I can maintain it easier.   tongue
It's the same thing as before but in a different language, so all functionality of the previous will still be supported.

version 0.6

Offline

#25 2005-12-04 00:02:46

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

Re: aurbuild

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

Offline

Board footer

Powered by FluxBB