Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.bbclass: Record PE for shlibs for correct dependencies #28

Closed
wants to merge 11 commits into from

Commits on Jan 11, 2018

  1. package.bbclass: Record PE for shlibs for correct dependencies

    When downgrading a package or using a substitute with lower version,
    the way to do it is adding or increasing PE. For the automatic shlib
    dependencies, only the package version without the PE value was
    recorded.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    6ba2b98 View commit details
    Browse the repository at this point in the history
  2. Fix recording and reading PE in shlib dependencies

    Now the variables in memory use the PE:PV format, only the *.list
    files should store PE#PV so their format it not broken.
    The conversion happens when writing a packages' own *.list files
    and when reading other packages' files.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    1061e76 View commit details
    Browse the repository at this point in the history
  3. Revert "Fix recording and reading PE in shlib dependencies"

    This reverts commit 1061e76.
    Böszörményi Zoltán committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    67ab564 View commit details
    Browse the repository at this point in the history
  4. Revert "package.bbclass: Record PE for shlibs for correct dependencies"

    This reverts commit 6ba2b98.
    Böszörményi Zoltán committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    bbfedd6 View commit details
    Browse the repository at this point in the history
  5. Record PE value for shlib dependencies

    When downgrading a package or using a substitute with lower version,
    the way to do it is adding or increasing PE. But it didn't help
    dependant packages because the shlib records didn't contain PE, only PV.
    
    Let's add the PE value into these records for packages where it's set.
    
    The in-memory variables storing the versions use the PE:PV notation
    but the on-disk files must use something else because the : character
    is already used as field delimiter in the package.list files storing
    these shlib records. Use # instead in the files, so the file format
    doesn't change. Conversion occurs on reading/writing the package.list
    files.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    559ae2d View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2018

  1. package: Also add PR to shlib dependency record

    It is used as actual package dependency only if it's not r0,
    i.e. it's set.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    5dee49c View commit details
    Browse the repository at this point in the history
  2. package: Always extend the list to 4 entries in read_shlib_providers()

    This way we take existing package.list files into account.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    65a3a5e View commit details
    Browse the repository at this point in the history
  3. Revert "package: Always extend the list to 4 entries in read_shlib_pr…

    …oviders()"
    
    This reverts commit 65a3a5e.
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    1386df8 View commit details
    Browse the repository at this point in the history
  4. Revert "package: Also add PR to shlib dependency record"

    This reverts commit 5dee49c.
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    ea75fa8 View commit details
    Browse the repository at this point in the history
  5. Revert "Record PE value for shlib dependencies"

    This reverts commit 559ae2d.
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    a88f19c View commit details
    Browse the repository at this point in the history
  6. package: Record PE and PR values for shlib dependencies

    When downgrading a package or using a substitute with lower version,
    the way to do it is adding or increasing PE and there may be other
    reasons to set PE.
    
    But it doesn't directly help dependant packages because the shlib
    records only contain PV.
    
    Let's add the PE value into the shlib records for packages where
    it's set and PR unconditionally.
    
    The in-memory variables storing the versions now use the PE:PV
    notation but the on-disk files must use something else because
    the : character is already used as field delimiter in the package.list
    files storing the shlib records. Use # instead in the files,
    so the file format doesn't change. Conversion occurs on reading
    and writing the package.list files.
    
    v2:
    
    Also store PR in a new 4th field in the shlib records. If it's set,
    i.e. it's different from "r0" then it will also be used in the
    packages for shared library dependencies.
    
    Signed-off-by: Zoltán Böszörményi <zboszor@pr.hu>
    Böszörményi Zoltán committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    a7bf789 View commit details
    Browse the repository at this point in the history