Your message dated Wed, 28 Mar 2007 23:47:55 +0300
with message-id <[EMAIL PROTECTED]>
and subject line Bug#416481: [Pbuilder-maint] Bug#416481: Removes backup file 
of /etc/pbuilderrc
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: pbuilder
Version: 0.164
Severity: grave
Justification: causes non-serious data loss

I attach a log file of a script session. The commands were 


=====================================
export LANG=C
aptitude install pbuilder
cp /etc/pbuilderrc /etc/pbuilderrc.bak
echo >> /etc/pbuilderrc.bak

ls -l /etc/pbu*

aptitude purge pbuilder
ls -l /etc/pbu*
=====================================

I wanted a backup of my pbuilderrc to survive the purge. For reasons unknown to
me, /etc/pbuilderrc.bak was removed as well (the 'echo' command is just to
ensure that the files are indeed different).

  Thomas

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (700, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.15     Bootstrap a Debian system
ii  coreutils                     5.97-5.3   The GNU core utilities
ii  debianutils                   2.18       Miscellaneous utilities specific t
ii  debootstrap                   0.3.3.2    Bootstrap a basic Debian system
ii  gcc                           4:4.1.1-15 The GNU C compiler
ii  wget                          1.10.2-2   retrieves files from the web

Versions of packages pbuilder recommends:
pn  cowdancer                     <none>     (no description available)
ii  devscripts                    2.10.2     Scripts to make the life of a Debi
ii  fakeroot                      1.6.5      Gives a fake root environment
ii  sudo                          1.6.8p12-4 Provide limited super user privile

-- no debconf information
Script started on Wed Mar 28 11:20:36 2007
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# export LANG=C
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# aptitude install pbuilder

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... Done


Reading extended state information... 0%

Reading extended state information... 0%

Reading extended state information... 8%

Reading extended state information      


Initializing package states... 0% 

Initializing package states... Done


Writing extended state information... 0%

Writing extended state information... Done


Reading task descriptions... 0%           

Reading task descriptions... Done


Building tag database... 0%      

Building tag database... 24%

Building tag database... Done

The following NEW packages will be installed:
  pbuilder 
The following packages are RECOMMENDED but will NOT be installed:
  cowdancer 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/83.8kB of archives. After unpacking 471kB will be used.

Writing extended state information... 0%

Writing extended state information... 1%

Writing extended state information... Done



Selecting previously deselected package pbuilder.
(Reading database ... 265963 files and directories currently installed.)
Unpacking pbuilder (from .../pbuilder_0.164_all.deb) ...
Setting up pbuilder (0.164) ...
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# cp /etc/pbuilderrc 
/etc/pbuilderrc.bak
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# echo >> /etc/pbuilderrc.bak
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# ls -l /etc/pbu*
-rw-r--r-- 1 root root 2421 Feb 27 00:07 /etc/pbuilderrc
-rw-r--r-- 1 root root 2422 Mar 28 11:20 /etc/pbuilderrc.bak

/etc/pbuilder:
total 4
-rw-r--r-- 1 root root 373 Feb 27 00:07 buildd-config.sh
lrwxrwxrwx 1 root root  13 Mar 28 11:20 pbuilderrc -> 
../pbuilderrc
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# aptitude purge pbuilder

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... Done


Reading extended state information... 0%

Reading extended state information... 0%

Reading extended state information      


Initializing package states... 0% 

Initializing package states... Done


Writing extended state information... 0%

Writing extended state information... 67%

Writing extended state information... Done


Reading task descriptions... 0%           

Reading task descriptions... Done


Building tag database... 0%      

Building tag database... Done

The following packages will be REMOVED:
  pbuilder{p} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 471kB will be freed.
Do you want to continue? [Y/n/?] 

Writing extended state information... 0%

Writing extended state information... 1%

Writing extended state information... Done



(Reading database ... 266024 files and directories currently installed.)
Removing pbuilder ...
Purging configuration files for pbuilder ...
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# ls -l /etc/pbu*
ls: /etc/pbu*: No such file or directory
]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~# exit

Script done on Wed Mar 28 11:21:18 2007

--- End Message ---
--- Begin Message ---
Hi,

On Wed, 2007-03-28 at 21:08:59 +0900, Junichi Uekawa wrote:
> > =====================================
> > export LANG=C
> > aptitude install pbuilder
> > cp /etc/pbuilderrc /etc/pbuilderrc.bak
> > echo >> /etc/pbuilderrc.bak
> > 
> > ls -l /etc/pbu*
> > 
> > aptitude purge pbuilder
> > ls -l /etc/pbu*
> > =====================================
> >
> > I wanted a backup of my pbuilderrc to survive the purge. For reasons
> > unknown to me, /etc/pbuilderrc.bak was removed as well (the 'echo'
> > command is just to ensure that the files are indeed different).

> It looks like a default behavior of dpkg to remove such file on purge
>
> lib/dpkg.h:
> #define REMOVECONFFEXTS    "~", ".bak", "%", \
>                            DPKGTEMPEXT, DPKGNEWEXT, DPKGOLDEXT, DPKGDISTEXT
>
> used in
> src/remove.c

> As documented in Debian Policy (as 'etc.')
>
> 6.8. Details of removal and/or configuration purging
> ----------------------------------------------------
>
>      5.   The `conffile's and any backup files (`~'-files, `#*#' files,
>           `%'-files, `.dpkg-{old,new,tmp}', etc.) are removed.

As Junichi explained this is the intended behaviour, so I'm closing
this non bug.

regards,
guillem

--- End Message ---

Reply via email to