Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for maintaining software package dependencies

A technology for dependencies and software packages, which is applied in the field of maintaining software package dependencies, and can solve the problems of difficulty in filling in dependencies, easy missing of dependencies, and errors in manual filling.

Active Publication Date: 2019-10-18
FUJIAN LANDI COMML EQUIP CO LTD
View PDF6 Cites 0 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 interfaces, and manual filling is error-prone
Furthermore, the application program on the payment terminal is developed by the customer, and it is more difficult to control the filling of the dependency relationship of the application software package, which will cause problems such as the inability to run the program normally

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
  • A method and system for maintaining software package dependencies
  • A method and system for maintaining software package dependencies

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

A method and system for maintaining software package dependency. The method comprises: analyzing a library required by a target program; allocating a version number to an interface of the library; acquiring software package information of interface dependency; associating the version number of the interface and the software package information to generate dependency; acquiring the version number of the interface required by the target program to obtain a first version number; and adding, into a dependency file, dependency corresponding to the first version number. The method is utilized to automatically maintain software package dependency information of an interface of a target program, and implement automatic acquisition of a dependent software package of the target program.

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/70G06F8/71
Inventor 吴旋陈庆斌王斌
Owner FUJIAN LANDI COMML EQUIP CO LTD