Victor Lowther | 1 May 2008 01:38
Picon
Gravatar

Re: symlinks not relative

On Wed, 2008-04-30 at 15:22 -0700, Dan Nicholson wrote:
> On Wed, Apr 30, 2008 at 3:00 PM, Till Maas <opensource <at> till.name> wrote:
> >
> >  currently the symlinks that are created in pm-utils (pm-suspend ->
> >  pm-action, ...) are not relative,. Is it easily possible to change these to
> >  be relative symlinks? This would have the advantage, that they would also
> >  work, when the root file system is mounted somewhere else than /.

Indeed, it would.  To do it nicely would take some shell script hackery
that I have not taken the time to seriously think about (especially the
bit about making it play nice with automake, which is what we would need
to do to make it elegant).

Having the live root file system mounted somewhere other than / is a bit
non-sequitorial to me -- can you flesh out your scenario a bit more?

> I don't know if it's appropriate to add a perl build dependency to
> pm-utils, but I recently stumbled upon this in doing some RPM
> packaging:
> 
> $ perl -e 'use File::Spec; print
> File::Spec->abs2rel("/usr/lib/pm-utils/bin","/usr/sbin"),"\n"'
> ../lib/pm-utils/bin

I would really rather avoid perl if we can.  Any idea how other projects
solve this (if they even try)?  It seems like a common enough
requirement that the autotools probably have some sort of evil hack that
implements it.

> --
(Continue reading)

Michael Biebl | 1 May 2008 01:59
Picon

Re: symlinks not relative

2008/5/1 Till Maas <opensource <at> till.name>:
> Hiyas,
>
>  currently the symlinks that are created in pm-utils (pm-suspend ->
>  pm-action, ...) are not relative,. Is it easily possible to change these to

# ls -al /usr/sbin/pm-*
lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-hibernate ->
../lib/pm-utils/bin/pm-action
-rwxr-xr-x 1 root root 1149 24. Apr 06:51 /usr/sbin/pm-powersave
lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend ->
../lib/pm-utils/bin/pm-action
lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend-hybrid
-> ../lib/pm-utils/bin/pm-action

Am I missing something?

Michael

--

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Michael Biebl | 1 May 2008 02:29
Picon

Re: symlinks not relative

2008/5/1 Michael Biebl <mbiebl <at> gmail.com>:
> 2008/5/1 Till Maas <opensource <at> till.name>:
>
> > Hiyas,
>  >
>  >  currently the symlinks that are created in pm-utils (pm-suspend ->
>  >  pm-action, ...) are not relative,. Is it easily possible to change these to
>
>  # ls -al /usr/sbin/pm-*
>  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-hibernate ->
>  ../lib/pm-utils/bin/pm-action
>  -rwxr-xr-x 1 root root 1149 24. Apr 06:51 /usr/sbin/pm-powersave
>  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend ->
>  ../lib/pm-utils/bin/pm-action
>  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend-hybrid
>  -> ../lib/pm-utils/bin/pm-action

Argh, sorry for the noise.

It's actually a deb packaging helper tool, that transforms absolute
symlinks to relative symlinks to follow the Debian policy.

Michael
--

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Victor Lowther | 1 May 2008 04:19
Picon
Gravatar

Not quite release 1.1.1

At this point, the only thing missing is a bit more documentation
(mainly code comments), and the manpage updates that Michael was working
on.  The patches that have been pushed to master have been good ones
that only needed a bit of rework.

Given those and a bit of testing, and I am ready to call it 1.1.1,
assuming there are some burning features and bugfixes that I missed over
the last month.

--

-- 
Victor Lowther
Ubuntu Certified Professional
Victor Lowther | 1 May 2008 04:20
Picon
Gravatar

Re: symlinks not relative

On Thu, 2008-05-01 at 02:29 +0200, Michael Biebl wrote:
> 2008/5/1 Michael Biebl <mbiebl <at> gmail.com>:
> > 2008/5/1 Till Maas <opensource <at> till.name>:
> >
> > > Hiyas,
> >  >
> >  >  currently the symlinks that are created in pm-utils (pm-suspend ->
> >  >  pm-action, ...) are not relative,. Is it easily possible to change these to
> >
> >  # ls -al /usr/sbin/pm-*
> >  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-hibernate ->
> >  ../lib/pm-utils/bin/pm-action
> >  -rwxr-xr-x 1 root root 1149 24. Apr 06:51 /usr/sbin/pm-powersave
> >  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend ->
> >  ../lib/pm-utils/bin/pm-action
> >  lrwxrwxrwx 1 root root   29 24. Apr 16:03 /usr/sbin/pm-suspend-hybrid
> >  -> ../lib/pm-utils/bin/pm-action
> 
> Argh, sorry for the noise.
> 
> It's actually a deb packaging helper tool, that transforms absolute
> symlinks to relative symlinks to follow the Debian policy.

Do you know which one?  Is it stealable?

> Michael
--

-- 
Victor Lowther
Ubuntu Certified Professional
(Continue reading)

Victor Lowther | 1 May 2008 04:33
Picon
Gravatar

Re: Not quite release 1.1.1

