[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-25 Thread Steve Langasek
Analysis of the upgrade logs and further discussion on IRC shows that
it's infeasible to fix this in samba.  The problem arises when perl-
modules is unpacked without libperl5.12/perl-base, and then samba is
unpacked.  Moving the update-inetd code from the postrm to the prerm may
help in some cases, but not in this one, because whichever maintainer
script tries to call update-inetd, the modules will be unavailable to
perl at that point.

Fixing update-inetd to be more robust (i.e., to not require perl-
modules) would help for the future, but would not help for the present
upgrade problems.

I think the only way to fix this reliably is via update-manager.

** Package changed: samba (Ubuntu Oneiric) = update-manager (Ubuntu
Oneiric)

** Changed in: update-manager (Ubuntu Oneiric)
 Assignee: (unassigned) = Michael Vogt (mvo)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-22 Thread Clint Byrum
Given the number of dupes, shouldn't this be raised to a Critical level?
This has now broken dozens of upgrades that we know about, and I'm sure
many more that haven't bothered to report it.

Robie's suggestion to simplify update-inetd, given that these are very
primitive elements, seems the best approach for a quick fix while the
nature of the dependency problem is considered.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-17 Thread Robie Basak
I discussed this bug at length with Adam on Friday afternoon. Adam is on
vacation now so I'll try and reproduce my memory and conclusions from
this conversation.

Some thoughts from that discussion:

1) perl-modules (which provides File::Temp) seems to spend a lot of time
unconfigured in the upgrade process. Adam pointed out that this is an
anomaly given how much packages depend on Perl in general, and that the
problem might be considered to be with the Perl transition and fixing
this may be one approach. Take a look at VarLogDistupgradeTermlog.gz in
bug 856309 for example - perl and perl-modules are unpacked but not
configured in the entire session. I understand that this still complies
with policy; the way I see the problem is that perl-modules and update-
inetd still need to export some kind of mechanism to make them usable
within maintainer scripts for them to be useful.

2) If update-inetd is supposed to be able to be used from within
maintainer scripts, what is the correct way of doing so? If it is
supposed to be used from a postrm and thus cannot rely on perl-modules
to be configured, then is the bug really that update-inetd is depending
on things that it cannot?

3) If we could change update-inetd to not depend on Perl modules that
may not be configured, then this particular bug wouldn't be an issue any
more. It looks like we may only need tempfile anyway, which is in
debianutils and Essential. The advantage of File::Temp seems to be
portability, which isn't an issue for us as we guarantee tempfile to
always be available. update-inetd also appears to need File::Copy so
I'll need to check this, but in any case would the approach of removing
dependencies by bringing minimal implementations into update-inetd be
acceptable?

** Also affects: update-inetd (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: perl (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-17 Thread Jean-Baptiste Lallement
** Tags added: rls-mgr-p-tracking

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-16 Thread Dave Walker
** Tags added: regression-release

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-16 Thread Dave Walker
** Also affects: samba (Ubuntu Oneiric)
   Importance: Undecided
   Status: New

** Also affects: samba (Ubuntu Precise)
   Importance: High
   Status: Triaged

** Changed in: samba (Ubuntu Oneiric)
   Status: New = Triaged

** Changed in: samba (Ubuntu Oneiric)
   Importance: Undecided = High

** Changed in: samba (Ubuntu Oneiric)
Milestone: None = oneiric-updates

** Changed in: samba (Ubuntu Precise)
Milestone: oneiric-updates = precise-alpha-1

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-14 Thread Steve Langasek
Historically, we wait for postrm before calling update-inetd --remove
because the enabled/disabled status of an inetd service is admin
configuration data, so we only want to remove it on purge.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-14 Thread Adam Conrad
I catch your point, Steve, but doesn't it seem silly to have an enabled
service in inted that references binaries that no longer exist on disk?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-14 Thread Adam Conrad
Or is this being triggered by upgrading/mangling samba in the middle of
perl transitions?  I think I need to look more deeply into the dupes and
see what's going on here, cause I refuse to believe a ton of people are
doing this on purpose.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-14 Thread Adam Conrad
And it occurs to me that I maintain a package that calls update-inetd in
postrm too.  Hrm.  Did it used to fail more gracefully when it wasn't
fully configured?  This may need a more general looking-at rather than
just samba (though I do find it curious that samba users in particular
seem to so frequently remove perl-modules after removing samba).

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-14 Thread Steve Langasek
 but doesn't it seem silly to have an enabled service in inetd
 that references binaries that no longer exist on disk?

Well, it's possible to use a different marker for package-level
disabling vs. admin-level disabling of a service... note that the postrm
*always* disables it when we're not purging, too.

Anyway, I'm not sure we ever executed very well on this, just explaining
how we got here.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-12 Thread Steve Langasek
** Changed in: samba (Ubuntu)
Milestone: ubuntu-11.10 = oneiric-updates

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-11 Thread Robie Basak
** Bug watch added: Debian Bug tracker #644963
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644963

** Also affects: samba via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644963
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-11 Thread Bug Watch Updater
** Changed in: samba
   Status: Unknown = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-10 Thread Robie Basak
The attached script reproduces the problem on a minimal fresh oneiric
install.

** Attachment added: test.sh
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+attachment/2534711/+files/test.sh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-10 Thread Launchpad Bug Tracker
** Branch linked: lp:~racb/ubuntu/oneiric/samba/862129

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-10 Thread Adam Conrad
Surely, we can just move the update-inetd call to prerm?  I can't
imagine why you'd want to wait around for postrm before calling it
anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-07 Thread Robie Basak
** Summary changed:

- package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: subprocess 
new post-removal script returned error exit status 2
+ samba postrm depends on packages not guaranteed to be configured

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-07 Thread Robie Basak
I'm thinking along the lines of the attached patch (untested). Some
questions:

1) Is this the right approach?
2) Is dpkg-query the right way to get the status of the update-inetd package?
3) What about triggers-awaiting and triggers-pending? What should the behaviour 
be in these cases? Is it OK to treat update-inetd as not available in these 
cases?
4)  I've tried manually deconfiguring update-inetd and perl-modules (by purging 
and then unpacking only) before purging samba, but that doesn't trigger the 
problem. Any way I try the upgrade case, dpkg refuses because update-inetd 
(intentionally) isn't configured. Is there any way I can reproduce this 
reliably?

** Attachment added: Untested patch
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+attachment/2522728/+files/patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 862129] Re: samba postrm depends on packages not guaranteed to be configured

2011-10-07 Thread Ubuntu QA's Bug Bot
The attachment Untested patch of this bug report has been identified
as being a patch.  The ubuntu-reviewers team has been subscribed to the
bug report so that they can review the patch.  In the event that this is
in fact not a patch you can resolve this situation by removing the tag
'patch' from the bug report and editing the attachment so that it is not
flagged as a patch.  Additionally, if you are member of the ubuntu-
sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/862129

Title:
  samba postrm depends on packages not guaranteed to be configured

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/862129/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs