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.

Active Publication Date: 2017-02-01
FUJIAN LANDI COMML EQUIP CO LTD
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the method of manually filling in the dependencies of the software package has the following disadvantages: First, if the programs and libraries in a software package depend on a large number of other libraries, the dependencies are easy to be missed
Secondly, with the software upgrade, many libraries need to add in

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for maintaining software package dependence relationship
  • Method and system for maintaining software package dependence relationship

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the field of software package maintenance, in particular to a method and a system for maintaining a software package dependence relationship. The method comprises the following steps: resolving a program library needed by a target program; allocating a version number to an interface in the program library; acquiring software package information on which the interface depends; correlating the version number of the interface with the software package information to form a dependence relationship; acquiring a version number of an interface needed by the target program to obtain a first version number; adding a dependence relationship corresponding to the first version number into a dependence file. The information of a software package on which the interface in the target program depends is maintained automatically, so that the software package on which the target program depends can be acquired automatically.

Description

technical field [0001] The invention relates to the field of software package maintenance, in particular to a method and system for maintaining software package dependencies. Background technique [0002] With the development of the domestic electronic payment market and payment technology, the software system of the payment terminal is becoming increasingly complex. Most of the current payment terminals use a complex operating system based on Linux or even Android, and support various peripheral drivers including IC cards, magnetic cards, radio frequency cards, and various communication methods, and realize GUI, device services, management and multiple functions. applications and other software functions. Since these functions involve different development departments and have different upgrade frequencies, it is difficult to manage them uniformly. Based on this feature, related software is usually made into software modules for unified management. For example: printer d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 吴旋陈庆斌王斌
Owner FUJIAN LANDI COMML EQUIP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products