You are not logged in.

#1 2016-01-16 21:29:36

michis
Member
Registered: 2015-12-12
Posts: 77

[Solved] when can we expect pacman-5.0 ?

Hi,

I read about the (long awaited wink) pacman hooks and that they will be available in pacman-5.0.
In the pacman-dev mailing-list archive (dec. 2015) I saw a thread with subject 'pacman 5 freeze' or something similar.
Don't remember exactly.

So, when can we expect pacman-5.0 in the repos?

Last edited by michis (2016-01-30 12:54:25)

Offline

#2 2016-01-16 21:31:33

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [Solved] when can we expect pacman-5.0 ?

When it's ready!
big_smile

EDIT: I think you can install it from git now if you want.

Last edited by Head_on_a_Stick (2016-01-16 21:32:07)

Offline

#3 2016-01-16 21:52:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: [Solved] when can we expect pacman-5.0 ?

The freeze topic you mentioned is here: https://lists.archlinux.org/pipermail/p … 20629.html

As noted, the strings were submitted to Transifex, so I suspect once translations are done, 5.0 will be tagged.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2016-01-16 22:00:31

michis
Member
Registered: 2015-12-12
Posts: 77

Re: [Solved] when can we expect pacman-5.0 ?

Ah ok, so it seems it will be in the not too far future.
Thanks for the info.

Offline

#5 2016-01-16 23:23:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] when can we expect pacman-5.0 ?

All it requires is me to finalize a few things...   I have been very busy at work so this is taking longer than I hoped.

Offline

#6 2016-01-16 23:59:16

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [Solved] when can we expect pacman-5.0 ?

Do I see HOOKS?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#7 2016-01-17 09:11:52

michis
Member
Registered: 2015-12-12
Posts: 77

Re: [Solved] when can we expect pacman-5.0 ?

Allan wrote:

All it requires is me to finalize a few things...

Nice smile
Thanks for the info Allan.

Offline

#8 2016-01-17 11:26:24

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: [Solved] when can we expect pacman-5.0 ?

From the Transifex announcement:

Allan wrote:

Final strings for pacman-5.0

Hi all, Thanks for all the translating in the lead up to pacman-5.0. The translations look in good shape!
I have just pushed the final update which brings 7 new strings. I intend to make the release at the end of January, so that gives two weeks.
Thanks, Allan

Offline

#9 2016-01-17 15:24:07

nstgc
Member
Registered: 2014-03-17
Posts: 393

Re: [Solved] when can we expect pacman-5.0 ?

clfarron4 wrote:

Do I see HOOKS?

My reaction exactly. I have no real clue what the hook would be for, but it kind of makes me excited.

Offline

#10 2016-01-17 15:37:21

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [Solved] when can we expect pacman-5.0 ?

nstgc wrote:
clfarron4 wrote:

Do I see HOOKS?

My reaction exactly. I have no real clue what the hook would be for, but it kind of makes me excited.

I think the vision for HOOKS is to deal with nice stuff such as post-install module building etc (in the way Vi0l0's catalyst-hook package deals with fglrx module building. But imagine it just happening instead of having to mess around with a service).


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#11 2016-01-17 17:46:52

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [Solved] when can we expect pacman-5.0 ?

I've been using kernel postinstall hooks in Debian for a while and it is very useful.

I feel like a kid at $SEASONAL_HOLIDAY waiting for this big_smile

Offline

#12 2016-01-17 17:54:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,842
Website

Re: [Solved] when can we expect pacman-5.0 ?

So long as there's a hook that prints out "Arch is the best" after each individual package upgrade, I'll be happy.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#13 2016-01-17 18:01:03

michis
Member
Registered: 2015-12-12
Posts: 77

Re: [Solved] when can we expect pacman-5.0 ?

Head_on_a_Stick wrote:

I feel like a kid at $SEASONAL_HOLIDAY waiting for this big_smile

As I mentioned in the first post:
long awaited wink

Offline

#14 2016-01-18 06:35:24

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] when can we expect pacman-5.0 ?

clfarron4 wrote:
nstgc wrote:
clfarron4 wrote:

Do I see HOOKS?

My reaction exactly. I have no real clue what the hook would be for, but it kind of makes me excited.

I think the vision for HOOKS is to deal with nice stuff such as post-install module building etc (in the way Vi0l0's catalyst-hook package deals with fglrx module building. But imagine it just happening instead of having to mess around with a service).

Also I believe things like updating the mime database and gtk icon cache will now be able to run once after a full pacman transaction, rather than after each and every package.
(And most post-install scripts seem to be just this -- so now most packages will be able to get away without including install scripts.)

It should also be possible to automatically compile python bytecode, rather than depending on maintainers to necessarily take care of it (could be extended by maintainers packaging modules outside /usr/lib/python*/)... as well as decreasing the size of packages which no longer have to track pyc/pyo files.

In fact, I think that is two of the major things which debian delegates to dpkg hooks??


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#15 2016-01-18 07:30:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] when can we expect pacman-5.0 ?

Creating the info page directory can also be added to that list.   I expect 90% of install files to disappear.

Offline

#16 2016-01-18 08:16:53

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [Solved] when can we expect pacman-5.0 ?

That hook is only used in update/install packages? Or can use in prepare(), build() and package() functions

Offline

#17 2016-01-18 08:25:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] when can we expect pacman-5.0 ?

If I understand what you are asking - look at makepkg-template.

Offline

#18 2016-01-18 08:37:22

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [Solved] when can we expect pacman-5.0 ?

for example avoid (or call a function without write that function in the pkgbuild) things like:

prepare() {
 some brawbraw

  find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} +
  mkdir "$srcdir/python2-path"
  ln -s /usr/bin/python2 "$srcdir/python2-path/python"

 some brawbraw
}

