Skip to content

Commit

Permalink
Ignore diffs caused by removing packaging information. #40
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Feb 13, 2024
1 parent ca5c040 commit fa19978
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unibuild-package/unibuild-package/unibuild-deb.make
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ else
(cd '$@' && tar cf - .) | (cd $(BUILD_ORIG_PACKAGE_DIR) && tar xpf -)
-# Debian packaging guidelines dictate that the "orig" tarball
-# must not change if the software does not, so remove any
-# packaging information before creating it.
-# packaging information before creating it. This causes a
-# diff between the sources and "orig" tarball, which is compensated
-# for in the "build" target.
find '$(BUILD_ORIG_PACKAGE_DIR)' -name 'unibuild-packaging' -type d | xargs rm -rf
(cd $(BUILD_ORIG_DIR) && tar cf - $(SOURCE_VERSION) | gzip -n ) > $(PRODUCTS_DIR)/$(ORIG_TARBALL)
endif
Expand Down Expand Up @@ -219,8 +221,11 @@ endif
'debian/control' \
&& rm -f *-build-deps_*.buildinfo *-build-deps_*.changes
@printf "\nBuild Package $(SOURCE) $(VERSION)\n\n"
-# Note that we ignore unibuild-packaging differences here because that
-# directory it will have been deleted from the .orig tarball.
(((( \
cd $(BUILD_UNPACK_DIR) && dpkg-buildpackage -sa \
'--diff-ignore=^unibuild-packaging/.*$$' \
--root-command=fakeroot --no-sign 2>&1 ; \
echo $$? >&3 \
) \
Expand Down

0 comments on commit fa19978

Please sign in to comment.