Method and system for maintaining software package dependence relationship
A technology for dependencies and software packages, which is applied in the field of maintaining software package dependencies, and can solve the problems that dependencies are easy to miss, manual filling is easy to make mistakes, and the filling of dependencies is difficult to control.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] Analyze the library required by the target program;
[0081] assigning the same version number to interfaces in said library that have the same dependency;
[0082] Obtain the name and version number of the software package that the interface depends on; the version number is the minimum version number of the software package that can support the normal operation of the interface in the program library;
[0083] Associating the version number of the interface with the software package information to form a dependency relationship;
[0084] Obtain the version number of the interface required by the target program to obtain the first version number;
[0085] Adding a dependency corresponding to the first version number to the dependency file;
[0086] Encapsulating the target program and dependent files into a target software package.
[0087] It can be seen from the above description that in this embodiment, the software package on which the target program depends can...
Embodiment 2
[0101] On the basis of Embodiment 1, an interface is added to the program library;
[0102] Assigning a version number to the newly added interface;
[0103] Obtain information about software packages that the newly added interface depends on;
[0104] Associating the version number of the newly added interface with the software package information to form a new dependency relationship;
[0105] Adding the new dependency to the dependent file;
[0106] Update dependent files in said target package.
[0107] It can be seen from the above description that the present embodiment automatically maintains dependent files when implementing a new interface.
[0108] The application scenario of this embodiment is: adding an interface func4, and assigning a version number TESTSDK1_1.1 to it. Obtain the package information that interface func4 depends on as testsdk1 (>=1.1). Add the dependency of the new interface func4 to the dependency file.
Embodiment 3
[0110] On the basis of embodiment one, this embodiment:
[0111] Obtain the version number of the software package with the same software package name in the dependent file to form a set of software package version numbers;
[0112] Obtain the highest software package version number in the software package version number set to obtain the optimal version number;
[0113] Associating the software package name with the optimal version number to form an optimal dependency relationship;
[0114] Add the optimal dependency to the dependency file.
[0115] It can be seen from the above description that this embodiment reduces the number of software packages that the target program depends on.
[0116] For each library used, generate optimal dependencies. For example, if the target program uses interface func4 and interface func1, then the highest interface version of the library libtestsdk1.so is TESTSDK1_1.1. In the library dependency files of all system libraries in the SDK, f...
PUM
![No PUM](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com