Commit Graph

117 Commits

Author SHA1 Message Date
just_fun
35b56a38e0 pkgmk: fix the up-to-date option (avoid unnecesarry rebuilds)
build_needed() function returns true/yes if a source is missing,
even when the target/package exists and is up-to-date. This
behaviour triggers unnecesarry rebuilds.

Because only the remote sources can be missing and
we don't want to rebuild a port just because we've deleted
some of its remote sources, this patch changes that condition
from:
    ( the source is missing OR  is newer than the target/package )
to
    ( the source exists     AND is newer than the target/package )
2017-09-20 17:49:07 +02:00
Fredrik Rinnestam
99ded8b59c pkgmk: dont export PKG, SRC FS#1367 2017-09-20 17:48:46 +02:00
Fredrik Rinnestam
74dcad9831 bump version to 5.40.4 2017-09-19 23:50:10 +02:00
Fredrik Rinnestam
fa01237ebc cleanup 2017-09-19 23:46:09 +02:00
Fredrik Rinnestam
4da22c0066 added sepen's patch for pkgadd config-file 2017-09-19 23:45:19 +02:00
just_fun
a11b004805 pkgadd: avoid fake installations if unpacking fails
This patch aborts the package installation and remove the package
from the database on any extraction error. This fixes FS#620.

I don't know why the extraction errors were ignored (even documented).
The initial commit already had this behaviour. Another odd thing
is that the install status of the package was commited to the database
before it was installed while there are exceptions used in pkg_install():
 - archive open error
 - empty archive
 - archive read error
Any of these errors will falsely mark the package as installed (maybe
not a big problem with upgrades).

To avoid breaking something (else), this fix kicks in
only with fresh installs (not upgrades).

Thanks Erich Eckner, for pointing out that the issue
is reproductible with a read-only destination. Otherwise,
I don't think I would have looked at this issue.

A test case is presented with the FS issue, just in case someone
who loves C++ enough to dig deeper or have more knowledge about
the history of this program would take a closer look.
2017-09-19 23:44:01 +02:00
Predrag Ivanovic
62e416b52c pkgmk.in: Add 7z to unpack_source function
Libarchive(bsdtar) can extract 7-Zip archives since 3.0, so
add them as supported source

Ref:
https://github.com/libarchive/libarchive/wiki/LibarchiveFormats
2017-09-19 20:11:19 +02:00
Fredrik Rinnestam
8dfe440b32 pkgutils-5.40.3 2017-05-08 18:45:38 +02:00
just_fun
858ea9a42b pkgmk: update .md5sum if present (even when the port was signed) 2017-04-19 18:17:12 +02:00
Fredrik Rinnestam
0e976e8beb bump Makefile version 2017-04-08 22:36:21 +02:00
Fredrik Rinnestam
08ac3d2cb1 pkgmk: ignore md5sums unless signatures are missing 2017-04-05 21:58:09 +02:00
cc3c4ec779 pkgmk: Remove check for empty $source in check_signature(), patch by just_fun 2017-02-28 20:02:26 +01:00
e7e9779f60 pkgadd: fix deprecated warning, patch by tnut 2017-02-28 13:32:16 +01:00
Fredrik Rinnestam
dcb8845eaf pkgmk: Removed checking for in make_signature()
this is an artifact from make_md5sum() and NOT needed for make_signature().
In fact, this check breaks make_signature() because now packages that don't
have a $source don't get any .signature at all, even though it can
(and should) create a sha256 for the footprint and Pkgfile.

