Hi,

On Mon, 20 Jul 2015 13:30:41 +0100 Matthew Vernon <[email protected]>
wrote:
> I think this isn't the correct answer, and in fact the thing to do is 
> add -p to the cp and install calls, to preserve timestamps?

I tried to build xbs using the -p option as you suggested, and while
files become reproducible, the directories are still unreproducible as
you can see in the attached debbindiff.

Kind Regards,
akira

--- ../test1/xbs_0-11_amd64.deb
+++ ../test2/xbs_0-11_amd64.deb
├── control.tar.gz
│   ├── control.tar
│   │   ├── metadata
│   │   │ @@ -1,2 +1,2 @@
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:33 ./
│   │   │ --rw-r--r-- root/root        491 2015-07-21 11:06:33 ./control
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./
│   │   │ +-rw-r--r-- root/root        491 2015-07-21 11:06:35 ./control
│   │   ╵
│   ╵
├── data.tar.xz
│   ├── data.tar
│   │   ├── metadata
│   │   │ @@ -1,19 +1,19 @@
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./usr/
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./usr/bin/
│   │   │ --rwxr-xr-x root/root     104904 2015-07-21 11:06:32 ./usr/bin/xbs
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./usr/share/
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./usr/share/doc/
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 
./usr/share/doc/xbs/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./usr/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./usr/bin/
│   │   │ +-rwxr-xr-x root/root     104904 2015-07-21 11:06:35 ./usr/bin/xbs
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./usr/share/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./usr/share/doc/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 
./usr/share/doc/xbs/
│   │   │  -rw-r--r-- root/root        123 2015-03-07 23:56:19 
./usr/share/doc/xbs/README.debian
│   │   │  -rw-r--r-- root/root       1147 2015-07-20 20:30:05 
./usr/share/doc/xbs/changelog.Debian.gz
│   │   │  -rw-r--r-- root/root        231 2015-03-07 23:56:19 
./usr/share/doc/xbs/changelog.gz
│   │   │  -rw-r--r-- root/root        468 2015-03-07 23:56:19 
./usr/share/doc/xbs/copyright
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 
./usr/share/doc/xbs/examples/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 
./usr/share/doc/xbs/examples/
│   │   │  -rw-r--r-- root/root        290 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/README.examples
│   │   │  -rw-r--r-- root/root       1598 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/alfa.bs
│   │   │  -rw-r--r-- root/root       7806 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/bi2201.bs
│   │   │  -rw-r--r-- root/root       3257 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/c60.bs
│   │   │  -rw-r--r-- root/root        695 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/ch4.bs
│   │   │  -rw-r--r-- root/root       2056 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/gray.bs
│   │   │  -rw-r--r-- root/root       4238 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/grpht.bs
│   │   │ @@ -24,10 +24,10 @@
│   │   │  -rw-r--r-- root/root       3360 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/ring.bs
│   │   │  -rw-r--r-- root/root     122505 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/ring.mv
│   │   │  -rwxr-xr-x root/root        211 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/runex
│   │   │  -rw-r--r-- root/root       2255 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/serp.bs
│   │   │  -rw-r--r-- root/root      42380 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/serp.mv
│   │   │  -rw-r--r-- root/root       3015 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/stb.bs
│   │   │  -rw-r--r-- root/root       1336 2015-03-07 23:56:19 
./usr/share/doc/xbs/examples/tic.bs
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 ./usr/share/man/
│   │   │ --rwxr-xr-x root/root          0 2015-07-21 11:06:32 
./usr/share/man/man1/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 ./usr/share/man/
│   │   │ +-rwxr-xr-x root/root          0 2015-07-21 11:06:35 
./usr/share/man/man1/
│   │   │  -rw-r--r-- root/root       3626 2015-03-07 23:56:19 
./usr/share/man/man1/xbs.1.gz
│   │   ╵
│   ╵
├── metadata
│ @@ -1,3 +1,3 @@
│  rw-r--r-- 0/0      4 Jul 20 20:29 2015 debian-binary
│  rw-r--r-- 0/0    459 Jul 20 20:29 2015 control.tar.gz
│ -rw-r--r-- 0/0  83656 Jul 20 20:29 2015 data.tar.xz
│ +rw-r--r-- 0/0  83776 Jul 20 20:29 2015 data.tar.xz
╵

Reply via email to