Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!

Difference between revisions of "Upgrading packages"

From Openembedded.org
Jump to: navigation, search
 
Line 1: Line 1:
Different layers have different policies for keeping versions of software around. Oe-Core for example is fairly aggrressive about having one, good, recent version of the software than many older versions. Other layers may have different policies.
+
Different layers have different policies for keeping versions of software around. Oe-Core for example is fairly agressive about having one, good, recent version of the software than many older versions. Other layers may have different policies.
  
 
There are two cases we need to consider:
 
There are two cases we need to consider:

Latest revision as of 11:12, 7 November 2012

Different layers have different policies for keeping versions of software around. Oe-Core for example is fairly agressive about having one, good, recent version of the software than many older versions. Other layers may have different policies.

There are two cases we need to consider:

  1. You do want to keep the version of the bb file that is in OE now (somebody else needs this particular version)
  2. You don't.

[edit] You do not need to keep the last version of the package

  1. Use "git-mv packages/$pkg/$file_v1.bb packages/$pkg/$file_v2.bb"
  2. make further changes to packages/$pkg/$file_v2.bb as appropriate.
  3. At the very minimum do a compilation test "bitbake $file" to make sure the new package does at least fetch and compile.
  4. inspect the output of "git diff packages/$pkg/". Is this really what you want to commit?
  5. Final step, publish your work. "git commit packages/$pkg/ && git push".

[edit] You do want to keep the last version of the package

Same as above, except instead of the first step:

cp packages/$pkg/$file_v1.bb packages/$pkg/$file_v2.bb
git-add packages/$pkg/$file_v2.bb
Personal tools
Namespaces

Variants
Actions
Navigation
Categories
OE services
Toolbox