build() {
  some brawbraw

  export PATH="$srcdir/python2-path:$PATH"

  some brawbraw
}
create_links() {
    # create soname links
    for _lib in $(find "${pkgdir}" -name '*.so*' | grep -v 'xorg/'); do
        _soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
        _base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/')
        [[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
        [[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
    done
}

package() {
  some brawbraw

  create_links

  some brawbraw
}
prepare() {
 some brawbraw

  # Damm DOS
  find -type f -exec perl -pi -e 's/\r\n?/\n/g' "{}" \;
}

or something using a hooks

like a eclass used in ebuild in gentoo

Last edited by sl1pkn07 (2016-01-18 08:48:46)

Offline

#19 2016-01-18 08:45:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: [Solved] when can we expect pacman-5.0 ?

makepkg-template - not that anyone used it...

Offline

#20 2016-01-18 09:20:29

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: [Solved] when can we expect pacman-5.0 ?

mmmm no, is not valid for like i mean

the templetes add in the pkgbuild the things i want avoid in the pkgbuild. i mean like a plugin of makepkg. call that pluging when invokes in the pkgbuild

for example:

pkgname=
pkgver=
pkgrel=
pkgdesc="simple configuration file class"
arch=()
license=()
depends=()
source=()
md5sums=()

url=""
options+=()
HOOKS=('python2' 'soname_links' 'dos2unix')


prepare()
        cd "$srcdir/$_distdir"
        use_python2
        dos_to_unix
}

build() {
        cd "$srcdir/$_distdir"
        set_python2
        make
}

check() {
        cd "$srcdir/$_distdir"
        make test
}

package() {
        cd "$srcdir/$_distdir"
        make DESTDIR="$pkgdir" install
        install -Dm755 lib.so.${pkgver}
        make_soname_links
}

python2.hook

use_python2() {
  find . -name '*.py' -exec sed -i -r 's|/usr/bin/python$|&2|g' {} +
  mkdir "$srcdir/python2-path"
  ln -s /usr/bin/python2 "$srcdir/python2-path/python"
}

set_python2() {
    export PATH="$srcdir/python2-path:$PATH"
}

soname_links.hook

make_soname_links() {
    for _lib in $(find "${pkgdir}" -name '*.so*); do
        _soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
        _base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/')
        [[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
        [[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
    done
}

dos2unix.hook

dos_to_unix() {
  find -type f -exec perl -pi -e 's/\r\n?/\n/g' "{}" \;
}

Last edited by sl1pkn07 (2016-01-18 09:24:35)

Offline

#21 2016-01-18 14:35:21

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [Solved] when can we expect pacman-5.0 ?

Eschwartz wrote:

It should also be possible to automatically compile python bytecode, rather than depending on maintainers to necessarily take care of it (could be extended by maintainers packaging modules outside /usr/lib/python*/)... as well as decreasing the size of packages which no longer have to track pyc/pyo files.

I hope not. Preferably, everything in /usr (except /usr/local) should be tracked by the package manager. It just makes things simpler. Hooks are useful for things that can't be done at compile time (i.e. things that depend on the state of the machine on which the package is being installed).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#22 2016-01-18 14:46:54

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [Solved] when can we expect pacman-5.0 ?

Exciting!  But I need to wait for the docs and for some examples to fully appreachiate.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#23 2016-01-18 14:47:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [Solved] when can we expect pacman-5.0 ?

makepkg-template, makepkg, pkgbuild docs in git don't mention hooks.

alpm-hooks.5.txt does.

If i understand correctly, this will work a bit like udev rules ?
pacman will install some hooks by default,and we can make our own hooks if desired ?

a few (hypothetical) examples :

package has dkms in name, run dkms-install
files ending in .ttf, post-transaction : run update fontconfig
packagename has linux in it, reboot system
package has files ending in .info : run "delete info-files"
package has files ending in exe or docx or xlsx : abort installation

Last edited by Lone_Wolf (2016-01-18 14:48:38)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#24 2016-01-18 14:58:57

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [Solved] when can we expect pacman-5.0 ?

Offline

#25 2016-01-18 15:00:27

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: [Solved] when can we expect pacman-5.0 ?

Lone_Wolf wrote:

a few (hypothetical) examples :

packagename has linux in it, reboot system

Saying I need to reboot would be fine, but not auto-rebooting. I'd like the opportunity to at least handle any .pacnew files first!

Offline

Board footer

Powered by FluxBB