[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:17185] dpkg-genchanges: warning: duplicate files list entry for file
やまねです。
手元のパッケージを若干手直しをして build していたのですが、
dpkg-genchanges: warning: duplicate files list entry for file linux-patch-tomoyo_1.5.3-20080131-2_all.deb (line 2)
と warning が出てきます。確かに debian/files には
linux-patch-tomoyo_1.5.3-20080131-2_all.deb admin extra
linux-patch-tomoyo_1.5.3-20080131-2_all.deb admin extra
と2行同じものが書かれています。
さて、これを抑制する(2行かかれないようにする)にはどこをみたらいい
のでしょうか?
debian/rules は以下のようになっています。
-----
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PATCHDIFF=$(CURDIR)/debian/patchdiff
kernelversionlist=2.4.34 2.4.35 2.6.18 2.6.22 2.6.23 2.6.24
configure: configure-stamp
configure-stamp: patch
dh_testdir
touch configure-stamp
build-arch: configure-stamp build-arch-stamp
build-arch-stamp:
dh_testdir
touch $@
build-indep: configure-stamp build-indep-stamp
mkdir -p $(PATCHDIFF)/{ccspatch-skel,ccspatch} && \
ln -s $(CURDIR)/fs $(PATCHDIFF)/ccspatch/ && \
ln -s $(CURDIR)/include $(PATCHDIFF)/ccspatch/
cd $(PATCHDIFF) && \
diff -urN ccspatch-skel ccspatch | sed -e "s/debian\/patchdiff\///g" \
> $(PATCHDIFF)/kernel.diff
for ver in $(kernelversionlist) ; \
do \
cp $(CURDIR)/patches/ccs-patch-$$ver.diff \
$(CURDIR)/debian/patches/ccs-patch-$$ver.diff ;\
cat $(PATCHDIFF)/kernel.diff >> \
$(CURDIR)/debian/patches/ccs-patch-$$ver.diff ;\
done
-rm -rf $(PATCHDIFF)
build-indep-stamp:
dh_testdir
touch $@
build: build-arch build-indep
clean: unpatch
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installkpatches
# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_compress
dh_fixperms
# dh_installdeb
dh_gencontrol -i
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: binary-indep
binary: binary-indep binary-arch
patch: patch-stamp
patch-stamp:
dpatch apply-all
dpatch cat-all >patch-stamp
touch patch-stamp
unpatch:
dpatch deapply-all
rm -rf patch-stamp debian/patched
.PHONY: build clean binary-indep binary-arch binary install patch unpatch