On Wed, 2008-04-30 at 21:19 -0500, Victor Lowther wrote:
> At this point, the only thing missing is a bit more documentation
> (mainly code comments), and the manpage updates that Michael was working
> on.  The patches that have been pushed to master have been good ones
> that only needed a bit of rework.
> 
> Given those and a bit of testing, and I am ready to call it 1.1.1,
> assuming there are some burning features and bugfixes that I missed over
> the last month.

damn typos.  That should be "no burning features" instead of "some
burning features".

--

-- 
Victor Lowther
Ubuntu Certified Professional
Dan Nicholson | 1 May 2008 08:56
Picon

Re: symlinks not relative

On Wed, Apr 30, 2008 at 4:38 PM, Victor Lowther
<victor.lowther <at> gmail.com> wrote:
> On Wed, 2008-04-30 at 15:22 -0700, Dan Nicholson wrote:
>
> > On Wed, Apr 30, 2008 at 3:00 PM, Till Maas <opensource <at> till.name> wrote:
>  > >
>  > >  currently the symlinks that are created in pm-utils (pm-suspend ->
>  > >  pm-action, ...) are not relative,. Is it easily possible to change these to
>  > >  be relative symlinks? This would have the advantage, that they would also
>  > >  work, when the root file system is mounted somewhere else than /.
>
>  Indeed, it would.  To do it nicely would take some shell script hackery
>  that I have not taken the time to seriously think about (especially the
>  bit about making it play nice with automake, which is what we would need
>  to do to make it elegant).
...
>  > $ perl -e 'use File::Spec; print
>  > File::Spec->abs2rel("/usr/lib/pm-utils/bin","/usr/sbin"),"\n"'
>  > ../lib/pm-utils/bin
>
>  I would really rather avoid perl if we can.  Any idea how other projects
>  solve this (if they even try)?  It seems like a common enough
>  requirement that the autotools probably have some sort of evil hack that
>  implements it.

Definitely understandable to avoid the perl, but I can't recall having
seen this anywhere referenced in the autotools. Here's something I
wrote as an RPM macro before I stumbled on the above perl. The
formatting blows due to macro-izing it, and there are no comments, but
maybe it will give you some ideas. It worked on most of the corner
(Continue reading)

Richard Hughes | 6 May 2008 10:56
Picon

[Fwd: [Bug 15840] New: vbe_restoremode() does not work]


From: <bugzilla-daemon <at> freedesktop.org>
Subject: [Bug 15840] New: vbe_restoremode() does not work
Date: 2008-05-06 06:09:14 GMT
http://bugs.freedesktop.org/show_bug.cgi?id=15840

           Summary: vbe_restoremode() does not work
           Product: pm-utils
           Version: unspecified
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: General
        AssignedTo: richard <at> hughsie.com
        ReportedBy: martin.pitt <at> ubuntu.com
                CC: mjg59 <at> srcf.ucam.org

Hi!

In pm-utils 1.10, ./pm/sleep.d/99video has

(Continue reading)

Victor Lowther | 8 May 2008 03:51
Picon
Gravatar

Re: Not quite release 1.1.1

On Wed, 2008-04-30 at 21:19 -0500, Victor Lowther wrote:
> At this point, the only thing missing is a bit more documentation
> (mainly code comments), and the manpage updates that Michael was working
> on.  The patches that have been pushed to master have been good ones
> that only needed a bit of rework.
> 
> Given those and a bit of testing, and I am ready to call it 1.1.1,
> assuming there are some burning features and bugfixes that I missed over
> the last month.

Assuming no large objections crop up, 1.1.1 will release on Saturday,
May 10. 

Please hold off on any large pushes to fd.o master for now.  Small
patches, bugfixes, documentation updates, etc. are fine as long as the
commit message is descriptive.

--

-- 
Victor Lowther
Ubuntu Certified Professional
Victor Lowther | 8 May 2008 03:52
Picon
Gravatar

Re: [Fwd: [Bug 15840] New: vbe_restoremode() does not work]

On Tue, 2008-05-06 at 09:56 +0100, Richard Hughes wrote:
> email message attachment, "Forwarded message - [Bug 15840] New:
> vbe_restoremode() does not work"
> > -------- Forwarded Message --------
> > From: bugzilla-daemon <at> freedesktop.org
> > To: richard <at> hughsie.com
> > Subject: [Bug 15840] New: vbe_restoremode() does not work
> > Date: Mon, 5 May 2008 23:09:14 -0700 (PDT)
> > 
> > http://bugs.freedesktop.org/show_bug.cgi?id=15840
> > 
> >            Summary: vbe_restoremode() does not work
> >            Product: pm-utils
> >            Version: unspecified
> >           Platform: x86 (IA32)
> >         OS/Version: Linux (All)
> >             Status: NEW
> >           Severity: normal
> >           Priority: medium
> >          Component: General
> >         AssignedTo: richard <at> hughsie.com
> >         ReportedBy: martin.pitt <at> ubuntu.com
> >                 CC: mjg59 <at> srcf.ucam.org
> > 
> > 
> > Hi!
> > 
> > In pm-utils 1.10, ./pm/sleep.d/99video has
> > 
> > vbe_savemode() { vbe vbemode get |savestate vbemode; }
(Continue reading)


Gmane