[arch-general] makepkg and md5/sha1/etc
makepkg has support for using hashes besides md5, but is there a way to get 'makepkg -g' to generate any hashes besides md5? Based on what I found in makepkg.conf(5) I modified the variable INTEGRITY_CHECK, both in ~/.makepkg.conf and /etc/makepkg.conf. But neither had any effect, 'makepkg -g' still insisted on generating md5 hashes. In the end this isn't very important, I'm just curious. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
On Thu, Jul 29, 2010 at 11:57 AM, Magnus Therning <magnus@therning.org> wrote:
makepkg has support for using hashes besides md5, but is there a way to get 'makepkg -g' to generate any hashes besides md5?
makepkg generates checksums based on the hash algorithm used in the PKGBUILD. For example, if the PKGBUILD contains sha1sums, makepkg will also output sha1sums.
On Thu, Jul 29, 2010 at 12:12 PM, Evangelos Foutras <foutrelis@gmail.com> wrote:
On Thu, Jul 29, 2010 at 11:57 AM, Magnus Therning <magnus@therning.org> wrote:
makepkg has support for using hashes besides md5, but is there a way to get 'makepkg -g' to generate any hashes besides md5?
makepkg generates checksums based on the hash algorithm used in the PKGBUILD. For example, if the PKGBUILD contains sha1sums, makepkg will also output sha1sums.
Oh, and if multiple sets of checksums (e.g.: md5sums and sha1sums) are included in the PKGBUILD, makepkg will also output multiple sets of (updated) checksums.
Am 29.07.2010 11:16, schrieb Evangelos Foutras:
On Thu, Jul 29, 2010 at 12:12 PM, Evangelos Foutras<foutrelis@gmail.com> wrote:
On Thu, Jul 29, 2010 at 11:57 AM, Magnus Therning<magnus@therning.org> wrote:
makepkg has support for using hashes besides md5, but is there a way to get 'makepkg -g' to generate any hashes besides md5? makepkg generates checksums based on the hash algorithm used in the PKGBUILD. For example, if the PKGBUILD contains sha1sums, makepkg will also output sha1sums. Oh, and if multiple sets of checksums (e.g.: md5sums and sha1sums) are included in the PKGBUILD, makepkg will also output multiple sets of (updated) checksums. is there a way to replace the old sum with the new sum with makepkg -g? e.g. somewhere in there middle in the PKGBUILD is md5sums = OLD and i want it updated there. if i would do makepkg -g >> PKGBUILD, i would have it double.
On Thu, Jul 29, 2010 at 12:19 PM, Adam Hani Schakaki <krzd@krzd.net> wrote:
is there a way to replace the old sum with the new sum with makepkg -g? e.g. somewhere in there middle in the PKGBUILD is md5sums = OLD and i want it updated there. if i would do makepkg -g >> PKGBUILD, i would have it double.
See my funky awk command here: https://bbs.archlinux.org/viewtopic.php?pid=423094#p423094
Am 29.07.2010 11:30, schrieb Evangelos Foutras:
On Thu, Jul 29, 2010 at 12:19 PM, Adam Hani Schakaki<krzd@krzd.net> wrote:
is there a way to replace the old sum with the new sum with makepkg -g? e.g. somewhere in there middle in the PKGBUILD is md5sums = OLD and i want it updated there. if i would do makepkg -g>> PKGBUILD, i would have it double. See my funky awk command here:
https://bbs.archlinux.org/viewtopic.php?pid=423094#p423094 This is great, thanks
On Thu, Jul 29, 2010 at 10:12, Evangelos Foutras <foutrelis@gmail.com> wrote:
On Thu, Jul 29, 2010 at 11:57 AM, Magnus Therning <magnus@therning.org> wrote:
makepkg has support for using hashes besides md5, but is there a way to get 'makepkg -g' to generate any hashes besides md5?
makepkg generates checksums based on the hash algorithm used in the PKGBUILD. For example, if the PKGBUILD contains sha1sums, makepkg will also output sha1sums.
Ah, somewhat strange behaviour in my opinion, but it does show that I should have read makepkg(8) a bit more carefully before sending questions to the mailing list. Thanks! /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
participants (3)
-
Adam Hani Schakaki
-
Evangelos Foutras
-
Magnus Therning