* [gentoo-user] Switching off a long list of USE flags
@ 2013-09-19 14:14 gevisz
2013-09-19 14:28 ` Yohan Pereira
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: gevisz @ 2013-09-19 14:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
I would like to build sane-backend only for one specific scanner.
However, there are a huge lot of different USE flags for other scanners
that are already switched on by default.
Is there any easy way to switch them off?
Something like:
media-gfx/sane-backends -sane_backends* sane_backends_hp
Exactly that way does not work, but may be something like that...
...instead of directly switching off every one of them.
[-- Attachment #2: Type: text/html, Size: 754 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Switching off a long list of USE flags
2013-09-19 14:14 [gentoo-user] Switching off a long list of USE flags gevisz
@ 2013-09-19 14:28 ` Yohan Pereira
2013-09-19 15:31 ` Frank Steinmetzger
2013-09-19 15:35 ` Wang Xuerui
2013-09-19 15:36 ` Neil Bothwick
2 siblings, 1 reply; 6+ messages in thread
From: Yohan Pereira @ 2013-09-19 14:28 UTC (permalink / raw
To: gentoo-user
On 19/09/13 at 05:14pm, gevisz wrote:
> I would like to build sane-backend only for one specific scanner.
>
> However, there are a huge lot of different USE flags for other scanners
> that are already switched on by default.
>
> Is there any easy way to switch them off?
>
> Something like:
>
> media-gfx/sane-backends -sane_backends* sane_backends_hp
>
> Exactly that way does not work, but may be something like that...
>
> ...instead of directly switching off every one of them.
you can try
media-gfx/sane-backends -* sane_backends_hp <other flags you need>
--
- Yohan Pereira
The difference between a Miracle and a Fact is exactly the difference
between a mermaid and a seal.
-- Mark Twain
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Switching off a long list of USE flags
2013-09-19 14:28 ` Yohan Pereira
@ 2013-09-19 15:31 ` Frank Steinmetzger
0 siblings, 0 replies; 6+ messages in thread
From: Frank Steinmetzger @ 2013-09-19 15:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
On Thu, Sep 19, 2013 at 07:58:05PM +0530, Yohan Pereira wrote:
> > I would like to build sane-backend only for one specific scanner.
> >
> > However, there are a huge lot of different USE flags for other scanners
> > that are already switched on by default.
> >
> > Is there any easy way to switch them off?
> > […]
> > ...instead of directly switching off every one of them.
>
> you can try
>
> media-gfx/sane-backends -* sane_backends_hp <other flags you need>
as eix tells you:
SANE_BACKENDS="+abaton +agfafocus +apple ..."
It’s not just use flags, but an expanding variable. So if you put
SANE_BACKENDS="your device here" into make conf, only the specified
driver will be built. It’s the same principle that goes with VIDEO_CARDS
and LINGUAS, for example.
--
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.
The best secret of all: to be a genius and be the only one to know.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Switching off a long list of USE flags
2013-09-19 14:14 [gentoo-user] Switching off a long list of USE flags gevisz
2013-09-19 14:28 ` Yohan Pereira
@ 2013-09-19 15:35 ` Wang Xuerui
2013-09-19 17:36 ` gevisz
2013-09-19 15:36 ` Neil Bothwick
2 siblings, 1 reply; 6+ messages in thread
From: Wang Xuerui @ 2013-09-19 15:35 UTC (permalink / raw
To: gentoo-user
2013/9/19 gevisz <gevisz@gmail.com>:
> I would like to build sane-backend only for one specific scanner.
>
> However, there are a huge lot of different USE flags for other scanners
> that are already switched on by default.
>
> Is there any easy way to switch them off?
>
> Something like:
>
> media-gfx/sane-backends -sane_backends* sane_backends_hp
>
> Exactly that way does not work, but may be something like that...
>
> ...instead of directly switching off every one of them.
According to the Package Manager Specification, the variable should
not be incremental, i.e. any value set would override *any* defaults
or previously set values. So just do SANE_BACKENDS="xxx" in your
make.conf, same as what you'd do for VIDEO_CARDS and the like.
Hope it helps :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Switching off a long list of USE flags
2013-09-19 14:14 [gentoo-user] Switching off a long list of USE flags gevisz
2013-09-19 14:28 ` Yohan Pereira
2013-09-19 15:35 ` Wang Xuerui
@ 2013-09-19 15:36 ` Neil Bothwick
2 siblings, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2013-09-19 15:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]
On Thu, 19 Sep 2013 17:14:02 +0300, gevisz wrote:
> I would like to build sane-backend only for one specific scanner.
>
> However, there are a huge lot of different USE flags for other scanners
> that are already switched on by default.
>
> Is there any easy way to switch them off?
Yes, switch on the one you want. The only time all the backends are
enabled are when SANE_BACKENDS is not defined. Set that to the scanner
you have in make.conf and that is all you will get.
--
Neil Bothwick
NOTE: In order to control energy costs the light at the end
of the tunnel has been shut off until further notice...
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Switching off a long list of USE flags
2013-09-19 15:35 ` Wang Xuerui
@ 2013-09-19 17:36 ` gevisz
0 siblings, 0 replies; 6+ messages in thread
From: gevisz @ 2013-09-19 17:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
2013/9/19 Wang Xuerui <idontknw.wang@gmail.com>
> 2013/9/19 gevisz <gevisz@gmail.com>:
> > I would like to build sane-backend only for one specific scanner.
> >
> > However, there are a huge lot of different USE flags for other scanners
> > that are already switched on by default.
> >
> > Is there any easy way to switch them off?
> >
> > Something like:
> >
> > media-gfx/sane-backends -sane_backends* sane_backends_hp
> >
> > Exactly that way does not work, but may be something like that...
> >
> > ...instead of directly switching off every one of them.
>
> According to the Package Manager Specification, the variable should
> not be incremental, i.e. any value set would override *any* defaults
> or previously set values. So just do SANE_BACKENDS="xxx" in your
> make.conf, same as what you'd do for VIDEO_CARDS and the like.
>
> Hope it helps :)
>
Yes,
SANE_BACKENDS="hp"
works,
SANE_BACKENDS="+hp3500"
does not.
Thank you for all who replied.
[-- Attachment #2: Type: text/html, Size: 1629 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-09-19 17:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 14:14 [gentoo-user] Switching off a long list of USE flags gevisz
2013-09-19 14:28 ` Yohan Pereira
2013-09-19 15:31 ` Frank Steinmetzger
2013-09-19 15:35 ` Wang Xuerui
2013-09-19 17:36 ` gevisz
2013-09-19 15:36 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox