* [gentoo-user] Metalog & runscript
@ 2016-12-04 6:18 Andrew Lowe
2016-12-04 6:40 ` Simon Thelen
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lowe @ 2016-12-04 6:18 UTC (permalink / raw
To: gentoo-user
Hi all,
I'm still getting the warning during boot about metalog using runscript
during the boot process. I decided to track things down and see what was
going on. My first stop was bugs.gentoo.org where there is this one:
https://bugs.gentoo.org/show_bug.cgi?id=581926
Upon reading this, I would have thought that the ebuild had been
updated with the supplied patch by the developers. I looked at the
ebuild on my machine and it still is the "older" one.
Packages.gentoo.org has the same ebuild as me.
Has something just fallen through the cracks and things should have
been "officially" updated or do I need to apply this patch myself?
Thoughts?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Metalog & runscript
2016-12-04 6:18 [gentoo-user] Metalog & runscript Andrew Lowe
@ 2016-12-04 6:40 ` Simon Thelen
2016-12-04 6:56 ` Alexander Kapshuk
0 siblings, 1 reply; 3+ messages in thread
From: Simon Thelen @ 2016-12-04 6:40 UTC (permalink / raw
To: gentoo-user
On 16-12-04 at 14:18, Andrew Lowe wrote:
> Hi all,
> I'm still getting the warning during boot about metalog using runscript
> during the boot process. I decided to track things down and see what was
> going on. My first stop was bugs.gentoo.org where there is this one:
>
> https://bugs.gentoo.org/show_bug.cgi?id=581926
>
> Upon reading this, I would have thought that the ebuild had been
> updated with the supplied patch by the developers. I looked at the
> ebuild on my machine and it still is the "older" one.
> Packages.gentoo.org has the same ebuild as me.
>
> Has something just fallen through the cracks and things should have
> been "officially" updated or do I need to apply this patch myself?
The patch was applied to the initscript, but the ebuild was not
revbumped. You'll have to reinstall the package to get the new
initscript. You can rebuild all packages that use /sbin/runscript with:
`emerge --oneshot -av $(grep -l '/sbin/runscript' /etc/init.d/*)'
This was mentioned in a newsitem draft on gentoo-dev, but as far as I
can tell that newsitem was never published.
--
Simon Thelen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Metalog & runscript
2016-12-04 6:40 ` Simon Thelen
@ 2016-12-04 6:56 ` Alexander Kapshuk
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kapshuk @ 2016-12-04 6:56 UTC (permalink / raw
To: Gentoo mailing list
On Sun, Dec 4, 2016 at 8:40 AM, Simon Thelen <gentoo-user@c-14.de> wrote:
> On 16-12-04 at 14:18, Andrew Lowe wrote:
>> Hi all,
>> I'm still getting the warning during boot about metalog using runscript
>> during the boot process. I decided to track things down and see what was
>> going on. My first stop was bugs.gentoo.org where there is this one:
>>
>> https://bugs.gentoo.org/show_bug.cgi?id=581926
>>
>> Upon reading this, I would have thought that the ebuild had been
>> updated with the supplied patch by the developers. I looked at the
>> ebuild on my machine and it still is the "older" one.
>> Packages.gentoo.org has the same ebuild as me.
>>
>> Has something just fallen through the cracks and things should have
>> been "officially" updated or do I need to apply this patch myself?
> The patch was applied to the initscript, but the ebuild was not
> revbumped. You'll have to reinstall the package to get the new
> initscript. You can rebuild all packages that use /sbin/runscript with:
> `emerge --oneshot -av $(grep -l '/sbin/runscript' /etc/init.d/*)'
> This was mentioned in a newsitem draft on gentoo-dev, but as far as I
> can tell that newsitem was never published.
>
> --
> Simon Thelen
>
I ended up writing an ed(1) script below to edit the init scripts affected:
sed '
/convert/!d
s:^[^/]*::
s: .*::
' /var/log/rc.log |
sort -u |
while read file
do
echo e $file
echo w $HOME/tmp/`basename $file`.runscript
echo g/runscript/s//openrc-run/
echo w
done | ed -
Running the script above without piping it through to ed first prints
the editing commands that would be run without actually running them.
The script below runs the diff on the original files that have been
backed up by the script above and the ones just been edited.
ls $HOME/tmp/*.runscript |
sed '
s/^/diff -u /
h
s:.*/\(.*\)\..*:/etc/init.d/\1:
H
g
y/\n/ /
' | sh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-04 6:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-04 6:18 [gentoo-user] Metalog & runscript Andrew Lowe
2016-12-04 6:40 ` Simon Thelen
2016-12-04 6:56 ` Alexander Kapshuk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox