public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] trouble installing cups
@ 2013-09-16 22:28 gottlieb
  2013-09-16 23:39 ` Neil Bothwick
  0 siblings, 1 reply; 5+ messages in thread
From: gottlieb @ 2013-09-16 22:28 UTC (permalink / raw
  To: gentoo-user

When I reinstall CUPS /etc/cups/cupsd.conf is *not* updated.
Details follow.

Cups was behaving badly: the web interface could not be used.  The
browser would quickly say no process was listening on localhost:631

I compared cupsd.conf to the same file on another working system and
noticed the following differences

  1. *Many* pairs of lines were missing.  The first line of each pair
     was blank; the second a comment.  Presumably this has no effect.

  2. The initial block comment was missing.  Again no effect.

  3. One very influential change
       Listen localhost:631
     was replaced by a second copy of
       Listen /run/cups/cups.sock
     When I manually put back localhost:631
     the cups web interface again behaved normally.

  4. The following block was *added* at the end
        JobPrivateAccess default
        JobPrivateValues default
        MaxLogSize 2000000
        SubscriptionPrivateAccess default
        SubscriptionPrivateValues default

     The first, second, fourth, and fifth generated "Unknown directive"
     messages in /var/log/cups/error.log

So I reinstalled cups but /etc/cups/cupd.conf was not changed and still
has its old date and contents.  The merge looks clean (output below)

I am wondering if there is something wrong with my setup.
I have the userpriv feature enabled.

Any help would be appreciated.
thanks,
allan

================================================================

 * Messages for package net-print/cups-1.6.3-r2:

 * Package:    net-print/cups-1.6.3-r2
 * Repository: gentoo
 * Maintainer: printing@gentoo.org
 * USE:        X acl amd64 dbus elibc_glibc filters kernel_linux pam python_single_target_python2_7 python_targets_python2_7 ssl threads usb userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.11.0-gentoo-rcs-1.3
 * Applying cups-1.6.0-dont-compress-manpages.patch ...
 * Applying cups-1.6.0-fix-install-perms.patch ...
 * Applying cups-1.4.4-nostrip.patch ...
 * Applying cups-1.5.0-systemd-socket-2.patch ...
 * Applying cups-1.6.2-statedir.patch ...
 * Applying cups-1.6.3-colord-profile.patch ...
 * Running aclocal -I config-scripts ...
 * Running autoconf ...
 * LANGS="ca es fr ja ru"
 * LINGUAS=""
 * Skipping make test/check due to ebuild restriction.
 * Updating icons cache ...
 * Updating desktop mime database ...
>>> Auto-cleaning packages...


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] trouble installing cups
  2013-09-16 22:28 [gentoo-user] trouble installing cups gottlieb
@ 2013-09-16 23:39 ` Neil Bothwick
  2013-09-17  1:23   ` gottlieb
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Bothwick @ 2013-09-16 23:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

On Mon, 16 Sep 2013 18:28:05 -0400, gottlieb@nyu.edu wrote:

> So I reinstalled cups but /etc/cups/cupd.conf was not changed and still
> has its old date and contents.  The merge looks clean (output below)

/etc/ is CONFIG_PROTECTed. Also, portage knows if you are reinstalling
the same version of the same package and does not try to update the
configs again. To change this, run the emerge with --noconfmem and then
run *-update.


-- 
Neil Bothwick

IBM: Itty Bitty Mentality

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] trouble installing cups
  2013-09-16 23:39 ` Neil Bothwick
@ 2013-09-17  1:23   ` gottlieb
  2013-09-17  9:22     ` Neil Bothwick
  0 siblings, 1 reply; 5+ messages in thread
From: gottlieb @ 2013-09-17  1:23 UTC (permalink / raw
  To: gentoo-user

On Mon, Sep 16 2013, Neil Bothwick wrote:

> On Mon, 16 Sep 2013 18:28:05 -0400, gottlieb@nyu.edu wrote:
>
>> So I reinstalled cups but /etc/cups/cupd.conf was not changed and still
>> has its old date and contents.  The merge looks clean (output below)
>
> /etc/ is CONFIG_PROTECTed.

This part I knew, but would have expected to hear that config files
have new versions

> Also, portage knows if you are reinstalling the same version of the
> same package and does not try to update the configs again.

That is what I missed.

> To change this, run the emerge with --noconfmem and then run *-update.

Works perfectly.
thanks,
allan


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] trouble installing cups
  2013-09-17  1:23   ` gottlieb
@ 2013-09-17  9:22     ` Neil Bothwick
  2013-09-17 15:17       ` gottlieb
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Bothwick @ 2013-09-17  9:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

On Mon, 16 Sep 2013 21:23:50 -0400, gottlieb@nyu.edu wrote:

> >> So I reinstalled cups but /etc/cups/cupd.conf was not changed and
> >> still has its old date and contents.  The merge looks clean (output
> >> below)  
> >
> > /etc/ is CONFIG_PROTECTed.  
> 
> This part I knew, but would have expected to hear that config files
> have new versions

You would if upgrading. But you are reinstalling the same version so
portage assumes you have already dealt with any config updates and don't
want to be bothered again. 

Remember when we had to go through loads of updates over again when
revdep-rebuild rebuilt a package with lots of config files. This avoids
that behaviour, --noconfmem brings it back.


-- 
Neil Bothwick

Biology is the only science in which multiplication means the same thing
as division.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] trouble installing cups
  2013-09-17  9:22     ` Neil Bothwick
@ 2013-09-17 15:17       ` gottlieb
  0 siblings, 0 replies; 5+ messages in thread
From: gottlieb @ 2013-09-17 15:17 UTC (permalink / raw
  To: gentoo-user

On Tue, Sep 17 2013, Neil Bothwick wrote:

> On Mon, 16 Sep 2013 21:23:50 -0400, gottlieb@nyu.edu wrote:
>
>> >> So I reinstalled cups but /etc/cups/cupd.conf was not changed and
>> >> still has its old date and contents.  The merge looks clean (output
>> >> below)  
>> >
>> > /etc/ is CONFIG_PROTECTed.  
>> 
>> This part I knew, but would have expected to hear that config files
>> have new versions
>
> You would if upgrading. But you are reinstalling the same version so
> portage assumes you have already dealt with any config updates and don't
> want to be bothered again. 
>
> Remember when we had to go through loads of updates over again when
> revdep-rebuild rebuilt a package with lots of config files. This avoids
> that behaviour, --noconfmem brings it back.

Understood.  Thanks for the explanation.
allan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-17 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16 22:28 [gentoo-user] trouble installing cups gottlieb
2013-09-16 23:39 ` Neil Bothwick
2013-09-17  1:23   ` gottlieb
2013-09-17  9:22     ` Neil Bothwick
2013-09-17 15:17       ` gottlieb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox