aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Check for error when opening path_manifestJoseph Hunkeler2020-03-031-1/+5
|
* Add missing LF in usageJoseph Hunkeler2020-03-031-1/+1
|
* Bug fixes:Joseph Hunkeler2020-03-031-7/+20
| | | | | | | | | | * Use strdup() instead of join() for records_topdir * Check for and die if packages do not exist in manifests, or on local disk * realloc() the length of the payload string (instead of strlen() on an integer... whoops) * Fix num_requirements not producing the correct value * ManifestPackage `origin` does not need repo_target anymore * Copy packages from non-default package storage directories to the main local package store *
* Begin consolidating paths (manifests and temp directories)Joseph Hunkeler2020-03-024-40/+39
|
* Refactor startswith() and endswidth() usageJoseph Hunkeler2020-03-026-10/+17
|
* Simplify startswith() and endswidth() calls to avoid looking at APIJoseph Hunkeler2020-03-021-7/+7
|
* Trying to iron out a few manifest pathing issuesJoseph Hunkeler2020-02-284-60/+132
|
* Improvements:Joseph Hunkeler2020-02-288-84/+261
| | | | | | | | * 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
* Fix off-by-one error in config parserJoseph Hunkeler2020-02-281-14/+29
|
* Add join_ex() [simplified join() function]Joseph Hunkeler2020-02-281-0/+59
|
* Multiple things:Joseph Hunkeler2020-02-269-69/+325
| | | | | | | | * 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
* Fix invalid array access on short stringsJoseph Hunkeler2020-02-251-3/+9
|
* Break out of scanning loop when a match is discoveredJoseph Hunkeler2020-02-251-1/+2
|
* Free ManifestPackage variablesJoseph Hunkeler2020-02-251-1/+4
|
* Refactor spm_* directory names:Joseph Hunkeler2020-02-251-20/+23
| | | | * Add spm_pkgconfigdir
* Refactor installation:Joseph Hunkeler2020-02-251-37/+167
| | | | | | | | * install() accepts a temporary directory as an argument * Add install_package_record() * Add is_installed() * Add do_install() wrapper * Use spm_user_yesno() before installation
* Add spm_mkdtemp() functionJoseph Hunkeler2020-02-251-1/+17
|
* Implement prompt_user flagJoseph Hunkeler2020-02-251-0/+1
|
* Add user_input.c to cmakeJoseph Hunkeler2020-02-251-2/+2
|
* Initial commit of user_input.[c,h]Joseph Hunkeler2020-02-251-0/+46
|
* Add pkg-config environment variableJoseph Hunkeler2020-02-241-0/+4
|
* Rename ambiguous variablesJoseph Hunkeler2020-02-241-96/+32
| | | | * Hook up resolve.c functions
* Replace deps.c with resolve.cJoseph Hunkeler2020-02-241-1/+1
|