Package: debmake
Version: 4.2.0-1
Hi,
When I'm making upstream tarball with debmake -t,
(In an already packaged source tree)
I noticed that debmake excluded debian/ directory,
but not .pc directory. See the bottom script.
I tried a quick hack on file tar.py but failed.
* the gnu tar doesn't work with multiple --exclude arg
i.e. tar --exclude=dirA --exclude=dirB
* the gnu tar doesn't work with another style of multiple exclude
i.e. tar --exclude=dirA,dirB
* in order to exclude multiple files/dirs, tar -X may help
but we can't hardcode, here for example, strings like "cv-0.6"
into a list file tar-exclude.list for tar -X
Then I gave up to try. However I think this problem can be solved
in one way of followwing
* rsync source tree to dest, then rm [-r] files/dirs we don't
want for a upstream source.
* rsync with multiple --exclude options.
* [...]
Another problem is, should we dquilt pop -a before making an
upstream tarball? I did not find "quilt" in tar.py.
I submit this bug because, IMHO it would be better if debmake -t
can make upstream tarballs in an already packaged source tree,
avoiding user to pop patches, exclude dirs/cvs, and then tar zcvf
by hand. namely it would be more convenient.
If this is a bad idea, IMO debmake should at least warn
user (human) the existence of .pc dir, saying
"this is not the original source tree".
-------------------------------------------------------------------
┌─[0]-[lumin@jessie]-[10:25:16]-[~/hdd/debian/cv]
└──╼$ debmake -t
I: set parameters
I: sanity check of parameters
I: pkg="cv", ver="0.6", rev="1"
I: make the upstream tarball with "tar --exclude=debian"
I: pwd = "/home/lumin/hdd/debian/cv"
I: pwd = "/home/lumin/hdd/debian"
I: $ rsync -aCv --link-dest=/home/lumin/hdd/debian/cv cv/. cv-0.6
sending incremental file list
created directory cv-0.6
sent 1,099 bytes received 47 bytes 2,292.00 bytes/sec
total size is 101,604 speedup is 88.66
I: $ tar --exclude='cv-0.6/debian' --anchored --exclude-caches
--exclude-vcs -cvzf cv-0.6.tar.gz cv-0.6
cv-0.6/
cv-0.6/capture.png
cv-0.6/hlist.h
cv-0.6/cv.h
cv-0.6/Makefile
cv-0.6/cv.1
cv-0.6/sizes.c
cv-0.6/README.md
cv-0.6/sizes.h
cv-0.6/.pc/
cv-0.6/.pc/fix-manpage-lintian.patch/
cv-0.6/.pc/fix-manpage-lintian.patch/.timestamp
cv-0.6/.pc/fix-manpage-lintian.patch/cv.1
cv-0.6/.pc/modify-makefile.patch/
cv-0.6/.pc/modify-makefile.patch/.timestamp
cv-0.6/.pc/modify-makefile.patch/Makefile
cv-0.6/.pc/.quilt_series
cv-0.6/.pc/.version
cv-0.6/.pc/applied-patches
cv-0.6/.pc/.quilt_patches
cv-0.6/cv.c
cv-0.6/hlist.c
cv-0.6/LICENSE
I: cv-0.6.tar.gz tarball made
I: pwd = "/home/lumin/hdd/debian/cv-0.6"
I: *** start packaging in "cv-0.6". ***
I: provide cv_0.6.orig.tar.gz for non-native Debian package
I: pwd = "/home/lumin/hdd/debian"
I: $ ln -sf cv-0.6.tar.gz cv_0.6.orig.tar.gz
I: pwd = "/home/lumin/hdd/debian/cv-0.6"
I: parse binary package settings:
I: binary package=cv Type=bin / Arch=any M-A=foreign
I: analyze the source tree
I: build_type = make
I: scan source for copyright+license text and file extensions
I: 46 %, ext = c
I: 15 %, ext = patch
I: 8 %, ext = media
I: 8 %, ext = 1
I: 8 %, ext = md
I: 8 %, ext = gitignore
I: 8 %, ext = manpages
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]