Commit Graph

1796 Commits

Author SHA1 Message Date
Dylan Araps
cf722ec4ba
docs: update 2020-09-02 01:53:47 +03:00
dylan
a970d1fd02
Merge pull request #179 from illiliti/update_sls_syntax
kiss: update sls syntax
2020-09-02 01:55:29 +03:00
illiliti
42163ae1f2 kiss: update sls syntax 2020-09-01 07:19:02 +03:00
dylan
e9197fe881
Merge pull request #178 from onodera-punpun/master
Add CRUX style usage to contrib scripts
2020-08-31 20:07:40 +03:00
Dylan Araps
3b251b96b6
kiss: Fix compatibility with pre-change checksums 2020-08-31 10:54:39 +03:00
Camille Scholtz
d44c509b37 Add CRUX style usage using the current directory as the name of the package to be operated on 2020-08-30 22:28:01 +02:00
Dylan Araps
00671aaa7e
kiss-revdepends: Work even if package is uninstalled 2020-08-30 14:36:43 +03:00
Dylan Araps
942f36b672
kiss-chbuild: drop for now. full utility planned 2020-08-30 13:14:55 +03:00
dylan
2c3b2aa821
Merge pull request #177 from illiliti/as_root_sls
kiss: add support for sls
2020-08-30 10:30:24 +03:00
Dylan Araps
be40eb0114
docs: update 2020-08-30 10:25:24 +03:00
Dylan Araps
1c1175933f
kiss: Fix checksum generation. 2020-08-30 10:24:58 +03:00
illiliti
f0f3825419 automatically discover sls 2020-08-30 01:42:15 +03:00
illiliti
0d5fc4a2b6 kiss: add support for sls 2020-08-30 01:14:25 +03:00
Dylan Araps
76f3b72479
docs: update 2020-08-28 01:08:42 +03:00
Dylan Araps
fed12ab37f
docs: update 2020-08-20 18:14:21 +03:00
Dylan Araps
fefd0d7b28
kiss: fix etcsums hang. Closes #176 2020-08-20 18:14:05 +03:00
Dylan Araps
d1c0bb0dba
docs: update 2020-08-20 15:15:40 +03:00
Dylan Araps
18c79222b8
kiss: fix handling of /etc. closes #175 2020-08-20 15:15:16 +03:00
Dylan Araps
6e26703abb
kiss-orphans: drop pkgconf exception 2020-08-20 11:34:37 +03:00
Dylan Araps
dba5144024
docs: update 2020-08-18 09:21:37 +03:00
Dylan Araps
d0f4358f84
minor cleanup 2020-08-15 10:27:35 +03:00
Dylan Araps
93b598d5fa
kiss: stop making build file modifiable by hooks
This was half-assed. I'd much prefer we keep things simple and users
use repositories for this purpose. Either full or partial forks. This
is "proper" and stores the build configuration
2020-08-14 10:24:05 +03:00
Dylan Araps
7cfce11abc
fix shellcheck 2020-08-13 10:35:59 +03:00
Dylan Araps
d6917d5fe1
kiss: Stop showing Git repositories in checksums
This is a backwards compatible change. The package manager will
for the time being /ignore/ checksums lines containing Git
repositories.

These aren't checksums and have no business living in the checksums
file. This file is now strictly for checksums. In the coming months,
this special handling will be lifted.
2020-08-13 10:31:19 +03:00
Dylan Araps
99f61fc340
kiss: add support for directories and absolute file paths as sources
This adds support for both absolute and relative directories in
sources files. Relative file sources have always been supported,
this just extends it to directories.

Absolute paths to directories and files in sources is totally new.

Directories will have their /contents/ copied to the initial build
directory. The second field in the sources file can be used to set
destination location.

Checksums will not be validated for directories of any type. Absolute
file paths do have their checksums validated.

Notes:

