Re: [gentoo-user] Source for checksums of installed files
On Sat, Feb 14, 2015 at 03:59:33PM +0100, Jan Sever wrote: > On 02/14/2015 03:52 PM, Mike Gilbert wrote: > > On Sat, Feb 14, 2015 at 4:24 AM, Jan Sever wrote: > >> Hi all, > >> > >> I was looking for information about the source for checksums of installed > >> files but I didn't find. I'd like to know whether Portage makes checksums > >> (for equery check) from installed files in /, or in /var/tmp/portage. And > >> similarly whether it makes binary packages (when asked) from /, or again > >> from /var/tmp/portage. It'd make sense, it'd make it from /var/tmp/ > portage > >> but I'm not sure of that. > >> > >> I have suspicion that my SSD doesn't work quite well, so I mount /var/tmp > >> from memory and I'd like to know whether the final checksums and binary > >> packages cannot be corrupted from SSD. I always use tmpfs for /var/tmp/portage, for the very most packages (with the obvious exceptions), 2 Gigs of space are enough if you don't build with debugging enabled. > > Your question is somewhat awkwardly worded, but I think you are > > looking for /var/db/pkg/*/*/CONTENTS. > > No, I am not. I know this location but I'd like to know where it's > computed from. Live system or PORTAGE_TMPDIR? You could tell portage to also build binary packages and put PKGDIR onto another device¹. Once a package is installed, you can unpack the binary archive¹ and verify the checksums on the extracted files, or simply use something like dirdiff to compare / and the extracted tree. ¹ or maybe also a ramdisk, if you got the Megs -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me with any social network. The problem with HTML/CSS jokes: everyone understands them differently. signature.asc Description: Digital signature
Re: [gentoo-user] Source for checksums of installed files
On Sat, Feb 14, 2015 at 03:59:33PM +0100, Jan Sever wrote: > On 02/14/2015 03:52 PM, Mike Gilbert wrote: > > On Sat, Feb 14, 2015 at 4:24 AM, Jan Sever wrote: > >> Hi all, > >> > >> I was looking for information about the source for checksums of installed > >> files but I didn't find. I'd like to know whether Portage makes checksums > >> (for equery check) from installed files in /, or in /var/tmp/portage. And > >> similarly whether it makes binary packages (when asked) from /, or again > >> from /var/tmp/portage. It'd make sense, it'd make it from /var/tmp/ > portage > >> but I'm not sure of that. > >> > >> I have suspicion that my SSD doesn't work quite well, so I mount /var/tmp > >> from memory and I'd like to know whether the final checksums and binary > >> packages cannot be corrupted from SSD. I always use tmpfs for /var/tmp/portage, for the very most packages (with the obvious exceptions), 2 Gigs of space are enough if you don't build with debugging enabled. > > Your question is somewhat awkwardly worded, but I think you are > > looking for /var/db/pkg/*/*/CONTENTS. > > No, I am not. I know this location but I'd like to know where it's > computed from. Live system or PORTAGE_TMPDIR? You could tell portage to also build binary packages and put PKGDIR onto another device¹. Once a package is installed, you can unpack the binary archive¹ and verify the checksums on the extracted files, or simply use something like dirdiff to compare / and the extracted tree. ¹ or maybe also a ramdisk, if you got the Megs -- Gruß | Greetings | Qapla’ Please do not share anything from, with or about me with any social network. The problem with HTML/CSS jokes: everyone understands them differently. signature.asc Description: Digital signature
Re: [gentoo-user] Source for checksums of installed files
On Sat, 14 Feb 2015 15:11:25 +0100 (CET), Jan Sever wrote: > >> On 02/14/2015 02:38 PM, Neil Bothwick wrote: > >>> There's a good reason I didn't answer that part of the question... > >> > >> Good reason? I don't understand. > > > > He meant he didn't have an answer for you. > > Ah, I see now. I should have known it wasn't because he didn't want. Sorry, I forget that there are so many here for whom English is not their native language. Probably because their English is better than many of the people I meet each day :-O -- Neil Bothwick "B?#$^f," said Pooh, as line noise garbled his transmission. pgpNHJHlL8T1i.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Source for checksums of installed files
On 02/14/2015 03:52 PM, Mike Gilbert wrote: > On Sat, Feb 14, 2015 at 4:24 AM, Jan Sever wrote: >> Hi all, >> >> I was looking for information about the source for checksums of installed >> files but I didn't find. I'd like to know whether Portage makes checksums >> (for equery check) from installed files in /, or in /var/tmp/portage. And >> similarly whether it makes binary packages (when asked) from /, or again >> from /var/tmp/portage. It'd make sense, it'd make it from /var/tmp/ portage >> but I'm not sure of that. >> >> I have suspicion that my SSD doesn't work quite well, so I mount /var/tmp >> from memory and I'd like to know whether the final checksums and binary >> packages cannot be corrupted from SSD. >> >> Of course I thought about the possibility that emerging packages from >> possibly corrupted system is not quite OK but it seems to work. >> >> Thank you in advance for your answer. >> > > Your question is somewhat awkwardly worded, but I think you are > looking for /var/db/pkg/*/*/CONTENTS. No, I am not. I know this location but I'd like to know where it's computed from. Live system or PORTAGE_TMPDIR? -- Jan Sever
Re: [gentoo-user] Source for checksums of installed files
On Sat, Feb 14, 2015 at 4:24 AM, Jan Sever wrote: > Hi all, > > I was looking for information about the source for checksums of installed > files but I didn't find. I'd like to know whether Portage makes checksums > (for equery check) from installed files in /, or in /var/tmp/portage. And > similarly whether it makes binary packages (when asked) from /, or again > from /var/tmp/portage. It'd make sense, it'd make it from /var/tmp/portage > but I'm not sure of that. > > I have suspicion that my SSD doesn't work quite well, so I mount /var/tmp > from memory and I'd like to know whether the final checksums and binary > packages cannot be corrupted from SSD. > > Of course I thought about the possibility that emerging packages from > possibly corrupted system is not quite OK but it seems to work. > > Thank you in advance for your answer. > Your question is somewhat awkwardly worded, but I think you are looking for /var/db/pkg/*/*/CONTENTS.
Re: [gentoo-user] Source for checksums of installed files
On 02/14/2015 03:02 PM, Peter Humphrey wrote: > On Saturday 14 February 2015 14:50:05 Jan Sever wrote: >> On 02/14/2015 02:38 PM, Neil Bothwick wrote: >>> There's a good reason I didn't answer that part of the question... >> >> Good reason? I don't understand. > > He meant he didn't have an answer for you. Ah, I see now. I should have known it wasn't because he didn't want. -- Jan Sever
Re: [gentoo-user] Source for checksums of installed files
On Saturday 14 February 2015 14:50:05 Jan Sever wrote: > On 02/14/2015 02:38 PM, Neil Bothwick wrote: > > There's a good reason I didn't answer that part of the question... > > Good reason? I don't understand. He meant he didn't have an answer for you. -- Rgds Peter.
Re: [gentoo-user] Source for checksums of installed files
On 02/14/2015 02:38 PM, Neil Bothwick wrote: > On Sat, 14 Feb 2015 11:26:33 +0100 (CET), Jan Sever wrote: I was looking for information about the source for checksums of installed files but I didn't find. I'd like to know whether Portage makes checksums (for equery check) from installed files in /, or in /var/tmp/portage. And similarly whether it makes binary packages (when asked) from /, or again from /var/tmp/portage. It'd make sense, it'd make it from /var/tmp/portage but I'm not sure of that. >>> >>> It makes the packages from $PORTAGE_TMPDIR and then installs from that >>> package, when using buildpkg. Quickpkg builds fro the installed >>> files. >> >> Thanks for your very quick answer. And the checksums? > > There's a good reason I didn't answer that part of the question... Good reason? I don't understand. When I looked into ebuild(1), I found "the installed files' checksums are recorded" which can be explained both ways but checksums from $PORTAGE_TMPDIR is more likely. -- Jan Sever
Re: [gentoo-user] Source for checksums of installed files
On Sat, 14 Feb 2015 11:26:33 +0100 (CET), Jan Sever wrote: > >> I was looking for information about the source for checksums of > >> installed files but I didn't find. I'd like to know whether Portage > >> makes checksums (for equery check) from installed files in /, or > >> in /var/tmp/portage. And similarly whether it makes binary packages > >> (when asked) from /, or again from /var/tmp/portage. It'd make sense, > >> it'd make it from /var/tmp/portage but I'm not sure of that. > > > > It makes the packages from $PORTAGE_TMPDIR and then installs from that > > package, when using buildpkg. Quickpkg builds fro the installed > > files. > > Thanks for your very quick answer. And the checksums? There's a good reason I didn't answer that part of the question... -- Neil Bothwick "Meow" "Woof" Jeez, it's really raining today. pgpIAZuv39vxe.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Source for checksums of installed files
On 02/14/2015 10:36 AM, Neil Bothwick wrote: > On Sat, 14 Feb 2015 10:24:21 +0100 (CET), Jan Sever wrote: >> I was looking for information about the source for checksums of >> installed files but I didn't find. I'd like to know whether Portage >> makes checksums (for equery check) from installed files in /, or >> in /var/tmp/portage. And similarly whether it makes binary packages >> (when asked) from /, or again from /var/tmp/portage. It'd make sense, >> it'd make it from /var/tmp/portage but I'm not sure of that. > > It makes the packages from $PORTAGE_TMPDIR and then installs from that > package, when using buildpkg. Quickpkg builds fro the installed files. Thanks for your very quick answer. And the checksums? -- Jan Sever
Re: [gentoo-user] Source for checksums of installed files
On Sat, 14 Feb 2015 10:24:21 +0100 (CET), Jan Sever wrote: > I was looking for information about the source for checksums of > installed files but I didn't find. I'd like to know whether Portage > makes checksums (for equery check) from installed files in /, or > in /var/tmp/portage. And similarly whether it makes binary packages > (when asked) from /, or again from /var/tmp/portage. It'd make sense, > it'd make it from /var/tmp/portage but I'm not sure of that. It makes the packages from $PORTAGE_TMPDIR and then installs from that package, when using buildpkg. Quickpkg builds fro the installed files. -- Neil Bothwick Top Oxymorons Number 32: Living dead pgph2tUAXlPHi.pgp Description: OpenPGP digital signature