AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

Try to wrap up replace in rpm #6

Closed Artoria2e5 closed 9 years ago

Artoria2e5 commented 10 years ago

PKGREP is not working in rpm, and rpm does not has a replace field.

obsolete may be a solution but it requires something to do with the version number.


I am actually afraid that autobuild will use change its define variable pattern to support this.

MingcongBai commented 10 years ago

How about foo < $PKGVER?

-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: ‎2014/‎10/‎26 20:13 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 主题: [autobuild3] Try to wrap up replace in rpm (#6)

PKGREP is not working in rpm, and rpm does not has a replace field. obsolete may be a solution but it requires something to do with the version number.

I am actually afraid that autobuild will use change its define variable pattern to support this. — Reply to this email directly or view it on GitHub.

Artoria2e5 commented 10 years ago

@MingCongBai Shall we consider the use of a metapackage? Btw we need something like vercmp in PKGBUILD, which should work like sort -V.

Artoria2e5 commented 10 years ago

@MingCongBai Shall we consider the use of a metapackage? Btw we need something like vercmp in PKGBUILD, which should work like sort -V.

MingcongBai commented 10 years ago

meta of what?

-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: ‎2014/‎10/‎26 20:29 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 抄送: "Jeff Bai" jeffbaichina@members.fsf.org 主题: Re: [autobuild3] Try to wrap up replace in rpm (#6)

@MingCongBai Shall we consider the use of a metapackage? Btw we need something like vercmp in PKGBUILD, which should work like sort -V. — Reply to this email directly or view it on GitHub.

Artoria2e5 commented 10 years ago

@MingcongBai

if cannot obsolete, then
  Build an empty package with description `Replaced by foo`
  Btw Make it dependent on foo
MingcongBai commented 10 years ago

Not necessarily a good idea...

-----原始邮件----- 发件人: "Mingye Wang" notifications@github.com 发送时间: ‎2014/‎10/‎26 20:37 收件人: "AOSC-Dev/autobuild3" autobuild3@noreply.github.com 抄送: "Jeff Bai" jeffbaichina@members.fsf.org 主题: Re: [autobuild3] Try to wrap up replace in rpm (#6)

@MingcongBai if cannot obsolete, then Build an empty package with description Replaced by foo Btw Make it dependent on foo — Reply to this email directly or view it on GitHub.

MingcongBai commented 10 years ago

Done.

MingcongBai commented 9 years ago

Done, with Obsolete flag. Which works as proven.