You are not logged in.

#1 2014-07-26 16:32:16

joakoej
Member
Registered: 2014-05-21
Posts: 10

[SOLVED] Update ABS packages and compile dependencies automatically

So I've been trying out ABS (Arch Build System) lately, but there are some things I'd like to do with it, that I couldn't find out how to do.
Anyway, before explaining myself, I just want to make clear that I don't want to know why Gentoo is better for compiling or why compiling doesn't worth the time it takes, etc, I just want to get my answers answered.

So what I would like to do with ABS is this:
1. After syncing ABS ports (by tipyng "abs" in the terminal), is there a way to know which packages can be upgraded?
2. Is there a command to just list the dependencies that a package needs, without installing them?

Also, and I understand if this is not possible to do, I'd like to do this:
3. Install packages without the need to open the terminal in the abs folder.
4. Compile dependencies of a package in a more automatic way. I know that you can use "makepkg -s", but that installs precompiled dependencies, and I want to compile them too. The only way I found out is compiling them one by one.
5. Upgrade all packages installed via ABS automatically.

That would be all.

Thank you

PD: Most of this features were taken from CRUX. In Crux there's an official tool (made by the community), called "prt-get". Without that tool, it would be much more difficult to maintain.
This is list of prt-get commands:

prt-get depends (to watch dependencies of a package)
prt-get diff (to watch which packages can be upgraded)
prt-get search (to search for a package)
prt-get install (to install one or more packages)
prt-get depinst (to install dependencies of a package)
prt-get sysup (to upgrade all packages)
prt-get current (to install the most recent version of a package)

Fonts: http://crux.nu/Main/Handbook3-1
http://jw.tks6.net/files/crux/prt-get_quickstart.html


Solution :
It wasn't completely satisfactory, but I found the best way to do this is by installing a program called "customizepkg" from AUR and using Yaourt to compile programs.
Here's a guide of cutomizepkg: http://kojevnikov.com/arch-linux-yaourt … eauty.html

I tried other AUR helpers with customizepkg, but although some of them worked with it, Yaourt was the best. So with this 2 programs I could:
1.Ckeck for new upgrades
2. List dependecies using Yaourt
3. Install packages, without the need to open ABS folder
4. There's no way to compile dependecies in a completely automatic way, but you can create a file with the name of each dependecie in /etc/customizepkg.d and yaourt will compile them with the program, but if that dependencies need more dependencies too, you have to create more files with there names in /etc/customizepkg.d. Anyway, the programs almost always use the same dependencies, so you won't need to add many programs to this folder.
5. You can upgrade the system with

yaourt -Syua

this will upgrade binary packages and compile the ones indicated in /etc/customizepkg.d.
If you want to avoid any the questions Yaourt asks, about editing PKGbuilds and .install files, put the --noconfirm output, like this:

# yaourt -Syua --noconfirm

Some warnings:
- You can never use pacman again, because it will install the binary package, instead of compiling it if you chosse to upgrade, unless you put every package you want to compile in the IgnorePkg line in /etc/pacman.conf. Then none of the progrmas you put there will be upgraded with:

pacman -Syu

So to upgrade this packages the only way is by using:

Yaourt -Syua

Anyway, I think is simpler to only use Yaourt for everything and never use Pacman.

- This method is not perfect, there are many dependencies that won't compile easily or won't compile at all, so probably the best thing to do is just to compile the programs, but not the dependencies.

Last edited by joakoej (2014-07-30 00:12:39)

Offline

#2 2014-07-26 16:37:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Update ABS packages and compile dependencies automatically

1. 'checkupdates'.
2. 'man pacman', 'man expac'. Edit: You're probably interested in makedependenies too. Why not just read the PKGBUILD?
3. Read the wiki article about ABS.
4 & 5. Look around, there may be scripts / applications to do this.

Last edited by karol (2014-07-26 16:38:57)

Offline

#3 2014-07-26 16:46:06

joakoej
Member
Registered: 2014-05-21
Posts: 10

Re: [SOLVED] Update ABS packages and compile dependencies automatically

Thank you, that was fast. I will try this out then.
Yes I know I can watch the dependencies in the PKBUILD, but I was interested in doing it via terminal too.
Also, I read the article about, but I will read it more carefully maybe I skipped a part.

Last edited by joakoej (2014-07-26 16:58:53)

Offline

#4 2014-07-26 17:00:20

joakoej
Member
Registered: 2014-05-21
Posts: 10

Re: [SOLVED] Update ABS packages and compile dependencies automatically

karol wrote:

1. 'checkupdates'.
2. 'man pacman', 'man expac'. Edit: You're probably interested in makedependenies too. Why not just read the PKGBUILD?
3. Read the wiki article about ABS.
4 & 5. Look around, there may be scripts / applications to do this.

Do you know where to find the applications of point 4&5? As I said, CRUX has prt-get, but I don't think is available for Arch

Offline

#5 2014-07-26 17:10:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: [SOLVED] Update ABS packages and compile dependencies automatically

I personally like packer
Like all AUR helpers, you have to be careful not to allow it to do partial upgrades.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2014-07-26 17:14:52

joakoej
Member
Registered: 2014-05-21
Posts: 10

Re: [SOLVED] Update ABS packages and compile dependencies automatically

ewaller wrote:

I personally like packer
Like all AUR helpers, you have to be careful not to allow it to do partial upgrades.

I'll try it too, also you made me remeber about this: https://wiki.archlinux.org/index.php/AUR_helpers
Maybe there's a tool there to do what I want.

Offline

#7 2014-07-26 17:40:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Update ABS packages and compile dependencies automatically

See also https://www.archlinux.org/packages/extra/any/srcpac/

You can read / grep PKGBUILD in the terminal just fine.
You can also run makepkg to see what would it download.

Offline

#9 2014-07-26 18:17:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Update ABS packages and compile dependencies automatically

These tools seem like a bit too much.
Can you tell me which packages do you recompile an what changed do you make?

Offline

#10 2014-07-26 18:31:07

joakoej
Member
Registered: 2014-05-21
Posts: 10

Re: [SOLVED] Update ABS packages and compile dependencies automatically

karol wrote:

These tools seem like a bit too much.
Can you tell me which packages do you recompile an what changed do you make?

I don't change anything, the packages are this ones:
acetone iso
audacity
avogadro
banshee
bkchem
bleachbit
blender
calibre
cheese
gnome-chess
easytag
firefox
geogebra
gimp
goldenDict
gtkpod
guitarix
inkscape
Kalzium
libreoffice
lingot
lmms
openshot
qjack
rakarrack
rosegarden
shotwell
Solfege
soundconverter
stellarium
timidity
transmission
tuxguitar
unetbootin
vlc

Offline

#11 2014-07-26 18:50:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Update ABS packages and compile dependencies automatically

When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.


Why do you recompile them then?

Offline

Board footer

Powered by FluxBB