aboutsummaryrefslogtreecommitdiff
path: root/src/spm.c
Commit message (Collapse)AuthorAgeFilesLines
* Better reporting when a package does not existJoseph Hunkeler2020-04-191-0/+1
| | | | | | | | * Add additional errors * Fix user_input function missing an error return value * spmbuild sources a temporary file instead of output from a sub-shell * Fix indentation problem * A reason can be attached to spmerrno using spmerrno_cause()
* Implement error handlingJoseph Hunkeler2020-04-191-1/+11
| | | | * Die on bad root directory
* Update README.md and usageJoseph Hunkeler2020-04-101-1/+1
|
* Enable remove modeJoseph Hunkeler2020-04-011-0/+1
|
* Multiple -v|--verbose arguments increase verbosityJoseph Hunkeler2020-03-181-3/+3
|
* 'if' statement formattingJoseph Hunkeler2020-03-171-2/+2
| | | | * Added a bugged call to resolve_free() (unused)
* Just duplicate argv[0]Joseph Hunkeler2020-03-101-1/+1
|
* Refactor RPATH creation:Joseph Hunkeler2020-03-071-3/+2
| | | | | | | | * Decreased complexity * Most rpath_* functions accept a FSTree structure now * Fewer calls to chdir() overall * Deeply nested libraries are detected * Libraries are no longer confined to lib/ and /lib64
* Improvements:Joseph Hunkeler2020-03-031-2/+11
| | | | | * Add a default package location (URL will change some day) * SPM_ROOT environment variable can change the default root from ~/spm_root to whatever you want
* Refactor startswith() and endswidth() usageJoseph Hunkeler2020-03-021-2/+2
|
* Trying to iron out a few manifest pathing issuesJoseph Hunkeler2020-02-281-3/+5
|
* Improvements:Joseph Hunkeler2020-02-281-2/+35
| | | | | | | | * Refactored a few function names * Can read package metadata * Can delete packages * Can download! and install packages at the same time * Can prompt the user before proceeding
* Multiple things:Joseph Hunkeler2020-02-261-21/+10
| | | | | | | | * Add strdup_array() * Begin consolidating spm root information into SPM_Hierarchy * Begin consolidating metadata * Begin trimming repeated code (mostly file reading) * Store information about installed packages under [root]/var/db/records
* Refactor:Joseph Hunkeler2020-02-251-60/+42
| | | | | | | * Move installation code out * Refactor spm_* variable names * Add missing arguments to usage * Add --yes (-y) argument to disable interactive prompts
* Rename ambiguous variablesJoseph Hunkeler2020-02-241-96/+32
| | | | * Hook up resolve.c functions
* Finish removing find_package calls:Joseph Hunkeler2020-02-191-7/+7
| | | | * Add a root search path to dependency functions
* Decrease verbosity during installation (unless requested)Joseph Hunkeler2020-02-181-10/+18
|
* Rework dependency scanning:Joseph Hunkeler2020-02-181-7/+22
| | | | | | | | | * Stop resolving dependencies during manifest creation * Resolve dependencies by path * Die on failure to resolve * Fixed an off-by-one error in manifest_read * Add CLI argument -M|--override-manifest to disable default manifest(s) * Clean up expandpath() a bit
* Refactor continues:Joseph Hunkeler2020-02-171-27/+13
| | | | | | | | | * Implement multiple manifests * Random bug fixes * More bugs added * Start removing references to SPM_GLOBAL.package_dir * Start using manifests for everything * Simplify mkmanifest_interface
* Implement ManifestList:Joseph Hunkeler2020-02-131-24/+25
| | | | * Initial support for multiple manifests at once
* Begin refactoring to support multiple manifests:Joseph Hunkeler2020-02-131-2/+21
| | | | | * Add more commands useful for building packages * Fix mkmanifest_interface not looking for the correct number of arguments
* Do not modify PATH anymoreJoseph Hunkeler2020-02-101-13/+2
|
* Fix segfault when --install had no argumentsJoseph Hunkeler2020-02-071-4/+6
|
* Replace packages array with StrListJoseph Hunkeler2020-02-041-30/+23
|
* SEAD - memory leaksJoseph Hunkeler2020-01-301-3/+7
|
* Fix more memory leaks:Joseph Hunkeler2020-01-281-3/+3
| | | | | Add ability to free ManifestPackage structure Fix bug: manifest_search pointer got free()ed accidentally.
* Remove md5sum functionJoseph Hunkeler2020-01-281-0/+6
| | | | * Fix a few glaring memory leaks
* Fix some buffer overflows, add a few moreJoseph Hunkeler2020-01-271-5/+5
|
* Begin hooking up version spec function(s) to installationJoseph Hunkeler2020-01-241-8/+4
|
* Groundhog day 2Joseph Hunkeler2020-01-221-1/+1
|
* groundhog dayJoseph Hunkeler2020-01-211-3/+2
|
* Add runtime environment manipulation routinesJoseph Hunkeler2020-01-141-5/+40
|
* Update README.mdJoseph Hunkeler2019-12-311-1/+1
| | | | * Add environment.c
* FixesJoseph Hunkeler2019-12-301-1/+1
| | | | | | | * Verbosity++ * If no requirements are present do not to report we are installing some * Redirect all shell output to stderr (need a better way) * implemented file_is_binexec() to avoid running patchelf on generic data files
* Fix inane compiler warningsJoseph Hunkeler2019-12-301-3/+3
| | | | | | * fix rpath_set * add rpath_autoset * add internal command "rpath_set"
* Minor fixes:Joseph Hunkeler2019-12-291-22/+24
| | | | | | * size_t in place of int * Moved some variables closer to their execution scope * Add some error checks
* Fixes:Joseph Hunkeler2019-12-281-3/+3
| | | | | | | * doxygen config * doxygen @file directives * corrected stupid strip() implemention * corrected strip usage by config parser. wrong pointer.
* Started work on build helper functionsJoseph Hunkeler2019-12-281-4/+15
|
* Listing packages and printing bannersJoseph Hunkeler2019-12-261-23/+44
|
* Version matching and package searchingJoseph Hunkeler2019-12-261-11/+68
|
* Add version_spec.cJoseph Hunkeler2019-12-241-0/+1
|
* Implement basic package manifestJoseph Hunkeler2019-12-211-5/+23
|
* Add --reindex optionJoseph Hunkeler2019-12-201-0/+4
|
* Deterministic install outputJoseph Hunkeler2019-12-191-15/+34
|
* Clean up a little bit.Joseph Hunkeler2019-12-191-10/+10
|
* Make command line argument a thingJoseph Hunkeler2019-12-191-29/+156
|
* Refactor project structureJoseph Hunkeler2019-12-181-0/+60