* [gentoo-user] emerge custom notes reminders
@ 2018-03-22 15:28 thelma
2018-03-22 16:22 ` Neil Bothwick
2018-03-22 17:11 ` R0b0t1
0 siblings, 2 replies; 14+ messages in thread
From: thelma @ 2018-03-22 15:28 UTC (permalink / raw
To: Gentoo mailing list
Is there a way to add custom notes reminders during emerge or after?
I've upgraded the bin scanner package (from overlay):
brother-scan4-bin-0.4.4-r4
and I receive an email note from emerge:
----
LOG: postinst
You may need to be in the scanner or plugdev group in order to use the
scanner
To add a network scanner to sane, run:
brsaneconfig4 -a name=(name your device) model=(model name) ip=xx.xx.xx.xx
or simply run brsaneconfig4 for more options
----
I didn't pay attention to it as my scanner was already configured.
What it didn't tell me that the upgrade emptied my configuration file:
/opt/brother/scanner/brscan4/brsanenetdevice4.cfg
It is not a Gentoo like behaviour. If there are any changes need to be
made it should be done via: cfgupdate etc. style; not just wipe the
configuration file.
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 15:28 [gentoo-user] emerge custom notes reminders thelma
@ 2018-03-22 16:22 ` Neil Bothwick
2018-03-22 16:36 ` Dale
2018-03-22 17:11 ` R0b0t1
1 sibling, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2018-03-22 16:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
On Thu, 22 Mar 2018 09:28:27 -0600, thelma@sys-concept.com wrote:
> I didn't pay attention to it as my scanner was already configured.
> What it didn't tell me that the upgrade emptied my configuration file:
> /opt/brother/scanner/brscan4/brsanenetdevice4.cfg
>
> It is not a Gentoo like behaviour. If there are any changes need to be
> made it should be done via: cfgupdate etc. style; not just wipe the
> configuration file.
It was overwritten because that directory is not part of CONFIG_PROTECT,
hardly surprising as that is not a standard configuration location. If
the device can't be configured from a file in /etc the ebuild needs to
back up the configuration before installing the new version, so file a
bug with the overlay.
--
Neil Bothwick
One-seventh of your life is spent on Monday.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:22 ` Neil Bothwick
@ 2018-03-22 16:36 ` Dale
2018-03-22 16:41 ` Neil Bothwick
0 siblings, 1 reply; 14+ messages in thread
From: Dale @ 2018-03-22 16:36 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Thu, 22 Mar 2018 09:28:27 -0600, thelma@sys-concept.com wrote:
>
>> I didn't pay attention to it as my scanner was already configured.
>> What it didn't tell me that the upgrade emptied my configuration file:
>> /opt/brother/scanner/brscan4/brsanenetdevice4.cfg
>>
>> It is not a Gentoo like behaviour. If there are any changes need to be
>> made it should be done via: cfgupdate etc. style; not just wipe the
>> configuration file.
> It was overwritten because that directory is not part of CONFIG_PROTECT,
> hardly surprising as that is not a standard configuration location. If
> the device can't be configured from a file in /etc the ebuild needs to
> back up the configuration before installing the new version, so file a
> bug with the overlay.
>
>
Couldn't that location be added in make.conf? As you pointed out, it
shouldn't be there but since it is, maybe protection can be added to
prevent future issues.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:36 ` Dale
@ 2018-03-22 16:41 ` Neil Bothwick
2018-03-22 16:50 ` thelma
2018-03-22 16:51 ` [gentoo-user] " Dale
0 siblings, 2 replies; 14+ messages in thread
From: Neil Bothwick @ 2018-03-22 16:41 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
On Thu, 22 Mar 2018 11:36:37 -0500, Dale wrote:
> > It was overwritten because that directory is not part of
> > CONFIG_PROTECT, hardly surprising as that is not a standard
> > configuration location. If the device can't be configured from a file
> > in /etc the ebuild needs to back up the configuration before
> > installing the new version, so file a bug with the overlay.
> Couldn't that location be added in make.conf? As you pointed out, it
> shouldn't be there but since it is, maybe protection can be added to
> prevent future issues.
I imagine that would prevent the new driver being installed too. The
problem appears to stem from having the binary and configuration file in
the same directory.
--
Neil Bothwick
How do I set my laser printer to stun?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:41 ` Neil Bothwick
@ 2018-03-22 16:50 ` thelma
2018-03-22 16:57 ` Neil Bothwick
2018-03-22 16:51 ` [gentoo-user] " Dale
1 sibling, 1 reply; 14+ messages in thread
From: thelma @ 2018-03-22 16:50 UTC (permalink / raw
To: gentoo-user
On 03/22/2018 10:41 AM, Neil Bothwick wrote:
> On Thu, 22 Mar 2018 11:36:37 -0500, Dale wrote:
>
>>> It was overwritten because that directory is not part of
>>> CONFIG_PROTECT, hardly surprising as that is not a standard
>>> configuration location. If the device can't be configured from a file
>>> in /etc the ebuild needs to back up the configuration before
>>> installing the new version, so file a bug with the overlay.
>
>> Couldn't that location be added in make.conf? As you pointed out, it
>> shouldn't be there but since it is, maybe protection can be added to
>> prevent future issues.
>
> I imagine that would prevent the new driver being installed too. The
> problem appears to stem from having the binary and configuration file in
> the same directory.
I've already notified Chris gentoo@wintermoon.de (I think he maintains it).
Is it possible to protect a single file via make.conf ?
/opt/brother/scanner/brscan4/brsanenetdevice4.cfg
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:41 ` Neil Bothwick
2018-03-22 16:50 ` thelma
@ 2018-03-22 16:51 ` Dale
2018-03-22 17:01 ` thelma
1 sibling, 1 reply; 14+ messages in thread
From: Dale @ 2018-03-22 16:51 UTC (permalink / raw
To: gentoo-user
Neil Bothwick wrote:
> On Thu, 22 Mar 2018 11:36:37 -0500, Dale wrote:
>
>>> It was overwritten because that directory is not part of
>>> CONFIG_PROTECT, hardly surprising as that is not a standard
>>> configuration location. If the device can't be configured from a file
>>> in /etc the ebuild needs to back up the configuration before
>>> installing the new version, so file a bug with the overlay.
>> Couldn't that location be added in make.conf? As you pointed out, it
>> shouldn't be there but since it is, maybe protection can be added to
>> prevent future issues.
> I imagine that would prevent the new driver being installed too. The
> problem appears to stem from having the binary and configuration file in
> the same directory.
>
>
Then there is that. One would think the config file would be in /etc
for a printer/scanner. As you pointed out, that is the logical place
for it to go. I wonder, does the software even look in /etc first and
then in /opt/***? For example, on first use of KDE, it reads a default
file from /usr somewhere and then copies that to the users home
directory. Maybe the driver should or can do that with /etc, instead of
/home of course. In other words, take the file from /opt and stick it
somewhere in /etc that it looks for it and is protected in the future.
Just thinking out loud to see if something pokes a fix that doesn't come
back to bite later. ;-)
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:50 ` thelma
@ 2018-03-22 16:57 ` Neil Bothwick
2018-03-22 17:20 ` [gentoo-user] [SOLVED] " thelma
0 siblings, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2018-03-22 16:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 766 bytes --]
On Thu, 22 Mar 2018 10:50:44 -0600, thelma@sys-concept.com wrote:
> >> Couldn't that location be added in make.conf? As you pointed out, it
> >> shouldn't be there but since it is, maybe protection can be added to
> >> prevent future issues.
> >
> > I imagine that would prevent the new driver being installed too. The
> > problem appears to stem from having the binary and configuration file
> > in the same directory.
>
> I've already notified Chris gentoo@wintermoon.de (I think he maintains
> it).
>
> Is it possible to protect a single file via make.conf ?
> /opt/brother/scanner/brscan4/brsanenetdevice4.cfg
man make.conf says yes.
--
Neil Bothwick
Life is a sexually transmitted disease and the mortality rate is 100%.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 16:51 ` [gentoo-user] " Dale
@ 2018-03-22 17:01 ` thelma
2018-03-22 17:32 ` Dale
0 siblings, 1 reply; 14+ messages in thread
From: thelma @ 2018-03-22 17:01 UTC (permalink / raw
To: gentoo-user
On 03/22/2018 10:51 AM, Dale wrote:
> Neil Bothwick wrote:
>> On Thu, 22 Mar 2018 11:36:37 -0500, Dale wrote:
>>
>>>> It was overwritten because that directory is not part of
>>>> CONFIG_PROTECT, hardly surprising as that is not a standard
>>>> configuration location. If the device can't be configured from a file
>>>> in /etc the ebuild needs to back up the configuration before
>>>> installing the new version, so file a bug with the overlay.
>>> Couldn't that location be added in make.conf? As you pointed out, it
>>> shouldn't be there but since it is, maybe protection can be added to
>>> prevent future issues.
>> I imagine that would prevent the new driver being installed too. The
>> problem appears to stem from having the binary and configuration file in
>> the same directory.
>>
>>
>
> Then there is that. One would think the config file would be in /etc
> for a printer/scanner. As you pointed out, that is the logical place
> for it to go. I wonder, does the software even look in /etc first and
> then in /opt/***? For example, on first use of KDE, it reads a default
> file from /usr somewhere and then copies that to the users home
> directory. Maybe the driver should or can do that with /etc, instead of
> /home of course. In other words, take the file from /opt and stick it
> somewhere in /etc that it looks for it and is protected in the future.
>
> Just thinking out loud to see if something pokes a fix that doesn't come
> back to bite later. ;-)
Here is a link to this ebuild:
https://github.com/stefan-langenmaier/brother-overlay/blob/master/media-gfx/brother-scan4-bin/brother-scan4-bin-0.4.4-r4.ebuild
The installation is done via rpm, that is why.
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 15:28 [gentoo-user] emerge custom notes reminders thelma
2018-03-22 16:22 ` Neil Bothwick
@ 2018-03-22 17:11 ` R0b0t1
2018-03-22 18:00 ` thelma
2018-03-22 18:25 ` Neil Bothwick
1 sibling, 2 replies; 14+ messages in thread
From: R0b0t1 @ 2018-03-22 17:11 UTC (permalink / raw
To: gentoo-user
On Thu, Mar 22, 2018 at 10:28 AM, <thelma@sys-concept.com> wrote:
> Is there a way to add custom notes reminders during emerge or after?
>
What kind of reminders? Perhaps we could have a developer add some
encouraging messages to various packages, or maybe some news items? I
know I could use some encouragement.
I could keep packages in an overlay and write messages to myself, but
I'm not sure it'd work as well.
Cheers,
R0b0t1
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [SOLVED] emerge custom notes reminders
2018-03-22 16:57 ` Neil Bothwick
@ 2018-03-22 17:20 ` thelma
0 siblings, 0 replies; 14+ messages in thread
From: thelma @ 2018-03-22 17:20 UTC (permalink / raw
To: gentoo-user
On 03/22/2018 10:57 AM, Neil Bothwick wrote:
> On Thu, 22 Mar 2018 10:50:44 -0600, thelma@sys-concept.com wrote:
>
>>>> Couldn't that location be added in make.conf? As you pointed out, it
>>>> shouldn't be there but since it is, maybe protection can be added to
>>>> prevent future issues.
>>>
>>> I imagine that would prevent the new driver being installed too. The
>>> problem appears to stem from having the binary and configuration file
>>> in the same directory.
>>
>> I've already notified Chris gentoo@wintermoon.de (I think he maintains
>> it).
>>
>> Is it possible to protect a single file via make.conf ?
>> /opt/brother/scanner/brscan4/brsanenetdevice4.cfg
>
> man make.conf says yes.
Yes, it worked:
CONFIG_PROTECT="/opt/brother/scanner/brscan4/brsanenetdevice4.cfg"
after emerging I got a message:
* IMPORTANT: config file '/opt/brother/scanner/brscan4/brsanenetdevice4.cfg' needs updating.
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 17:01 ` thelma
@ 2018-03-22 17:32 ` Dale
0 siblings, 0 replies; 14+ messages in thread
From: Dale @ 2018-03-22 17:32 UTC (permalink / raw
To: gentoo-user
thelma@sys-concept.com wrote:
> On 03/22/2018 10:51 AM, Dale wrote:
>> Neil Bothwick wrote:
>>> On Thu, 22 Mar 2018 11:36:37 -0500, Dale wrote:
>>>
>>>>> It was overwritten because that directory is not part of
>>>>> CONFIG_PROTECT, hardly surprising as that is not a standard
>>>>> configuration location. If the device can't be configured from a file
>>>>> in /etc the ebuild needs to back up the configuration before
>>>>> installing the new version, so file a bug with the overlay.
>>>> Couldn't that location be added in make.conf? As you pointed out, it
>>>> shouldn't be there but since it is, maybe protection can be added to
>>>> prevent future issues.
>>> I imagine that would prevent the new driver being installed too. The
>>> problem appears to stem from having the binary and configuration file in
>>> the same directory.
>>>
>>>
>> Then there is that. One would think the config file would be in /etc
>> for a printer/scanner. As you pointed out, that is the logical place
>> for it to go. I wonder, does the software even look in /etc first and
>> then in /opt/***? For example, on first use of KDE, it reads a default
>> file from /usr somewhere and then copies that to the users home
>> directory. Maybe the driver should or can do that with /etc, instead of
>> /home of course. In other words, take the file from /opt and stick it
>> somewhere in /etc that it looks for it and is protected in the future.
>>
>> Just thinking out loud to see if something pokes a fix that doesn't come
>> back to bite later. ;-)
> Here is a link to this ebuild:
> https://github.com/stefan-langenmaier/brother-overlay/blob/master/media-gfx/brother-scan4-bin/brother-scan4-bin-0.4.4-r4.ebuild
>
> The installation is done via rpm, that is why.
>
> --
> Thelma
>
>
At least you found a workaround. Still, one would think it would be in
/etc. That tends to be the Linux way of things. At least you found a
solution that prevents it from overwriting your config file. Hopefully
they won't rename the file now. ;-)
Dale
:-) :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 17:11 ` R0b0t1
@ 2018-03-22 18:00 ` thelma
2018-03-22 18:25 ` Neil Bothwick
1 sibling, 0 replies; 14+ messages in thread
From: thelma @ 2018-03-22 18:00 UTC (permalink / raw
To: gentoo-user
On 03/22/2018 11:11 AM, R0b0t1 wrote:
> On Thu, Mar 22, 2018 at 10:28 AM, <thelma@sys-concept.com> wrote:
>> Is there a way to add custom notes reminders during emerge or after?
>>
>
> What kind of reminders? Perhaps we could have a developer add some
> encouraging messages to various packages, or maybe some news items? I
> know I could use some encouragement.
>
> I could keep packages in an overlay and write messages to myself, but
> I'm not sure it'd work as well.
>
> Cheers,
> R0b0t1
A simple additional post installation note:
WARNING: configuration file was wiped out.
run again:
brsaneconfig4 -a name=(name your device) model=(model name) ip=xx.xx.xx.xx
add/or note:
add to make.conf
CONFIG_PROTECT="/opt/brother/scanner/brscan4/brsanenetdevice4.cfg"
Would do the trick.
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 17:11 ` R0b0t1
2018-03-22 18:00 ` thelma
@ 2018-03-22 18:25 ` Neil Bothwick
2018-03-22 19:08 ` thelma
1 sibling, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2018-03-22 18:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
On Thu, 22 Mar 2018 12:11:05 -0500, R0b0t1 wrote:
> > Is there a way to add custom notes reminders during emerge or after?
> >
>
> What kind of reminders? Perhaps we could have a developer add some
> encouraging messages to various packages, or maybe some news items? I
> know I could use some encouragement.
You can add functions to ebuilds in /etc/portage/env/cat/pkg, something
like
post_pkg_postinst() {
elog "Say goodbye to your config file!"
}
--
Neil Bothwick
Just when you got it all figured out: An UPGRADE!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] emerge custom notes reminders
2018-03-22 18:25 ` Neil Bothwick
@ 2018-03-22 19:08 ` thelma
0 siblings, 0 replies; 14+ messages in thread
From: thelma @ 2018-03-22 19:08 UTC (permalink / raw
To: gentoo-user
On 03/22/2018 12:25 PM, Neil Bothwick wrote:
> On Thu, 22 Mar 2018 12:11:05 -0500, R0b0t1 wrote:
>
>>> Is there a way to add custom notes reminders during emerge or after?
>>>
>>
>> What kind of reminders? Perhaps we could have a developer add some
>> encouraging messages to various packages, or maybe some news items? I
>> know I could use some encouragement.
>
> You can add functions to ebuilds in /etc/portage/env/cat/pkg, something
> like
>
> post_pkg_postinst() {
> elog "Say goodbye to your config file!"
> }
Good one, I like it. Will suggest it to the developer :-/
--
Thelma
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2018-03-22 19:08 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22 15:28 [gentoo-user] emerge custom notes reminders thelma
2018-03-22 16:22 ` Neil Bothwick
2018-03-22 16:36 ` Dale
2018-03-22 16:41 ` Neil Bothwick
2018-03-22 16:50 ` thelma
2018-03-22 16:57 ` Neil Bothwick
2018-03-22 17:20 ` [gentoo-user] [SOLVED] " thelma
2018-03-22 16:51 ` [gentoo-user] " Dale
2018-03-22 17:01 ` thelma
2018-03-22 17:32 ` Dale
2018-03-22 17:11 ` R0b0t1
2018-03-22 18:00 ` thelma
2018-03-22 18:25 ` Neil Bothwick
2018-03-22 19:08 ` thelma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox