aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Move SPM_GLOBAL.repo_target string usage out of mirror_cloneJoseph Hunkeler2020-06-221-2/+8
| | | | * Assign targets from inside spm.c instead of external manifest/mirror functions
* Streamline list and search featureJoseph Hunkeler2020-06-081-58/+14
|
* Refactor fstree (#39)Joseph Hunkeler2020-06-031-1/+0
| | | | | | | | | | | | | | | * Refactor fstree, fstree_free, FSTree type * Add FSRec structure * Refactor fstree usage * Decrease starting size of FSTree structure * Check if ManifestPackage is NULL, not if the requirements array if NULL * Use num_requirements instead of '!= NULL' * Add fstree test
* Less than zero is an error. Greater than zero means no-dataJoseph Hunkeler2020-05-261-1/+1
|
* Make program_name globalJoseph Hunkeler2020-05-261-35/+25
|
* Implement -F|--from-file argumentJoseph Hunkeler2020-05-251-0/+42
|
* Leave a commented reference to my scratch executable. Tired of rewriting it ↵Joseph Hunkeler2020-05-241-0/+8
| | | | constantly.
* Add newlineJoseph Hunkeler2020-05-211-0/+1
|
* Use pkg-configJoseph Hunkeler2020-05-071-1/+4
|
* 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
|
* Refactor project: build/install libspm[_static.a].so to make unit testing ↵Joseph Hunkeler2020-03-1827-7090/+2
| | | | possible
* Shared library search improvementJoseph Hunkeler2020-03-181-2/+1
| | | | | * Define platform dependent SPM_SHLIB_EXTENSION * rpath_libraries_available() uses SPM_SHLIB_EXTENSION
* Increased verbosity shows shell executionJoseph Hunkeler2020-03-181-1/+8
|
* Move package check to the end (again)Joseph Hunkeler2020-03-181-5/+6
|
* Assign default RPATHs when auto-generated string is emptyJoseph Hunkeler2020-03-181-0/+15
| | | | * Increased verbosity shows shell execution
* Multiple -v|--verbose arguments increase verbosityJoseph Hunkeler2020-03-181-3/+3
|
* Missing packages are failuresJoseph Hunkeler2020-03-171-11/+7
| | | | * Remove accidental req_i++ (resulted in duplicate array records)
* 'if' statement formattingJoseph Hunkeler2020-03-171-2/+2
| | | | * Added a bugged call to resolve_free() (unused)
* spm_install_show_package() increased whitespace from 10 to 20Joseph Hunkeler2020-03-171-14/+1
| | | | * Do not inject requirements after resolving dependencies. The original package and its requirements are already in there.
* Fix leakJoseph Hunkeler2020-03-171-0/+2
|
* strlist_set() accepts NULL valueJoseph Hunkeler2020-03-171-6/+11
|
* Fix endswith() not working correctlyJoseph Hunkeler2020-03-171-3/+16
|
* Cleanup:Joseph Hunkeler2020-03-171-12/+68
| | | | | | * Add get_name() and get_operator() helper functions * Always select the last manifest to return a match * Free strspec
* Fix up reading dependencies from packagesJoseph Hunkeler2020-03-171-4/+21
| | | | * Add resolve_free()
* Allow names with hyphensJoseph Hunkeler2020-03-141-4/+7
|
* Rename PACKAGE_MIN_DELIM and move it to package.hJoseph Hunkeler2020-03-141-2/+1
|
* Add error checking and fix processing small patterns in replace_text()Joseph Hunkeler2020-03-131-3/+11
|
* Simplify manifest_package_separator_swap functionJoseph Hunkeler2020-03-131-9/+11
|
* Terminate string after moving contentsJoseph Hunkeler2020-03-121-0/+1
|
* Throw a warning if a package requirement isn't discoverableJoseph Hunkeler2020-03-121-0/+1
|
* Use system utilities to check rpathJoseph Hunkeler2020-03-121-1/+1
|
* Relocate files as we go, for now.Joseph Hunkeler2020-03-111-3/+4
|
* ImprovementsJoseph Hunkeler2020-03-101-2/+16
| | | | | | | * Add SPM_LIB64 and ACLOCAL_PATH to mkruntime_interface * Add more search paths to PKG_CONFIG_PATH * Add existence check to rpath_autoset_interface * Fix rpath_autoset_interface_usage output
* Fix stupid off-by-one bug and remove unnecessary code to calculate an offsetJoseph Hunkeler2020-03-101-11/+4
|
* Just duplicate argv[0]Joseph Hunkeler2020-03-101-1/+1
|
* Fix interpreting environment variables encapsulated with bracesJoseph Hunkeler2020-03-081-7/+15
|
* Refactor RPATH creation:Joseph Hunkeler2020-03-074-102/+104
| | | | | | | | * 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
* Bugfix: FSTree.root should always contain an absolute pathJoseph Hunkeler2020-03-071-3/+13
|
* Bugfix: Fix potential overrun by strlist_countJoseph Hunkeler2020-03-071-0/+1
|
* Oh the multilib is killing meJoseph Hunkeler2020-03-043-4/+24
|
* Use the POSIX invocation of the `file` commandJoseph Hunkeler2020-03-031-7/+20
| | | | | * Trap general error string (there's probably more of them) * Report failures and actually fail out.
* Stop execution when SHELL is undefinedJoseph Hunkeler2020-03-031-0/+6
|
* Add "objdump" to list of requirementsJoseph Hunkeler2020-03-031-0/+1
| | | | * I'll get around to implementing support for `otool` eventually.
* 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
* Use strdup() insteadJoseph Hunkeler2020-03-031-2/+1
|
* Bug fixes:Joseph Hunkeler2020-03-031-6/+9
| | | | | | | | * Allocate argv array with a character pointer, not just a byte (whoops) * Removed unneeded cast * Allocate enough memory for the output string * free() argv's resources * [l]strip() now strips blanks AND whitespaces from strings
* Do not force user to have a mirrorlist configurationJoseph Hunkeler2020-03-031-2/+17
|