Re: Please filter bugmail to debian-dpkg again (Re: Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist)

2011-10-05 Thread Raphael Hertzog
On Wed, 05 Oct 2011, Jonathan Nieder wrote:
> Guillem Jover wrote:
> > On Wed, 2011-10-05 at 08:26:06 -0500, Jonathan Nieder wrote:
> 
> >> The message this is a reply to was forwarded to the debian-dpkg@ list.
> >> It should not have been --- dpkg bugs only go to the debian-dpkg-bugs@
> >> list.
> >
> > This is actually a list.d.o problem, as Raphaël mentioned in
> > .
> 
> Oh, that makes sense.  Sorry for the noise.

This has been fixed now. And debian-dpkg-bugs@ now gets the mail that are
sent by the BTS to debian-dpkg@. The PTS is no longer involved.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111006060713.gl22...@rivendell.home.ouaza.com



Please filter bugmail to debian-dpkg again (Re: Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist)

2011-10-05 Thread Jonathan Nieder
Guillem Jover wrote:
> On Wed, 2011-10-05 at 08:26:06 -0500, Jonathan Nieder wrote:

>> The message this is a reply to was forwarded to the debian-dpkg@ list.
>> It should not have been --- dpkg bugs only go to the debian-dpkg-bugs@
>> list.
>
> This is actually a list.d.o problem, as Raphaël mentioned in
> .

Oh, that makes sense.  Sorry for the noise.


--
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005200734.GB11468@elie



Re: Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist

2011-10-05 Thread Guillem Jover
Hi!

On Wed, 2011-10-05 at 08:26:06 -0500, Jonathan Nieder wrote:
> The message this is a reply to was forwarded to the debian-dpkg@ list.
> It should not have been --- dpkg bugs only go to the debian-dpkg-bugs@
> list.

This is actually a list.d.o problem, as Raphaël mentioned in
.

thanks,
guillem


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005191757.gb24...@gaara.hadrons.org



Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist

2011-10-05 Thread Guillem Jover
Hi!

On Wed, 2011-10-05 at 04:43:26 -0500, Jonathan Nieder wrote:
> Squeeze i386 system.  Building dpkg master (but I assume the last
> uploaded sid version would behave similarly):
> 
> | $ dpkg-query -W po4a
> | po4a0.40.2-1
> | $ debian/rules build
> [...]
> | make[3]: Entering directory `/home/jrn/src/dpkg/build-tree/man'
> | po4a --previous --srcdir ../../man --destdir 
> /home/jrn/src/dpkg/build-tree/man --no-backups ../../man/po/po4a.cfg
> | ../../man/po/po4a.cfg:17: The 'deb.5' master file does not exist.
> | make[3]: *** [man.stamp] Error 9
> | make[3]: Leaving directory `/home/jrn/src/dpkg/build-tree/man'
> 
> The upstream changelog for po4a in sid tells me that this is a known
> problem --- versions before 0.41 would neglect to chdir to $srcdir at
> the appropriate moment, making the --srcdir option mostly useless.
> Building dpkg with "./configure --prefix=$HOME/opt/dpkg && make" so
> $(srcdir) is . indeed avoids trouble.
> 
> Reverting commits 966a4f6b, 0ed90da7, and 822ea85c (build: Use po4a
> --srcdir and --builddir, 2011-09­19) avoids trouble, too, and that is
> what I did locally.  Short of that, how about this patch?

Hmmm, it's unfortunate that squeeze does not have the needed po4a
version, but oh well. Patch looks good, applied locally, will be on my
next push. Thanks!

regards,
guillem



--
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005191606.ga24...@gaara.hadrons.org



Re: postinst corrupts my settings after a 'apt-get upgrade'.

2011-10-05 Thread Russ Allbery
vot...@gmx.de writes:

> i have some problems with the package update mechanism in my
> appliance. I have installed various services like
> 'forked-daapd'. Because i wanted to monitor and start the daemon via
> 'monit' i removed the init script from the runlevels via 'update-rc.d -f
> forked-daapd remove'. After a 'apt-get dist-upgrade' (after enabling
> Squeeze backports) i received the package from the backports. The
> problem now is that it seems that the 'postinst' script has registered
> the runlevels again and the process is statred via init.d script and
> monit now.

The basic problem that you're having is that this is not the correct way
to disable an init script in Debian.  The correct way is to rename all the
S* links in /etc/rc?.d for that service to K* links.  If you make that
change, you'll find it's preserved across upgrades and changes.

And yes, that's annoying and there's no good tool in the base installation
to handle it for you, and that's a bug that should be fixed.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/8739f7b6mk@windlord.stanford.edu



Processed: reassign 644412 to dpkg-dev

2011-10-05 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> reassign 644412 dpkg-dev 1.16.1
Bug #644412 [dpkg] dpkg-buildflags: use DEB_BUILD_MAINT_OPTIONS when including 
buildflags.mk
Bug reassigned from package 'dpkg' to 'dpkg-dev'.
Bug No longer marked as found in versions dpkg/1.16.1.
Bug #644412 [dpkg-dev] dpkg-buildflags: use DEB_BUILD_MAINT_OPTIONS when 
including buildflags.mk
Bug Marked as found in versions dpkg/1.16.1.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
644412: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644412
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/handler.s.c.131783417019909.transcr...@bugs.debian.org