Patch by Camille (onodera).
2017-02-23 18:29:10 +01:00
Fredrik Rinnestam
e5c99f7b1a Fixed various style errors and some typos. Patch by Camille (onodera). 2017-02-23 18:24:27 +01:00
Fredrik Rinnestam
8db4bc01e2 pkgmk: don't assume file will print a ',' with future releases 2017-02-18 20:02:32 +01:00
Fredrik Rinnestam
8a13560ef8 pkgmk: Actually strip executables and objects. Patch by Roman Oreshnikov
FS#1378
2017-02-18 18:04:59 +01:00
Fredrik Rinnestam
8ecaa590f0 pkgmk.conf: include PKGMK_IGNORE_MD5SUM and PKGMK_IGNORE_SIGNATURE variables 2017-02-08 22:14:03 +01:00
Fredrik Rinnestam
c8549cddc0 signify related updates to pkgmk.8.in 2017-02-07 21:01:52 +01:00
Fredrik Rinnestam
66f664ffb7 updated copyright to 2017 2017-02-07 21:01:46 +01:00
Thomas Penteker
ca8de90525 pkgmk.in: fix typo in the help text 2016-11-30 23:18:12 +01:00
06c526de4e update copyright year 2016-10-05 11:26:26 +02:00
9033d1650c pkgmk: extract archives with tar.lz extension 2016-10-04 15:31:41 +02:00
Thomas Penteker
53ec86f6a3 Merge branch 'signed' 2016-08-06 20:17:57 +02:00
Thomas Penteker
3cfc840e9b pkgmk.8: minor documentation adjustments 2016-08-06 20:15:45 +02:00
Fredrik Rinnestam
cc70834811 Makefile: bump version to 5.40 2016-06-15 19:19:34 +02:00
Thomas Penteker
e3999adb34 document new command-line switches in pkgmk.8 2016-04-21 00:04:40 +02:00
Thomas Penteker
b60717c3bc clean ups and -cs now checks the signature even if the binary package is already present 2016-04-08 01:06:13 +02:00
Thomas Penteker
430a36bfa2 fix indentation even more 2016-04-07 22:48:26 +02:00
Thomas Penteker
1286051d5a implement proper fallback with/without PKGMK_IGNORE_MD5SUM and PKGMK_IGNORE_SIGNATURE 2016-04-02 23:11:47 +02:00
Thomas Penteker
b33658886e fix indentation, remove --insecure and no-check-certificate from curl and wget options 2016-04-02 22:11:09 +02:00
Thomas Penteker
7e6d31a01d strip -x from shebang 2016-03-28 13:34:21 +02:00
Thomas Penteker
8dad69f52d implement signature handling; yes indenting is broken 2016-03-28 02:48:20 +02:00
09e7ce51dd Makefile: change man-page location to /usr/share/man 2015-07-29 09:17:42 +02:00
8e711b42a1 bump version to 5.36 2015-07-25 12:47:17 +02:00
45d9809f97 pkgmk.conf: add PKGMK_CURL_OPTS variable 2015-07-25 12:46:56 +02:00
1afd9187c7 Makefile: compress tarball with xz 2015-07-25 12:35:52 +02:00
Alan Mizrahi
3d1855e7d2 pkgmk: add support for curl
See FS#1060, https://crux.nu/bugs/index.php?do=details&task_id=1060

New variables in /etc/pkgmk.conf:

PKGMK_DOWNLOAD_PROG="" (curl or wget)
PKGMK_CURL_OPTS="" (parameters for curl, when using curl)
2015-07-25 12:23:49 +02:00
bf4255e16b bump version to 5.35.6 2014-03-23 19:15:46 +01:00
598f7b4a05 pkgadd.conf: allow update of /etc/ssl/cert.pem provided by core/ca-certificates 2014-03-23 19:13:04 +01:00
215882c278 pkgadd.conf: add rules for hwdb of eudev 2014-03-23 19:09:39 +01:00
Matt Housh
e351466294 pkgmk.conf: added commented MAKEFLAGS option 2013-03-13 09:05:01 -05:00
01ba62021b Makefile: bump version to 5.35.4 2013-01-21 16:19:08 +01:00
d804a38feb update copyright year to 2013 2013-01-21 16:14:45 +01:00
7e53648a28 pkgmk.conf: if PKGMK_ARCH is unset we default to 64 2013-01-21 16:09:17 +01:00
e691a2bfd4 bump version to 5.35.3 2012-11-28 13:29:12 +01:00
a455d5533e pkgmk: add support for plain tar, FS#603 2012-11-28 13:23:58 +01:00
Matt Housh
6d244ad0c0 pkgmk, pkgmk.conf: updates for multilib 2012-11-27 10:17:18 -06:00
Tilman Sauerbeck
cb463301e3 Bumped version to 5.35.2. 2012-03-28 19:36:27 +02:00
Tilman Sauerbeck
f30a8abd09 Switched to libarchive 3.x. 2012-03-27 20:28:46 +02:00