perfsonar / unibuild

A kit for building repositories of packaged software
Apache License 2.0
1 stars 0 forks source link

Debian packages .diff.gz are products too #35

Closed laeti-tia closed 1 year ago

laeti-tia commented 1 year ago

Some builds can produce a .diff.gz file along with the others artifacts. We should copy this over too.

Example of missing .diff.gz files when using reprepro to add packages to repository:

Exporting indices...
Cannot find file './unibuild-repo/maddash-server_5.0.0~b2.2-2.diff.gz' needed by './unibuild-repo/maddash-server_5.0.0~b2.2-2_amd64.changes'!
There have been errors!
Cannot find file './unibuild-repo/maddash-webui_5.0.0~b2.2-2.diff.gz' needed by './unibuild-repo/maddash-webui_5.0.0~b2.2-2_amd64.changes'!
There have been errors!
/home/jenkins/workspace/maddash/unibuild-repo/maddash-server_5.0.0~b2.2-2.diff.gz does not exist, exiting
/home/jenkins/workspace/maddash/unibuild-repo/maddash-webui_5.0.0~b2.2-2.diff.gz does not exist, exiting

Content of build and products directory after a unibuild run:

$ ll maddash-server/unibuild-work/build/
total 14672
drwxr-xr-x 4 root    root        4096 Apr  4 16:30 ./
drwxr-xr-x 4 root    root        4096 Apr  4 16:28 ../
drwxrwxr-x 7 jenkins jenkins     4096 Apr  4 16:30 maddash-server/
-rw-r--r-- 1 root    root    14791908 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_all.deb
-rw-r--r-- 1 root    root        9856 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_amd64.buildinfo
-rw-r--r-- 1 root    root        2010 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_amd64.changes
-rw-r--r-- 1 root    root        5816 Apr  4 16:30 maddash-server_5.0.0~b2.2-2.diff.gz
-rw-r--r-- 1 root    root        1034 Apr  4 16:30 maddash-server_5.0.0~b2.2-2.dsc
-rw-r--r-- 1 root    root      182424 Apr  4 16:28 maddash-server_5.0.0~b2.2.orig.tar.gz
drwxr-xr-x 3 root    root        4096 Apr  4 16:28 orig/
$ ll maddash-server/unibuild-work/products/
total 14656
drwxr-xr-x 2 root root     4096 Apr  4 16:30 ./
drwxr-xr-x 4 root root     4096 Apr  4 16:28 ../
-rw-r--r-- 1 root root 14791908 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_all.deb
-rw-r--r-- 1 root root     9856 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_amd64.buildinfo
-rw-r--r-- 1 root root     2010 Apr  4 16:30 maddash-server_5.0.0~b2.2-2_amd64.changes
-rw-r--r-- 1 root root     1034 Apr  4 16:30 maddash-server_5.0.0~b2.2-2.dsc
-rw-r--r-- 1 root root   182424 Apr  4 16:30 maddash-server_5.0.0~b2.2.orig.tar.gz
laeti-tia commented 1 year ago

See https://www.debian.org/doc/manuals/debian-handbook/debian-packaging.en.html#id-1.18.4.5 for reference.