Bug#644412: dpkg-buildflags: use DEB_BUILD_MAINT_OPTIONS when including buildflags.mk

2011-10-05 Thread Pierre Chifflier
Package: dpkg
Version: 1.16.1
Severity: normal

Hi,

When using the following Makefile snippet:

DEB_BUILD_MAINT_OPTIONS = hardening=+pie,+bindnow
export DEB_BUILD_MAINT_OPTIONS
-include /usr/share/dpkg/buildflags.mk
export CFLAGS LDFLAGS

The variable DEB_BUILD_MAINT_OPTIONS is not used, and the variables
(CFLAGS etc.) does not have the expected value.

A possible solution would be to modify /usr/share/dpkg/buildflags.mk to
use the variables when running the shell command, for ex using something
like:
DEB_BUILD_MAINT_OPTIONS="$(DEB_BUILD_MAINT_OPTIONS)" dpkg-buildflags 

This would greatly help for the hardening goal by keeping the inclusion
of the file optional (for backports) and adding options like pie and
bindnow to the hardening flags.

Thanks,
Pierre



-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20111005152932.27231.32742.report...@ks26688.kimsufi.com



Re: s3ql: uninstallable on kfreebsd-i386 or kfreebsd-amd64

2011-10-05 Thread Raphael Hertzog
Hi,

On Wed, 05 Oct 2011, Nikolaus Rath wrote:
> Yeah, I agree. But I'm trying to make a more general point: what's wrong
> with an arch: all package having arch-dependend deps? Why isn't that
> allowed?

Because this feature is not implemented in dpkg... it's not a matter of
allowed or not, it's a matter that dpkg doesn't grok arch-specific
dependencies in the control file.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005151427.gb8...@rivendell.home.ouaza.com



Re: s3ql: uninstallable on kfreebsd-i386 or kfreebsd-amd64

2011-10-05 Thread Nikolaus Rath
On 10/04/2011 11:07 PM, Jonathan Nieder wrote:
> Nikolaus Rath wrote:
>> On 09/30/2011 02:43 PM, Robert Millan wrote:
>>> 2011/9/28 Nikolaus Rath :
> 
 Does this mean that the package has to become Arch: any now? That seems
 wrong to me...
>>>
>>> Not necessarily, you can instead use:
>>>
>>> Depends: fuse | fuse4bsd
>>
>> S3QL depends on fuse when running on Linux, and on FUSE4BSD when running
>> on FreeBSD. It is, however, not able to use fuse when running on
>> FreeBSD, or bsdfuse when running on Linux, which the above dependency
>> allows as well.
>>
>> Now, in this case this probably isn't a problem because (I assume) the
>> fuse4bsd package doesn't exist for Linux, and the fuse package doesn't
>> exist for kFreeBSD.
> 
> I believe that "Depends: fuse | fuse4bsd" is correct here.  If someone
> manages to get plain fuse working on kFreeBSD, then it should satisfy the
> dependency.

Yeah, I agree. But I'm trying to make a more general point: what's wrong
with an arch: all package having arch-dependend deps? Why isn't that
allowed?


Thanks,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e8c5bc4.2070...@rath.org



Re: Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist

2011-10-05 Thread Jonathan Nieder
Hi,

The message this is a reply to was forwarded to the debian-dpkg@ list.
It should not have been --- dpkg bugs only go to the debian-dpkg-bugs@
list.

Thanks for keeping the bts running well,
Jonathan


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005132606.GA10763@elie



Re: postinst corrupts my settings after a 'apt-get upgrade'.

2011-10-05 Thread Jonathan Nieder
Hi,

vot...@gmx.de wrote:

> Another szenario might be that i have installed service xyz but i have 
> disabled
> it because i did not want to use it right now. If it is updated via a package
> update the default postinst behaviour is to register the init script in the
> runlevels and starts the daemon/app/whatever. This is not the behaviour i
> expect.
>
> I'm thinking wrong here or is this a problem in dpkg/APT?
>
> In my eyes the postinst script should check whether it is installed the first
> time or not.

This has nothing to do with dpkg or APT.  It has more to do with
Debian policy[1] --- from the point of view of dpkg, each package
provides its own postinst script with whatever behavior it chooses.

There have been a few discussions of this recently[2][3][4].

Hope that helps,
Jonathan

[1] http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3
[2] http://thread.gmane.org/gmane.linux.debian.devel.general/163640/focus=164342
[3] http://thread.gmane.org/gmane.linux.debian.devel.general/163640/focus=164027
[4] 
http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/764253/focus=159724


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005114317.GC27187@elie



postinst corrupts my settings after a 'apt-get upgrade'.

2011-10-05 Thread votdev
Hello,

