Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvirt: not reproductible because of LC_UUID #310964

Open
Et7f3 opened this issue May 12, 2024 · 0 comments
Open

libvirt: not reproductible because of LC_UUID #310964

Et7f3 opened this issue May 12, 2024 · 0 comments

Comments

@Et7f3
Copy link
Contributor

Et7f3 commented May 12, 2024

Steps To Reproduce

1. Build the package

This step will build the package. Specific arguments are passed to the command
to keep the build artifacts so we can compare them in case of differences.

Execute the following command:

nix-build '<nixpkgs>' -A libvirt && nix-build '<nixpkgs>' -A libvirt --check --keep-failed

Or using the new command line style:

nix build nixpkgs#libvirt && nix build nixpkgs#libvirt --rebuild --keep-failed

2. Compare the build artifacts

nix run nixpkgs#diffoscope /nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0{,.check}/bin/virt-ssh*
--- /nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0/bin/virt-ssh-helper
+++ /nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0.check/bin/virt-ssh-helper
├── x86_64
│┄ Format-specific differences are supported for this file format but no file-specific differences were detected; falling back to a binary diff. file(1) reports: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>
│ @@ -86,15 +86,15 @@
│  00000550: 0000 0000 1200 0000 1200 0000 0c00 0000  ................
│  00000560: 1e00 0000 3f00 0000 0000 0000 0000 0000  ....?...........
│  00000570: 0000 0000 0000 0000 0000 0000 0000 0000  ................
│  00000580: 786d 0000 7c00 0000 0000 0000 0000 0000  xm..|...........
│  00000590: 0000 0000 0000 0000 0e00 0000 2000 0000  ............ ...
│  000005a0: 0c00 0000 2f75 7372 2f6c 6962 2f64 796c  ..../usr/lib/dyl
│  000005b0: 6400 0000 0000 0000 1b00 0000 1800 0000  d...............
│ -000005c0: 8297 d105 10ba 35cd 92f0 8ed1 d30c 75b7  ......5.......u.
│ +000005c0: 22ab 71ca 5bc7 368a b403 5c2c b410 e476  ".q.[.6...\,...v
│  000005d0: 2400 0000 1000 0000 000c 0a00 000c 0a00  $...............
│  000005e0: 2a00 0000 1000 0000 0000 0000 0000 0000  *...............
│  000005f0: 2800 0080 1800 0000 b031 0000 0000 0000  (........1......
│  00000600: 0000 0000 0000 0000 0c00 0000 6800 0000  ............h...
│  00000610: 1800 0000 0200 0000 0000 0000 0000 0000  ................
│  00000620: 2f6e 6978 2f73 746f 7265 2f78 6c6e 3839  /nix/store/xln89
│  00000630: 6770 6733 3567 6d33 6876 7362 346a 3836  gpg35gm3hvsb4j86

If I use otool -l on the two file I can see the real difference:

diff -Naur <(otool -l /nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0.check/bin/virt-ssh-helper) <(otool -l /nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0/bin/virt-ssh-helper)
--- /dev/fd/11	2024-05-12 02:27:24
+++ /dev/fd/12	2024-05-12 02:27:24
@@ -1,4 +1,4 @@
-/nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0.check/bin/virt-ssh-helper:
+/nix/store/xln89gpg35gm3hvsb4j86886rahzh8ij-libvirt-10.0.0/bin/virt-ssh-helper:
 Load command 0
       cmd LC_SEGMENT_64
   cmdsize 72
@@ -239,7 +239,7 @@
 Load command 8
      cmd LC_UUID
  cmdsize 24
-    uuid 22AB71CA-5BC7-368A-B403-5C2CB410E476
+    uuid 8297D105-10BA-35CD-92F0-8ED1D30C75B7
 Load command 9
       cmd LC_VERSION_MIN_MACOSX
   cmdsize 16

Additional context

Format-specific differences are supported for this file format but no file-specific differences were detected; falling back to a binary diff

I have checked with upstream and it doesn't seems reported. I can't create account (I have 403 org_internal error when I do google sso) if you have an account can you open ticket to produce a better output ?


Add a 👍 reaction to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant