You are not logged in.

#1 2020-02-27 00:04:43

sphraax
Member
Registered: 2020-02-26
Posts: 23

Radare2 4.0.0 -> 4.2.1 upgrade

Hi guys.

I was wondering why there is no upgrade for radare2 pkg.

In case anyone wants to get the latest stable version using yay -G radare2, here is the PKGBUILD:

 
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Guillermo Ramos <0xwille at gmail dot com>

pkgname=radare2
pkgver=4.2.1
pkgrel=1
pkgdesc='Open-source tools to disasm, debug, analyze and manipulate binary files'
url='https://radare.org'
arch=('x86_64')
license=('GPL3' 'LGPL3')
depends=('sh' 'capstone' 'libcapstone.so' 'openssl' 'libzip' 'zlib'
         'lz4' 'xxhash' 'libxxhash.so' 'file' 'libuv')
makedepends=('meson')
options=('!emptydirs')
source=(https://github.com/radare/radare2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('70426b7a482f233058b2f161063d55f4a6ff26019e4b4f35a96c74057796009a')
sha512sums=('aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c')
sha256sums=('70426b7a482f233058b2f161063d55f4a6ff26019e4b4f35a96c74057796009a')
sha512sums=('aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c')

build() {
  cd ${pkgname}-${pkgver}
  touch libr/config.mk
  arch-meson build \
    -D use_sys_capstone=true \
    -D use_sys_magic=true \
    -D use_sys_zip=true \
    -D use_sys_zlib=true \
    -D use_sys_lz4=true \
    -D use_sys_xxhash=true \
    -D use_sys_openssl=true \
    -D use_libuv=true \
    -D use_webui=true
  ninja -C build
}

package() {
  cd ${pkgname}-${pkgver}
  DESTDIR="${pkgdir}" ninja -C build install
  cp -r doc/* "${pkgdir}/usr/share/doc/radare2"
  ln -s /usr/bin/radare2 "${pkgdir}/usr/bin/r2"
  ln -s /usr/share/man/man1/radare2.1.gz "${pkgdir}/usr/share/man/man1/r2.1.gz"
}

# vim: ts=2 sw=2 et: 

I hope it helps.

Regards

Last edited by sphraax (2021-02-21 21:48:12)

Offline

#2 2020-02-27 00:10:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,794

Re: Radare2 4.0.0 -> 4.2.1 upgrade

Moving to AUR issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#3 2020-02-27 11:38:12

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Radare2 4.0.0 -> 4.2.1 upgrade

radare2 is in community, have you tried submitting that pkgbuild (or a diff ) to the maintainer ?

In order to prevent your version from clashing with the repo version , you could give your package
- a different pkgname , say radare42
- add a conflict with radare2
- have it provide radare2

The new package may also be suitable to submit to aur.


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

#4 2020-02-27 13:34:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: Radare2 4.0.0 -> 4.2.1 upgrade

Lone_Wolf wrote:

The new package may also be suitable to submit to aur.

Again, please don't give advice like this if you don't know what you're talking about. Things like that are specifically banned from the AUR.

Last edited by Scimmia (2020-02-27 13:42:10)

Offline

#5 2020-02-27 13:47:21

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: Radare2 4.0.0 -> 4.2.1 upgrade

You did notice I added the word may in that sentence to make clear I'm not sure if it's a good idea to do that ?


I think there have been cases where repo versions lagged behind upstream versions for whatever reason and newer stable versions were submitted to aur using a different package name.

If you are certain that's not allowed at all, please point me to the documentation.


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

#6 2020-02-27 13:51:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: Radare2 4.0.0 -> 4.2.1 upgrade

It's rule #1. https://wiki.archlinux.org/index.php/AU … guidelines

Yes, people have done it, and packages have been removed when they do. If they keep it up, users get removed, too.

Offline

Board footer

Powered by FluxBB