Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Downgrading to cups-1.5.3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 10:29 am    Post subject: [SOLVED] Downgrading to cups-1.5.3 Reply with quote

My central print-server just does not advertise its printers to cups clients running 1.5.3 anymore. I need to downgrade it from 1.6.4 to 1.5.3 as I would have, for reasons I do not want to bother you with, to make a complete newinstall of 150 boxes just to raise them to 1.6.4
eix net-print/cups says:
Code:

* net-print/cups
     Available versions:  ~*1.5.3^t [m]1.6.2-r5^t [m]1.6.4^t{tbz2} [m]**1.6.9999^t [m]~1.7.0^t [M]**9999^t {X acl avahi dbus debug +filters gnutls java +jpeg kerberos ldap lprng-compat pam perl +png python selinux slp +ssl static-libs systemd +threads +tiff usb xinetd zeroconf ELIBC="FreeBSD" LINGUAS="+ca (+)es +fr hu +it +ja +ru" PYTHON_SINGLE_TARGET="python2_6 python2_7" PYTHON_TARGETS="python2_6 python2_7"}
     Homepage:            http://www.cups.org/
     Description:         The Common Unix Printing System

How can I get 1.5.3 again. I have already masked 1.6.4 but I can not find out how to tell emerge to pull 1.5.3 instead. I have an unmask-entry of
=net-print/cups-1.5.3. This does not work emerge still looks for 1.6.4, telling me to unmask it.
What does '~*' mean?


Last edited by AgBr on Wed Dec 18, 2013 10:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 11:04 am    Post subject: Reply with quote

I think that 1.5.3 is masked to only work on ~m68k

I had copied the old 1.5.2-r4 ebuild over to my local portage a while back and masked anything above it.
You should be able to find it in the gentoo attic.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 12:30 pm    Post subject: Reply with quote

Anon-E-moose wrote:
I think that 1.5.3 is masked to only work on ~m68k

I had copied the old 1.5.2-r4 ebuild over to my local portage a while back and masked anything above it.
You should be able to find it in the gentoo attic.

Thank you for your answer. Excuse my ignorance, I never had this kind of problem. I found a file cups-1.5.2-r4.bin with the contents of the respective ebuild-file. I gues it should be simply renamed to *.ebuild. There should be a directory 'files' which contents, as far as I understand, should reside in net-print/cups too. Can I just rely on the content of the original net-print/cups/files? Or where should I get these files?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 1:05 pm    Post subject: Reply with quote

These files get pulled in by the cups ebuild I use

Quote:
cups-1.4.4-dont-compress-manpages.patch
cups-1.4.4-fix-install-perms.patch
cups-1.4.4-nostrip.patch
cups-1.4.4-perl-includes.patch
cups-1.4.4-php-destdir.patch
cups-1.5.2-browsing.patch
cups-1.5.2-linkperl.patch
cups-1.5.2-threads2.patch
cups-1.5.2-threads.patch


two others that end in bz2 should get pulled in by the ebuild if they are still being hosted.

I just looked and not all of them are still in the normal cups/files directory.

I'm not sure what's in the .bin file it may have the patches, if so then put them in the net-printcups/files directory on your local portage tree. But usually .bin files are shell script wrapped around tar/cpio files. You would have to run it to see what is in it.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 1:32 pm    Post subject: Reply with quote

Alright. I have created a local overlay. eix net-print/cups shows:

Code:

eix net-print/cups
* net-print/cups
     Available versions:  1.5.2-r4^t[1] ~*1.5.3^t [m]1.6.2-r5^t [m]1.6.4^t{tbz2} [m]**1.6.9999^t [m]~1.7.0^t [M]**9999^t {X acl avahi dbus debug +filters gnutls java +jpeg kerberos ldap lprng-compat pam perl +png python selinux slp +ssl static-libs systemd +threads +tiff usb xinetd zeroconf ELIBC="FreeBSD" LINGUAS="+ca da de (+)es eu fi (+)fr hu id (+)it (+)ja ko nl no pl pt pt_BR (+)ru sv zh zh_TW" PYTHON_SINGLE_TARGET="python2_6 python2_7" PYTHON_TARGETS="python2_6 python2_7"}
     Homepage:            http://www.cups.org/
     Description:         The Common Unix Printing System

[irrelevant output deleted]

[1] "bbs1-attic" /usr/local/portage/overlay

Further I have in /etc/portage/package/mask/cups: '>=net-print/cups-1.6'
in /etc/portage/package.unmask/cups: '=net-print/cups-1.5.2-r4'
equery depends net-print/cups shows:
Code:

