l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
January 6: Social gathering
Next Installfest:
TBD
Latest News:
Nov. 18: Club officer elections
Page last updated:
2002 Aug 28 09:50

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] debian question: building from source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] debian question: building from source



On Tue, Aug 27, 2002 at 08:42:43PM -0700, Peter Jay Salzman wrote:
> hola,
> 
> i'm planning on building mozilla from source (i already installed and
> configed pentium builder).
> 
> one question.
> 
> i'm 100% positive that the day i install the optimized version of
> mozilla, mozilla will get upgraded and my optimized version will get
> wiped.
> 
> is there any way to mark a package as "don't update this, just notify me
> when new source if available"?
> 
> of course, i run apt-get twice (first with "-n" and then again for real
> when i'm sure mozilla hasn't been updated).  but that's a drag.

I believe that this is what placing a package on "hold" does.  The
debian faq describes the "hold" status as:

    * hold - the user wants this package not to be processed, i.e., he
      wants to keep the current version with the current status
      whatever that is.

    6.12. How do I put a package on hold?
    -------------------------------------

         There are two ways of holding back packages, with dpkg, or with
         dselect.

         With dpkg, you just have to export the list of package selections,
         with:

              dpkg --get-selections \* > selections.txt

         Then edit the resulting file `selections.txt', change the line
         containing the package you wish to hold, e.g.  `libc6', from this:

              libc6                                           install

         to this:

              libc6                                           hold

         Save the file, and reload it into dpkg database with:

              dpkg --set-selections < selections.txt

         With dselect, you just have to enter the [S]elect screen, find the
         package you wish to hold in its present state, and press the `=' key
         (or `H').  The changes will go live immediately after you exit the
         [S]elect screen.

> also, i'm not sure marking mozilla as "immutable" is a good idea.  but
> i'm not sure.

You mean use chattr to set the filesystem's immutable flag on the
executable?  I don't think that would be a good idea because dpkg would
probably crash out with errors when it noticed that the package wasn't
unpacking properly.  It might work, but I suspect you'd get a lot of
errors.

> i have many more ideas, but i'd like to hear what other debian users do
> (or would do).

One option to consider is to just uninstall the mozilla package and
build from source without worrying about creating a new debian package.
You could download the source from mozilla.org or take it from mozilla's
source package under debian.  That way, apt-get will never step on your
version of mozilla (and even if you did accidentally reinstall the
mozilla package, your custom build would probably be safe in
/usr/local).  The only real problem with this solution is if you have
packages that depend on the mozilla package...


Matt

-- 

*************************************************
* Matt Roper <matt@mattrope.com>                *
* http://www.mattrope.com                       *
* PGP Key: http://www.mattrope.com/mattrope.asc *
*************************************************
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.