The package manager will check to see if the source is a directory
or not. There is no need to have a trailing forward slash (though it
might make sense to enforce this anyway, we'll see).
2020-08-13 01:07:41 +03:00
Dylan Araps
fecf4995f8
kiss: drop filenames from checksums files
With this change, checksums generated by the package manager will no
longer contain the second field (the basename of the file). The second
field is quite useless as ordering is already fixed.

This change is backwards compatible and existing checksums files will
containue to function as normal. As checksums are regenerated (with
updates to packages), the new format will be used.

The compatibility works via checking /only the first column/ in each
checksums file. This is the only part of the file which must match
1:1 as ordering is always the same.

Notes about etcsums:

This change also affects the etcsums file which is used for the
3-way checksum verification for files in /etc/.

Existing etcsums will simply be invalidated with the safest path chosen
(.new file is created) until they are regenerated via a package build.

Ordering is now fixed inside etcsums files. This makes parsing them
faster and more reliable.

This also fixes a theoretical bug with naming conflicts during parsing
of etcsums.
2020-08-13 00:23:43 +03:00
Dylan Araps
487358a047
docs: update 2020-08-12 00:21:34 +03:00
Dylan Araps
f552a75427
kiss: Resolve path to root even if in subshell 2020-08-12 00:20:58 +03:00
Dylan Araps
64e77c91e5
kiss: add repository update hook
The package manager will look for an executable called 'update' in the
repository's root directory. If a KISS repository is one of many
children in a git repository, the hook will only be called once.

This hook is run /after/ a repository has been updated by the package
manager. If your repository is not using git, the hook is run immediately.

If the hook fails (exits non-zero), the package manager will also fail.
Hooks can be written in any language. No arguments are given to the executable.

Closes #174
2020-08-11 21:24:43 +03:00
Dylan Araps
a15c6b74fb
docs: update 2020-08-11 15:50:08 +03:00
Dylan Araps
4e34ad6a6a
kiss: don't automatically pull down submodules when using git sources
This should be done in the build file on an opt-in basis.
2020-08-11 15:49:15 +03:00
Dylan Araps
5df9fbb6b1
docs: update 2020-08-11 11:00:27 +03:00
Dylan Araps
7695d003f5
kiss-chroot: Removed old envar 2020-08-11 10:59:51 +03:00
Dylan Araps
197d8b4329
docs: update 2020-08-11 10:48:51 +03:00
Dylan Araps
45f8562c8e
kiss: allow KISS_PATH to be unset.
This is related to the tarball and default repository location
changes which leave KISS_PATH unset /by default/.

There's no real reason for the package manager to die here. When
no repositories are enabled (or no package is found in KISS_PATH),
the package manager uses /var/db/kiss/installed as a fallback.

Related to: https://github.com/kisslinux/repo/issues/209
2020-08-11 10:45:51 +03:00
Dylan Araps
5c6898f143
kiss-chroot: Allow some things to fail. 2020-07-31 09:53:52 +03:00
Dylan Araps
af24f9bd29
kiss: bump to 4.0.2 2020-07-30 01:49:17 +03:00
Dylan Araps
9228f77274
kiss: Rename .build file to .build-kiss 2020-07-29 19:05:38 +03:00
Dylan Araps
c898c04bc8
kiss: Add message about removal 2020-07-29 19:03:02 +03:00
Dylan Araps
6092dd66a2
kiss: Print to screen which files are skipped during removal. 2020-07-29 19:00:21 +03:00
Dylan Araps
f99fcd5309
kiss: Use $0 instead of hardcoding script name 2020-07-29 17:25:25 +03:00
Dylan Araps
f236f3237d
kiss: bump to 4.0.1 2020-07-29 17:16:51 +03:00
Dylan Araps
380da113eb
kiss: Make pkg_remove_files a little clearer 2020-07-29 17:16:15 +03:00
Dylan Araps
d883c42498
kiss: Oops. 2020-07-29 14:45:26 +03:00
Dylan Araps
aff5097d53
kiss: Make build file accessible to hooks.
Named '.build' to reduce potential conflicts.
May be renamed prior to release. We'll see.
2020-07-29 14:21:07 +03:00
Dylan Araps
8c9b25ac95
kiss: Change secondary color to blue 2020-07-29 09:02:18 +03:00
Dylan Araps
1aaa100139
kiss-chbuild: Use latest tarball 2020-07-28 04:21:41 +03:00
Dylan Araps
554940cd7b
kiss: Drop hardcoded musl reference.
This replaces the package based exemption with one based on C and
POSIX shared library names, removing the hardcoded reference to
musl and adding support for more C libraries.

This needs testing with non-musl systems. Specifically, the
dependency fixer which runs post-build in 'kiss build' should /not/
display anything related to your C library. If it does, please open
an issue.
2020-07-28 04:05:05 +03:00
Dylan Araps
e18826eaf8
kiss: bump to 4.0.0
Bumped major version as we've dropped .la files.
2020-07-28 03:08:21 +03:00
Dylan Araps
6eb62bdd97
kiss: Remove .la files from all packages.
These files are unneeded and become a source of errors when an
autotools build references a non-existing .la file. This was the
case with a recent update to freetype-harfbuzz.

The files are required by libtool to do libtool things, however
libtool works just fine without them. These files are safe to
remove according to upstream and other distributions have already
been doing this for a while.

> https://www.gnu.org/software/automake/faq/autotools-faq.html
>
> 3.1 What are these .la files for and can I safely remove them?
>
> portable encoding of static and shared library names and dependencies.
>
> removing usually only works OK if done in directories which the
> runtime linker searches by default anyway (otherwise you might need
> to set LD_LIBRARY_PATH or an equivalent variable) and only on systems
> where the runtime linker loads indirect library dependencies
> automatically (includes GNU/Linux, GNU, Solaris).

It is recommended that you remove all .la files from your system
if manually updating the package manager to the latest version.
Running 'kiss update' will automatically handle this for you.

The following script will be run on post-install to clean up the
.la files. This can also be run manually. Executing this script
will do nothing if the system is already clean.

  #!/bin/sh

  find "$KISS_ROOT/usr/lib" \
      ! -type d \
      -name \*.la \
      -exec rm -f -- {} +

  find "$KISS_ROOT/var/db/kiss/installed" \
      ! -type d \
      -name manifest \
      -exec sed -i '/.*\.la$/d' {} +

This commit also brings back the removal of charset.alias which was
a part of the default KISS_HOOK prior. It makes much more sense for
it to live alongside this change.
2020-07-28 03:05:55 +03:00