app-admin/system-config-printer-common-1.4.3 (net-print/cups[dbus])
app-emulation/wine-1.6 (cups ? net-print/cups)
app-office/libreoffice-4.1.2.3 (cups ? net-print/cups)
app-text/acroread-9.5.5 (cups ? net-print/cups)
app-text/ghostscript-gpl-9.05-r1 (cups ? >=net-print/cups-1.3.8)
dev-java/icedtea-bin-6.1.12.7 (cups ? >=net-print/cups-1.4)
dev-python/pycups-1.9.63 (net-print/cups)
dev-qt/qtgui-4.8.5-r1 (cups ? net-print/cups)
kde-base/print-manager-4.11.2 (>=net-print/cups-1.5.0[dbus])
net-fs/samba-3.6.20 (cups ? net-print/cups)
net-misc/freerdp-1.1.0_beta1_p20130710 (cups ? net-print/cups)
net-misc/nxclient-3.5.0.7 (cups ? net-print/cups)
net-print/gutenprint-5.2.9 (cups ? >=net-print/cups-1.1.14)
net-print/hplip-3.12.10a (!minimal ? >=net-print/cups-1.4.0)
net-wireless/bluez-4.101-r7 (cups ? net-print/cups)
www-client/chromium-31.0.1650.63 (cups ? >=net-print/cups-1.3.11)
x11-libs/gtk+-2.24.22 (cups ? net-print/cups)
x11-libs/gtk+-3.8.7 (cups ? >=net-print/cups-1.2)

As you see, there are no dependencies on newer versions than 1.5.0
But calling emerge -a net-print/cups shows:
Code:

