#795797 git-buildpackage: please ignore .pc folders

#795797#5
Date:
2015-08-16 16:39:55 UTC
From:
To:
hi,

it would be awesome if gbp * would ignore .pc folders from quilt.
Using --git-ignore-new for that all the time is error prone.


thanks,

bernd

#795797#10
Date:
2015-08-19 07:56:54 UTC
From:
To:
Hi Bernd,

I looked into this and I wonder when exactly you're seeing a unclean
source tree due to _only_ .pc/ being there.

If I do a:

    QUILT_PATCHES=debian/patches/ quilt push -a

I get .pc/ but lots of other modifications in the source tree as well
(as it's the point of applying patches). If I then unapply:

    quilt pop -a

.pc/ is being removed as well. I remember that not being always the case
though in the (long gone) past.

Can you show me how to produce a situation with .pc/ there but no
patches applied?

Cheers,
 -- Guido

#795797#15
Date:
2015-08-19 08:34:56 UTC
From:
To:
Hi Guido,

Thats interesting, i think it never happened to me that the .pc folder
was gone. Do you have any other quilt options being set? Or some
non-default options in /etc/quilt.quiltrc?


bzed@think ..bian/nagios/pkg-nagios-plugins-contrib (git)-[master] % rm
-rf .pc
bzed@think ..bian/nagios/pkg-nagios-plugins-contrib (git)-[master] % git
status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
bzed@think ..bian/nagios/pkg-nagios-plugins-contrib (git)-[master] %
quilt push -a >/dev/null && quilt pop -a > /dev/null && echo $?
0
bzed@think ..bian/nagios/pkg-nagios-plugins-contrib (git)-[master] % ls
-lad .pc
drwxr-xr-x 23 bzed bzed 4096 Aug 19 10:32 .pc
bzed@think ..bian/nagios/pkg-nagios-plugins-contrib (git)-[master] %


Cheers,

Bernd

#795797#20
Date:
2015-08-19 15:07:37 UTC
From:
To:
Hi,

No configuration on my end. This is quilt 0.63 as in
stable/testing/unstable.

Is there any content left in .pc ?

It would actually be nicer to fix this on the quilt side than adding a
workaround to gbp.

Cheers,
 -- Guido

#795797#25
Date:
2015-11-28 12:40:21 UTC
From:
To:
hi Guido,

sorry for the late reply.

yeah, some hidden files:

bzed@think ~ % cd /tmp
bzed@think /tmp % mkdir foobar-1
bzed@think /tmp % cd foobar-1
bzed@think /tmp/foobar-1 % mkdir -p debian/patches
bzed@think /tmp/foobar-1 % quilt new patch1
Patch patch1 is now on top
bzed@think /tmp/foobar-1 % quilt add foo
File foo added to patch patch1
bzed@think /tmp/foobar-1 % echo 1 > foo
bzed@think /tmp/foobar-1 % quilt refresh
Refreshed patch patch1
bzed@think /tmp/foobar-1 % quilt pop -a
Removing patch patch1
Removing foo

No patches applied
bzed@think /tmp/foobar-1 % ls -laR .pc
.pc:
total 12
drwxr-xr-x 2 bzed bzed 62 Nov 28 13:36 .
drwxr-xr-x 4 bzed bzed 29 Nov 28 13:36 ..
-rw-r--r-- 1 bzed bzed 15 Nov 28 13:35 .quilt_patches
-rw-r--r-- 1 bzed bzed  7 Nov 28 13:35 .quilt_series
-rw-r--r-- 1 bzed bzed  2 Nov 28 13:35 .version
bzed@think /tmp/foobar-1 %


Indeed!
I think I have a pretty basic quilt config:

QUILT_PUSH_ARGS="--color=auto"
QUILT_DIFF_ARGS="--no-timestamps --no-index -p ab --color=auto"
QUILT_REFRESH_ARGS="--no-timestamps --no-index -p ab"
QUILT_DIFF_OPTS='-p'
QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33"
QUILT_PATCHES=debian/patches

So I have no real idea why the .pc folder is still there....

Cheers,

Bernd

#795797#30
Date:
2021-08-07 13:11:07 UTC
From:
To:
Le mercredi 19 août 2015 à 17:07 +0200, Guido Günther a écrit :

I’m also affected by this issue.

But is quilt really supposed to remove the .pc directory?

The quilt(1) manpage says:

 Files in the .pc directory are automatically removed when they are
 no longer needed, so there is no need to clean up manually.

Note that this mentions only files, and not the directory itself.

Moreover, there is bug #496630 opened against quilt that asks for a new
command that would precisely delete the .pc folder (and someone
suggests to rather add this behaviour to the “pop” command, implying
that it is not implemented).

Finally, I looked at the source code for the “quilt pop” command and I
saw nothing related to removing the .pc directory.

So, unless I’m missing something, this issue is not a bug in quilt, and
it should thus be fixed in git-buildpackage (unless someone convinces
the quilt upstream authors to implement a change in behaviour).