All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add alternatives for lastb
@ 2015-04-20 15:07 Bryan Evenson
  2015-04-20 15:07 ` [PATCH 1/2] sysvinit: Add lastb to alternatives Bryan Evenson
  2015-04-20 15:07 ` [PATCH 2/2] util-linux: " Bryan Evenson
  0 siblings, 2 replies; 5+ messages in thread
From: Bryan Evenson @ 2015-04-20 15:07 UTC (permalink / raw)
  To: Openembedded-core

Both sysvinit and util-linux create lastb as a softlink to last.  However,
neither package references lastb in their alternatives list.  As a result,
package managers may not upgrade either package unless they are specifically
told to upgrade anyway.

Add lastb to the alternatives list for both sysvinit and util-linux so
package managers will upgrade both packages without conflict.

Bryan Evenson (2):
  sysvinit: Add lastb to alternatives
  util-linux: Add lastb to alternatives

 meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 2 +-
 meta/recipes-core/util-linux/util-linux.inc    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.1.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] sysvinit: Add lastb to alternatives
  2015-04-20 15:07 [PATCH 0/2] Add alternatives for lastb Bryan Evenson
@ 2015-04-20 15:07 ` Bryan Evenson
  2015-04-20 15:07 ` [PATCH 2/2] util-linux: " Bryan Evenson
  1 sibling, 0 replies; 5+ messages in thread
From: Bryan Evenson @ 2015-04-20 15:07 UTC (permalink / raw)
  To: Openembedded-core

SysVinit creates lastb as a symlink to last during the build.
Just as other applications may provide last, other applications
may provide lastb.

Add alternatives designations for lastb to avoid installation
conflicts with other applications.

Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
---
 meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
index 00d3333..2c7e3ce 100644
--- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
@@ -29,7 +29,7 @@ B = "${S}/src"
 inherit update-alternatives
 DEPENDS_append = " update-rc.d-native base-passwd"
 
-ALTERNATIVE_${PN} = "init mountpoint halt reboot runlevel shutdown poweroff last mesg utmpdump wall"
+ALTERNATIVE_${PN} = "init mountpoint halt reboot runlevel shutdown poweroff last lastb mesg utmpdump wall"
 
 ALTERNATIVE_PRIORITY = "200"
 
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] util-linux: Add lastb to alternatives
  2015-04-20 15:07 [PATCH 0/2] Add alternatives for lastb Bryan Evenson
  2015-04-20 15:07 ` [PATCH 1/2] sysvinit: Add lastb to alternatives Bryan Evenson
@ 2015-04-20 15:07 ` Bryan Evenson
  2015-04-20 15:11   ` Richard Purdie
  1 sibling, 1 reply; 5+ messages in thread
From: Bryan Evenson @ 2015-04-20 15:07 UTC (permalink / raw)
  To: Openembedded-core

util-linux creates lastb as a symlink to last during the build.
Just as other applications may provide last, other applications
may provide lastb.

Add alternatives designations for lastb to avoid installation
conflicts with other applications.

Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
---
 meta/recipes-core/util-linux/util-linux.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 2c299e8..78cff02 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -168,7 +168,7 @@ inherit update-alternatives
 ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_${PN}  = "dmesg kill more mkswap blockdev pivot_root switch_root"
-ALTERNATIVE_${PN} += "mkfs.minix hexdump last logger mesg renice wall"
+ALTERNATIVE_${PN} += "mkfs.minix hexdump last lastb logger mesg renice wall"
 ALTERNATIVE_${PN} += "setsid chrt flock utmpdump eject getopt sulogin"
 
 ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg"
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] util-linux: Add lastb to alternatives
  2015-04-20 15:07 ` [PATCH 2/2] util-linux: " Bryan Evenson
@ 2015-04-20 15:11   ` Richard Purdie
  2015-04-20 15:27     ` Bryan Evenson
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2015-04-20 15:11 UTC (permalink / raw)
  To: Bryan Evenson; +Cc: Openembedded-core

On Mon, 2015-04-20 at 11:07 -0400, Bryan Evenson wrote:
> util-linux creates lastb as a symlink to last during the build.
> Just as other applications may provide last, other applications
> may provide lastb.
> 
> Add alternatives designations for lastb to avoid installation
> conflicts with other applications.
> 
> Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
> ---
>  meta/recipes-core/util-linux/util-linux.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Doesn't appear to apply against master?

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] util-linux: Add lastb to alternatives
  2015-04-20 15:11   ` Richard Purdie
@ 2015-04-20 15:27     ` Bryan Evenson
  0 siblings, 0 replies; 5+ messages in thread
From: Bryan Evenson @ 2015-04-20 15:27 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Openembedded-core@lists.openembedded.org

Richard,

> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> Sent: Monday, April 20, 2015 11:12 AM
> To: Bryan Evenson
> Cc: Openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 2/2] util-linux: Add lastb to alternatives
> 
> On Mon, 2015-04-20 at 11:07 -0400, Bryan Evenson wrote:
> > util-linux creates lastb as a symlink to last during the build.
> > Just as other applications may provide last, other applications may
> > provide lastb.
> >
> > Add alternatives designations for lastb to avoid installation
> > conflicts with other applications.
> >
> > Signed-off-by: Bryan Evenson <bevenson@melinkcorp.com>
> > ---
> >  meta/recipes-core/util-linux/util-linux.inc | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Doesn't appear to apply against master?
> 

Sorry, there a few recent commits to util-linux on master that I had missed.

One of the commits is doing something similar for lastb, but only for the man page and not for the executable.  I'll check with those involved with the last few util-linux commits to see if they already have a commit in the works that includes the same changes as mine.

Regards,
Bryan

> Cheers,
> 
> Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-20 15:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 15:07 [PATCH 0/2] Add alternatives for lastb Bryan Evenson
2015-04-20 15:07 ` [PATCH 1/2] sysvinit: Add lastb to alternatives Bryan Evenson
2015-04-20 15:07 ` [PATCH 2/2] util-linux: " Bryan Evenson
2015-04-20 15:11   ` Richard Purdie
2015-04-20 15:27     ` Bryan Evenson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.