i have some problems with the package update mechanism in my appliance. I have
installed various services like 'forked-daapd'. Because i wanted to monitor and
start the daemon via 'monit' i removed the init script from the runlevels via
'update-rc.d -f forked-daapd remove'. After a 'apt-get dist-upgrade' (after
enabling Squeeze backports) i received the package from the backports. The
problem now is that it seems that the 'postinst' script has registered
the runlevels again and the process is statred via init.d script and monit now.

The following is taken from the postinst script of the forked-daapd package in
Squeeze:

# Automatically added by dh_installinit
if [ -x "/etc/init.d/forked-daapd" ]; then
update-rc.d forked-daapd defaults 25 >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d forked-daapd start || exit $?
else
/etc/init.d/forked-daapd start || exit $?
fi
fi
# End automatically added section

Is it the intention of the package management to corrupt the user settings or
is this a bug?

Another szenario might be that i have installed service xyz but i have disabled
it because i did not want to use it right now. If it is updated via a package
update the default postinst behaviour is to register the init script in the
runlevels and starts the daemon/app/whatever. This is not the behaviour i
expect.

I'm thinking wrong here or is this a problem in dpkg/APT?

In my eyes the postinst script should check whether it is installed the first
time or not. When it is installed the first time the initialization is ok,
but if the package is updated the postinst script should not touch the
configuration anymore.

The forked-daapd package is just an example, the problem seems to me generic.

Regards
Volker
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!   
Jetzt informieren: http://www.gmx.net/de/go/freephone


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005111232.326...@gmx.net



Bug#644370: dpkg/sid FTBFS on squeeze: The 'deb.5' master file does not exist

2011-10-05 Thread Jonathan Nieder
Source: dpkg
Version: 1.16.1
Severity: wishlist
Tags: patch

-- >8 --
Subject: Bump advertised po4a requirement to 0.41

The po4a --srcdir and --destdir options were introduced in version
0.36.4, but attempts to point --srcdir to a different directory than
the cwd when running po4a produced the message “master file was not
found” instead of doing something useful until version 0.41 (r2317,
2010-11-03).

Signed-off-by: Jonathan Nieder 
---
Hi,

Squeeze i386 system.  Building dpkg master (but I assume the last
uploaded sid version would behave similarly):

| $ dpkg-query -W po4a
| po4a  0.40.2-1
| $ debian/rules build
[...]
| make[3]: Entering directory `/home/jrn/src/dpkg/build-tree/man'
| po4a --previous --srcdir ../../man --destdir 
/home/jrn/src/dpkg/build-tree/man --no-backups ../../man/po/po4a.cfg
| ../../man/po/po4a.cfg:17: The 'deb.5' master file does not exist.
| make[3]: *** [man.stamp] Error 9
| make[3]: Leaving directory `/home/jrn/src/dpkg/build-tree/man'

The upstream changelog for po4a in sid tells me that this is a known
problem --- versions before 0.41 would neglect to chdir to $srcdir at
the appropriate moment, making the --srcdir option mostly useless.
Building dpkg with "./configure --prefix=$HOME/opt/dpkg && make" so
$(srcdir) is . indeed avoids trouble.

Reverting commits 966a4f6b, 0ed90da7, and 822ea85c (build: Use po4a
--srcdir and --builddir, 2011-09­19) avoids trouble, too, and that is
what I did locally.  Short of that, how about this patch?

 README   |2 +-
 debian/changelog |4 
 debian/control   |2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/README b/README
index 21957047..d03c21ad 100644
--- a/README
+++ b/README
@@ -69,7 +69,7 @@ To enable optional functionality or programs, this software 
might be needed:
 To enable translated or additional («make doc») documentation this
 software will be needed:
 
-  po4a >= 0.36.4
+  po4a >= 0.36.4 (>= 0.41 for VPATH builds)
   pod2man
   doxygen
   dot
diff --git a/debian/changelog b/debian/changelog
index 5c752625..43114e00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,10 @@ dpkg (1.16.2) UNRELEASED; urgency=low
 - Reduces the amount of work performed, including loading and parsing
   unnecessary table files or calling either of gcc or dpkg programs.
 
+  [ Jonathan Nieder ]
+  * Bump po4a version in Build-Depends to 0.41, since earlier versions do
+not handle --srcdir correctly.
+
   [ Updated man page translations ]
   * German (Helge Kreutzmann).
 
diff --git a/debian/control b/debian/control
index 3b57b716..b9d347e7 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Vcs-Browser: http://git.debian.org/?p=dpkg/dpkg.git
 Vcs-Git: git://git.debian.org/git/dpkg/dpkg.git
 Standards-Version: 3.9.2
 Build-Depends: debhelper (>= 7), pkg-config, flex,
- gettext (>= 0.18), po4a (>= 0.36.4),
+ gettext (>= 0.18), po4a (>= 0.41),
  zlib1g-dev (>= 1:1.1.3-19.1), libbz2-dev,
  libselinux1-dev (>= 1.28-4) [linux-any],
  libncursesw5-dev,
-- 
1.7.7.rc1




--
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111005094326.GA19712@elie