octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] rpm packaging of octave packages


From: Orion Poplawski
Subject: Re: [OctDev] rpm packaging of octave packages
Date: Tue, 21 Dec 2010 22:03:55 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 12/21/2010 4:01 PM, Søren Hauberg wrote:
Hi

tir, 21 12 2010 kl. 15:50 -0700, skrev Orion Poplawski:
I'm starting to take a look at creating a standard method of building rpms of
octave packages for Fedora.  I'm starting with the old octave-forge package as
a starting point.
I don't really know that much about RPM's, so I can't offer much helpful
insight. David Bateman did some work on autogenerating RPM spec files
for packages. Did you look at this?

I suspect that his work is the basis for much of what is already in place, and what I'm basing my current templates on.
Although, now that I look at the octave-forge repo, I don't see a single
package that has an on_unistall.m file.  Could we reserve this for distro use?
Can't you just add an 'on_rpm_uninstall.m' and do a

   echo "on_rpm_uninstall">>  on_uninstall.m

to ensure that this script is called?

That may be a bit simpler to implement.  Thanks.
Finally, when a user tries to remove and rpm install octave package, they get:

octave:3>  pkg uninstall octcdf
warning: some of the packages you want to uninstall are not installed

which does not seem correct.
Hmm, I guess we should check if the package in question is installed by
'root' and adapt the error message accordingly. We could say something
like: "warning: you do not have the necessary privileges to remove
package 'XXX'". Could you open a bug report on http://bugs.octave.org
for this?

Søren
Done: https://savannah.gnu.org/bugs/index.php?31946

- Orion


reply via email to

[Prev in Thread] Current Thread [Next in Thread]