Project

General

Profile

Bug #152

[libremakepkg] support repackaging

mtjm - almost 12 years ago - . Updated over 11 years ago.

Status:
not-a-bug
Priority:
feature
Category:
-
Assignee:
-
% Done:

50%


Description

It worked before, maybe I just cannot find how to do it (so maybe it's a documentation bug). If I build a huge package like linux-libre or gcc and it fails in package(), avoiding to rerun build() or check() is useful. This can lead to unreproducible builds, although it's not the only reason for them and can be used correctly.


Related issues

Blocked by libretools - Bug #239: deprecate libremakepkgnot-a-bug2012-11-28

Actions
Blocks libretools - Bug #248: [libremakepkg] behave more like makepkgfixed2012-11-28

Actions
Blocked by libretools - Bug #247: [libremakepkg] Don't require the user to know the libremakepkg/makechrootpkg/makepkg relationshipfixed2012-11-28

Actions

History

#2

Updated by lukeshu over 11 years ago

Per a recent discussion on dev, rePKGBUILDs are being deprecated; so this will not be implemented. (mtjm is both the author of this feature request, and the motion to deprecate rePKGBUILDs)

https://lists.parabolagnulinux.org/pipermail/dev/2012-November/000974.html

#3

Updated by mtjm over 11 years ago

Support for what makepkg -R does is not related to rePKGBUILDs. It's an unsafe feature (unreproducible builds), although it makes fixing PKGBUILDs much quicker (e.g. gcc's package-* often failed due to missing arch-specific files to remove).

#4

Updated by lukeshu over 11 years ago

Oh, I misunderstood what you were requesting. I believe that is currently doable with:

libremakepkg -- -- -R

At least in the latest git version. The first '--' tells libremakepkg "give the following arguments to makechrootpkg", the second tells makechrootpkg "give the following arguments to makepkg".

The reason I say the latest git versio is that until recently there was a bug in the option parsing of libremakepkg.

#6

Updated by lukeshu over 11 years ago

I think it now directly takes -R, but I haven't tested it.

#8

Updated by lukeshu over 11 years ago

I've thought about this. I'm actually going to remove -R from libremakepkg.

Here's why:

The focus of libremakepkg is shifting from "easy chroot" to "verified, reproducible builds", running checks along the way. Repackaging doesn't fit into that. I'm not saying that it's a bad thing--I've used that feature of makepkg many times. However, if you need it, use plain-old makepkg.

Also, I've found that in many of the situations where I've found -R to be useful, ccache is also great. Just a tip :)

Also available in: Atom PDF