Calculating dependencies... done!
[binary  N    #] net-print/cups-1.6.4  USE="X acl dbus filters gnutls pam ssl threads usb zeroconf -debug -java -kerberos -lprng-compat -python (-selinux) -static-libs -xinetd" LINGUAS="-ca -es -fr -ja -ru" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 0 kB
[binary  N     ] net-print/cups-filters-1.0.36-r1  USE="jpeg png tiff zeroconf -perl -static-libs" 0 kB
[binary  N     ] net-print/foomatic-filters-4.0.17  USE="cups dbus" 0 kB

Total: 3 packages (3 new, 3 binaries), Size of downloads: 0 kB

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by net-print/cups-filters-1.0.36-r1
# /etc/portage/package.mask/cups:
=net-print/cups-1.6.4

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.


I am lost here. Why for heavens sake is it insisting on 1.6.4?
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1631
Location: United Kingdom

PostPosted: Wed Dec 18, 2013 1:51 pm    Post subject: Reply with quote

cups-filters ebuild includes the following in RDEPEND:
Code:
>net-print/cups-1.5.9999
!<=net-print/cups-1.5.9999

Perhaps you need to mask cups-filters and uninstall it if you have it installed?
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 1:51 pm    Post subject: Reply with quote

I use gutenprint not cups-filters/foomatic

I also added the -filters flag to package.use for cups, it should block foomatic which pulls in cups-filters
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 2:09 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
cups-filters ebuild includes the following in RDEPEND:
Code:
>net-print/cups-1.5.9999
!<=net-print/cups-1.5.9999

Perhaps you need to mask cups-filters and uninstall it if you have it installed?


cups-filters and foomatic-filters are not installed. emerge wants to install them as dependencies of cups-1.6.4
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 4:45 pm    Post subject: Reply with quote

Some of the needed patch from 'files' I did find in an old archive of my build environment. But then I ran into
an error, as emerge didn't find

/usr/local/portage/overlay/net-print/cups/files/cups-1.5.2-threads.patch

So, as I expected, having the *.ebuild is not sufficient to run emerge. I will need all the patches in "files". Do these exist anywhere on the net?

Additionaly it tries to install
Code:


* Messages for package net-print/hplip-3.12.10a:

 * emerge --keep-going: net-print/hplip-3.12.10a dropped because it requires
 * >=net-print/cups-1.4.0, >=net-print/cups-1.4.0

 * Messages for package net-print/foomatic-filters-4.0.17:

 * emerge --keep-going: net-print/foomatic-filters-4.0.17 dropped because it
 * requires net-print/cups-filters, >=net-print/cups-1.6.0, net-print/cups-
 * filters, >=net-print/cups-1.6.0

 * Messages for package net-print/foomatic-filters-ppds-20070501:

 * emerge --keep-going: net-print/foomatic-filters-ppds-20070501 dropped
 * because it requires net-print/foomatic-filters
 *
 * The following 4 packages have failed to build or install:
 *
 *  (net-print/cups-1.5.2-r4::bbs1-attic, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/net-print/cups-1.5.2-r4/temp/build.log'
 *  (net-print/hplip-3.12.10a::gentoo, ebuild scheduled for merge)
 *  (net-print/foomatic-filters-4.0.17::gentoo, ebuild scheduled for merge)
 *  (net-print/foomatic-filters-ppds-20070501::gentoo, ebuild scheduled for merge)

As you can see, emerge does not care about 'net-print/cups -filters' in package.use and foomatic-filters needs >=net-print/cups-1.6.0.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2509
Location: Canada

PostPosted: Wed Dec 18, 2013 5:12 pm    Post subject: Re: Downgrading to cups-1.5.3 Reply with quote

AgBr wrote:
My central print-server just does not advertise its printers to cups clients running 1.5.3 anymore.


Didi you install and run cups-browsed, which is supposed to do advertizing with CUPS protocol ?
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 5:18 pm    Post subject: Re: Downgrading to cups-1.5.3 Reply with quote

dmpogo wrote:
AgBr wrote:
My central print-server just does not advertise its printers to cups clients running 1.5.3 anymore.


Didi you install and run cups-browsed, which is supposed to do advertizing with CUPS protocol ?

Yes, I did and it is running. But as I understand it cups-browsed is needed to find printers not to advertize them. There is just no support for avertizing printers over udp anymore in >=1.6. Apple does not need it as they are using bonjour. Linux complement is avahi, which >=1.6 on Linux makes use of
EDIT: I must admit that I didn't realize that cups-browsed is working in both directions. I just checked cups-browsed.conf (all comments removed):
Code:


BrowseRemoteProtocols DNSSD,CUPS

BrowseProtocols DNSSD,CUPS
BrowseAllow all

I realize BrowseRemoteProtocols and BrowseProtocols should be redundant. But it should not do any harm to have them both.
But it definitely does not work with clients running 1.5.2-r4
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 8:16 pm    Post subject: Reply with quote

AgBr wrote:
Some of the needed patch from 'files' I did find in an old archive of my build environment. But then I ran into
an error, as emerge didn't find

/usr/local/portage/overlay/net-print/cups/files/cups-1.5.2-threads.patch

So, as I expected, having the *.ebuild is not sufficient to run emerge. I will need all the patches in "files". Do these exist anywhere on the net?


For 1.5.2-r4 you need

Quote:
cups-1.4.4-dont-compress-manpages.patch
cups-1.4.4-fix-install-perms.patch
cups-1.4.4-nostrip.patch
cups-1.4.4-perl-includes.patch
cups-1.4.4-php-destdir.patch
cups-1.5.2-browsing.patch
cups-1.5.2-linkperl.patch
cups-1.5.2-threads2.patch
cups-1.5.2-threads.patch


These exist in /usr/portage/net-print/cups/files
Quote:
cups-1.4.4-dont-compress-manpages.patch
cups-1.4.4-nostrip.patch
cups-1.4.4-perl-includes.patch
cups-1.4.4-php-destdir.patch
cups-1.5.2-browsing.patch
cups-1.5.2-linkperl.patch


I'm guessing you need
Quote:
cups-1.4.4-fix-install-perms.patch
cups-1.5.2-threads2.patch
cups-1.5.2-threads.patch


You also need these two
Quote:
/usr/portage/distfiles/cups-1.5.2-avahi.patch.bz2
/usr/portage/distfiles/cups-1.5.2-ipp-r8950.patch.bz2


I've got them on my system, but I don't run a web server anymore to transfer files and I don't use ftp.
I'm not sure where to put them so that you can get them.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 8:40 pm    Post subject: Reply with quote

All files I could retrieve are:
Code:

cups-1.4.0-backend-https.patch
cups-1.4.2-str3200.patch
cups-1.4.4-dont-compress-manpages.patch
cups-1.4.4-fix-install-perms.patch
cups-1.4.4-nostrip.patch
cups-1.4.4-perl-includes.patch
cups-1.4.4-php-destdir.patch
cups-1.4.6-force-gnutls.patch
cups-1.4.6-serialize-gnutls.patch
cups-1.4.8-CVE-2011-3170.patch
cups-1.4.8-largeimage.patch
cups-1.5.0-systemd-socket-2.patch
cups-1.5.0-systemd-socket.patch
cups-1.5.2-browsing.patch
cups-1.5.2-linkperl.patch
cups-1.5.3-fix-install-perms.patch
cups-1.6.0-dont-compress-manpages.patch
cups-1.6.0-fix-install-perms.patch
cups-1.6.2-statedir.patch
cups-1.6.3-colord-profile.patch
cupsd.init.d
cupsd.init.d-r1
pdftops-1.20.gentoo

of which the files >=1.5.3 I don't I suppose. Don't know if the last three are use, they are rather old. I wonder why I have such old files but the ones for 1.5.2 are missing
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 9:10 pm    Post subject: Reply with quote

Many thanks to Anon-E-moose who sent me most of the needed files.
I even got a cups-1.5.2-threads2.patch but emerge still asks for cups-1.5.2-threads.patch which hasn't been in the archive Anon-E-moose sent to me.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 9:16 pm    Post subject: Reply with quote

It should be there, it shows up on my end.

Code:
tar tvzf cups-dir.tgz ./files/cups-1.5.2-threads.patch
-rw-r--r-- me/me         730 2012-04-23 17:16 ./files/cups-1.5.2-threads.patch


This is what's in cups-1.5.2-threads.patch

Code:
Index: cups/thread-private.h
===================================================================
--- cups/thread-private.h   (Revision 10432)
+++ cups/thread-private.h   (Revision 10433)
@@ -49,7 +49,7 @@
 typedef void *(__stdcall *_cups_thread_func_t)(void *arg);
 typedef struct _cups_mutex_s
 {
-  int         m_init;      /* Flag for on-demand initialization */      
+  int         m_init;      /* Flag for on-demand initialization */
   CRITICAL_SECTION   m_criticalSection;
                /* Win32 Critical Section */
 } _cups_mutex_t;
@@ -62,6 +62,7 @@
 #    define _cupsThreadSetData(k,p) TlsSetValue(k,p)
 
 #  else
+typedef void   *(*_cups_thread_func_t)(void *arg);
 typedef char   _cups_mutex_t;
 typedef char   _cups_rwlock_t;
 typedef void   *_cups_threadkey_t;

_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 9:30 pm    Post subject: Reply with quote

Anon-E-moose wrote:
It should be there, it shows up on my end.

Code:
tar tvzf cups-dir.tgz ./files/cups-1.5.2-threads.patch
-rw-r--r-- me/me         730 2012-04-23 17:16 ./files/cups-1.5.2-threads.patch

funny
Code:

faramir net-print # tar tvf cups-dir.tgz
drwxr-xr-x don/don           0 2013-12-18 20:57 ./
-rw-r--r-- don/don        7130 2013-12-18 20:57 ./Manifest
drwxr-xr-x don/don           0 2013-12-18 20:58 ./files/
-rw-r--r-- don/don         724 2012-04-19 22:22 ./files/cups-1.5.2-linkperl.patch
-rw-r--r-- don/don         580 2010-09-11 14:10 ./files/cups-1.4.4-dont-compress-manpages.patch
-rw-r--r-- don/don         730 2012-04-24 00:16 ./files/cups-1.5.2-threads.patch
-rw-r--r-- don/don         637 2010-09-12 19:19 ./files/cups-1.4.4-perl-includes.patch
-rw-r--r-- don/don         402 2012-01-15 21:19 ./files/cupsd.init.d
-rw-r--r-- don/don         487 2010-09-11 14:10 ./files/cups-1.4.4-nostrip.patch
-rw-r--r-- don/don         513 2012-04-19 00:17 ./files/cups-1.5.2-browsing.patch
-rw-r--r-- don/don         679 2010-09-11 14:10 ./files/cups-1.4.4-php-destdir.patch
-rw-r--r-- don/don        3192 2012-04-24 00:16 ./files/cups-1.5.2-threads2.patch
-rw-r--r-- don/don         838 2010-09-11 14:10 ./files/cups-1.4.4-fix-install-perms.patch
-rw-r--r-- don/don       10412 2007-12-18 21:57 ./files/pdftops-1.20.gentoo
-rw-r--r-- don/don         394 2013-04-02 00:21 ./files/cupsd.init.d-r1
-rw-r--r-- don/don        8363 2013-03-24 22:01 ./cups-1.5.2-r4.ebuild


But don't worry I got it from someone else meanwhile. Again, thank you for your help
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3690
Location: Dallas area

PostPosted: Wed Dec 18, 2013 9:34 pm    Post subject: Reply with quote

If it works then edit the title in the opening post and add "SOLVED" to it.

Glad to help.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Wed Dec 18, 2013 9:41 pm    Post subject: Reply with quote

Anon-E-moose wrote:
If it works then edit the title in the opening post and add "SOLVED" to it.

Glad to help.


I am just waiting on the build to finish
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum