1 |
dilfridge 12/01/27 22:18:20 |
2 |
|
3 |
Modified: ChangeLog cups-1.5.0-r3.ebuild |
4 |
Log: |
5 |
Re-add usb useflag / kernel configuration checks, but only on linux, bug 382675 |
6 |
|
7 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.447 net-print/cups/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.447&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?rev=1.447&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/ChangeLog?r1=1.446&r2=1.447 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v |
19 |
retrieving revision 1.446 |
20 |
retrieving revision 1.447 |
21 |
diff -u -r1.446 -r1.447 |
22 |
--- ChangeLog 27 Jan 2012 21:30:49 -0000 1.446 |
23 |
+++ ChangeLog 27 Jan 2012 22:18:20 -0000 1.447 |
24 |
@@ -1,6 +1,10 @@ |
25 |
# ChangeLog for net-print/cups |
26 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.446 2012/01/27 21:30:49 dilfridge Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.447 2012/01/27 22:18:20 dilfridge Exp $ |
29 |
+ |
30 |
+ 27 Jan 2012; Andreas K. Huettel <dilfridge@g.o> cups-1.5.0-r3.ebuild: |
31 |
+ Re-add usb useflag / kernel configuration checks, but only on linux, bug |
32 |
+ 382675 |
33 |
|
34 |
27 Jan 2012; Andreas K. Huettel <dilfridge@g.o> cups-1.4.8-r1.ebuild, |
35 |
cups-1.4.8-r23.ebuild, cups-1.5.0-r3.ebuild: |
36 |
|
37 |
|
38 |
|
39 |
1.8 net-print/cups/cups-1.5.0-r3.ebuild |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild?rev=1.8&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild?rev=1.8&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild?r1=1.7&r2=1.8 |
44 |
|
45 |
Index: cups-1.5.0-r3.ebuild |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild,v |
48 |
retrieving revision 1.7 |
49 |
retrieving revision 1.8 |
50 |
diff -u -r1.7 -r1.8 |
51 |
--- cups-1.5.0-r3.ebuild 27 Jan 2012 21:30:49 -0000 1.7 |
52 |
+++ cups-1.5.0-r3.ebuild 27 Jan 2012 22:18:20 -0000 1.8 |
53 |
@@ -1,12 +1,12 @@ |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild,v 1.7 2012/01/27 21:30:49 dilfridge Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.5.0-r3.ebuild,v 1.8 2012/01/27 22:18:20 dilfridge Exp $ |
58 |
|
59 |
EAPI=4 |
60 |
|
61 |
PYTHON_DEPEND="python? 2:2.5" |
62 |
|
63 |
-inherit autotools eutils fdo-mime gnome2-utils flag-o-matic multilib pam perl-module python versionator java-pkg-opt-2 |
64 |
+inherit autotools eutils fdo-mime gnome2-utils flag-o-matic linux-info multilib pam perl-module python versionator java-pkg-opt-2 |
65 |
|
66 |
MY_P=${P/_} |
67 |
MY_PV=${PV/_} |
68 |
@@ -54,7 +54,6 @@ |
69 |
usb? ( virtual/libusb:0 ) |
70 |
X? ( x11-misc/xdg-utils ) |
71 |
xinetd? ( sys-apps/xinetd ) |
72 |
- !net-print/cupsddk |
73 |
" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
@@ -82,6 +81,42 @@ |
77 |
python_set_active_version 2 |
78 |
python_pkg_setup |
79 |
fi |
80 |
+ |
81 |
+ if use kernel_linux; then |
82 |
+ linux-info_pkg_setup |
83 |
+ if ! linux_config_exists; then |
84 |
+ ewarn "Can't check the linux kernel configuration." |
85 |
+ ewarn "You might have some incompatible options enabled." |
86 |
+ else |
87 |
+ # recheck that we don't have usblp to collide with libusb |
88 |
+ if use usb; then |
89 |
+ if linux_chkconfig_present USB_PRINTER; then |
90 |
+ eerror "Your usb printers will be managed via libusb. In this case, " |
91 |
+ eerror "${P} requires the USB_PRINTER support disabled." |
92 |
+ eerror "Please disable it:" |
93 |
+ eerror " CONFIG_USB_PRINTER=n" |
94 |
+ eerror "in /usr/src/linux/.config or" |
95 |
+ eerror " Device Drivers --->" |
96 |
+ eerror " USB support --->" |
97 |
+ eerror " [ ] USB Printer support" |
98 |
+ eerror "Alternatively, just disable the usb useflag for cups (your printer will still work)." |
99 |
+ fi |
100 |
+ else |
101 |
+ #here we should warn user that he should enable it so he can print |
102 |
+ if ! linux_chkconfig_present USB_PRINTER; then |
103 |
+ ewarn "If you plan to use USB printers you should enable the USB_PRINTER" |
104 |
+ ewarn "support in your kernel." |
105 |
+ ewarn "Please enable it:" |
106 |
+ ewarn " CONFIG_USB_PRINTER=y" |
107 |
+ ewarn "in /usr/src/linux/.config or" |
108 |
+ ewarn " Device Drivers --->" |
109 |
+ ewarn " USB support --->" |
110 |
+ ewarn " [*] USB Printer support" |
111 |
+ ewarn "Alternatively, enable the usb useflag for cups and use the libusb code." |
112 |
+ fi |
113 |
+ fi |
114 |
+ fi |
115 |
+ fi |
116 |
} |
117 |
|
118 |
src_prepare() { |