1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
Commit Graph

3623 Commits

Author SHA1 Message Date
Stefan Eßer
ba1f4c6e0b Fix previous commit (r459202) which introduced dependencies that specify
an optional make target. The patch file contained 2 typoes ("{$" instead
of "${").

Add clean phase for dependencies that are not installed but required when
the dependent port is built (e.g. because of references to source files of
that port, or because of static linking against libraries in the stage area
of such a dependency).

Approved by:	antoine (implicit)
2018-01-17 22:43:24 +00:00
Tobias Kortkamp
ee6d254d2d ports-mgmt/fastest_sites: Fix runtime with modern bsd.sites.mk
fastest_sites currently can't parse entries like

https://archives.fedoraproject.org/pub/archive/fedora/linux/%SUBDIR%/:DEFAULT,SOURCE

 => Checking servers for MASTER_SITE_FEDORA_LINUX (6 servers)
Traceback (most recent call last):
  File "/usr/local/bin/fastest_sites", line 164, in <module>
    latency_list = FindFastest(varname, sitelist)
  File "/usr/local/bin/fastest_sites", line 110, in FindFastest
    AsyncConnect(url, callback)
  File "/usr/local/bin/fastest_sites", line 53, in __init__
    self.ParseURL()
  File "/usr/local/bin/fastest_sites", line 64, in ParseURL
    (scheme, remainder) = self._url.split(":", 2)
ValueError: too many values to unpack

PR:		224854
2018-01-17 14:29:16 +00:00
Bryan Drewery
2a4a05ce15 Upgrade to 3.2.4
Changes: https://github.com/freebsd/poudriere/wiki/release_notes_324
2018-01-16 19:10:51 +00:00
Stefan Eßer
06c8fff860 Add support for dependencies specified with a non-standard make target.
This is required for e.g. net/openntpd, which links against static libressl
libraries in that port's staging area.

In case of a port that is not fully installed, there is no clean phase for
the dependency's port directory. The dependency tracking does not maintain
the necessary state to perform this cleanup when the depending port is
finished.

PR:		213887
Reported by:	blackmore@pichove.org (Simeon Simeonov)
Approved by:	antoine (implicit)
2018-01-16 18:49:38 +00:00
Stefan Eßer
16ccc729a8 Test privileges early and complain if privileges are insufficient.
The patch is based on ideas presented in the PR, but implemented
differently. Re-open the PR, if this solution has unexpected side-effects
or proves insufficient.

PR:		174729
Reported by:	ngie
Approved by:	antoine (implicit)
2018-01-16 18:43:27 +00:00
Romain Tartière
46bb0a9743 Update to 1.0.15
This release address a few minor issues, including [2].

While here:
- Simplify Makefile depend logic [1];
- Add license.

PR:		205830 [1], 224138 [2]
Submitted by:	simon.wright@gmx.net [1], parakleta@darkreality.org [2]
2018-01-16 09:17:05 +00:00
Stefan Eßer
e98261f04c Update to version 3.19, which is identical to 3.18_12 with all port patches
applied.

Approved by:	antoine (implicit)
2018-01-14 22:11:02 +00:00
Stefan Eßer
8aa3f3c610 Fix display of license acceptance menu if build logs are hidden with -H.
PR:		206738
Reported by:	torsten.eichstaedt@web.de
Approved by:	antoine (implicit)
2018-01-12 21:59:51 +00:00
Alexey Dokuchaev
7b85b686ee Remove superfluous linefeeds and fix some other minor whitespace bugs. 2018-01-11 16:53:44 +00:00
Alexey Dokuchaev
a247b2f47d Do not abuse INSTALL_MAN when installing documentation, examples, and
other miscellaneous files that are not actually manual pages (part 2).
2018-01-11 14:18:01 +00:00
Stefan Eßer
0760c3485f Fix problem with ports being converted from a non-flavored to a flavored
version, if PYTHON3_DEFAULT is set to anything but 3.6. Since the MOVED
file sets the new origin and flavor such that a Python-3.6 compatible
package is built, the original Python version for this port is ignored.

Reported by:	lev
Approved by:	antoine (implicit)
2018-01-11 13:48:12 +00:00
Stefan Eßer
1b59f47ce0 Small fix for directory accesses in find_dl_distfiles, which did not take
the optional flavor part of the passed argument into consideration.

Approved by:    antoine (implicit)
2018-01-11 12:29:24 +00:00
Stefan Eßer
590891ba8e Generally path FLAVOR via the environment, not the "make" command line, to
circumvent a check for an empty FLAVOR parameter being passed to certain
ports.

Reported by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:	antoine (implicit)
2018-01-09 12:35:47 +00:00
Muhammad Moinur Rahman
5cff5c2c33 ports-mgmt/pkg_cutleaves: Fix creating exclude list for packages with single digit version
PR:		224899
Submitted by:	m.ne@gmx.net
2018-01-07 20:02:12 +00:00
Baptiste Daroussin
39150e2743 Update to 1.10.4
- Fix progression display
- Parse FreeBSD OS version and forbid to install too new packages
2018-01-06 23:50:22 +00:00
Baptiste Daroussin
ed2b8cb729 Update to 1.10.90.7
- Sort fts traversal in repo creation
- Fix floating pint exception when packaging packages with weird elf files
- More test cases for config merge
- Fix running the testsuite on linux and osx
- Fix pkg version regarding flavors
- Add support for creating packages with a hash in their names
- Accept DT_SONAME anywhere in .dynamic
- make pkg version -r imply -R
- Some fixes for the progression display
- Rename some variables in security periodic scripts.
- Parse FreeBSD OS version and forbid to install too new packages
2018-01-06 23:14:19 +00:00
Stefan Eßer
d99781ac9c Fix version number ... I have to remember to manually fix-up this string
before each commit and I'll whether I can create a pre-commit script that
checks this for me.

Reported by:    Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:    antoine (implicit)
2018-01-06 22:43:20 +00:00
Stefan Eßer
8d0f0436f2 Remove spurious trace output left over from debugging.
Reported by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Approved by:	antoine (implicit)
2018-01-06 10:15:17 +00:00
Bryan Drewery
9a32077e0d Update to 3.2.3-85-g190c9bef
- testport: Fix assertion from 0a756b606 to only fire if a FLAVOR is given.
2018-01-05 20:50:33 +00:00
Bryan Drewery
9146130bff Update to 3.2.3-84-g7080656f
- testport: Add missing dependency assertions that bulk was handling.
    - testport: Add missing Invalid Flavor assertion from ec23b9a6c15.
    - testport: Fix missing assertion for port depending on itself via a FLAVOR.
    - pkgclean: Fix creating corrupt repository from the wrong place.
    - Rework bulk pkg-query cache for incremental checks to fix a silent crash.
2018-01-05 17:03:16 +00:00
Stefan Eßer
910a40dd86 Fix pm_islocked function, which could lead to a spurious error message if
used for a port that is not found in the package database.

Reported by:	Tatsuki Makino <tatsuki_makino@hotmail.com>
Approved by:	antoine (implicit)
2018-01-03 11:10:33 +00:00
Bryan Drewery
f7e5e96f39 Update to 3.2.3-66-g83691739
- Improve security of parsing MAX_FILES_<PKGBASE>
2018-01-02 23:23:34 +00:00
Bryan Drewery
fb1737054c Update to 3.2.3-64-gc33e3600
- Fix build of ports with '-' in PKGBASE.
  - Fix some output not being timestamp-prefixed.
2018-01-02 23:01:37 +00:00
Stefan Eßer
b47f5eb864 Add undocumented option --package-format=<fmt>. I'm not sure, that this is
a useful feature, and the txz-format is currently hard-wired in a lot of
places in portmaster, but there has been a request to allow creation of
packages in a non-standard archive format.

Approved by:	antoine (implicit)
2018-01-02 22:44:39 +00:00
Bryan Drewery
16a5938f21 Update to 3.2.3-62-g832b3a1c
- image: Document -m in manpage
  - processonelog: Add case for #error
  - Allow MAX_FILES_<PKGBASE> to override MAX_FILES
2018-01-02 19:47:35 +00:00
Stefan Eßer
dc24a9071d Fix package name: the pattern that gets replaced with the actual version
string at build time had been replaced by a version string from a test
version.

Reported by:	herbert@gojira.at (Herbert J. Skuhra)
Approved by:	antoine (implicit)
2018-01-02 14:26:20 +00:00
Stefan Eßer
e74eb8af18 Increment PORTREVISION, forgotten in previous commit.
Approved by:	antoine (implicit)
2018-01-02 14:05:09 +00:00
Stefan Eßer
177c5fb794 Add --backup-format=<fmt> option to allow faster creation of package
backups with no or less compression than the default of "txz" provides.

Support for different archive format for packages in general could be
provided, but not added at this time, since I'm not convinced that this
would be a useful feature (please let me know, if you disagree ...).

Approved by:    antoine (implicit)
2018-01-02 14:03:35 +00:00
Stefan Eßer
05fc103eac ----------------------------------------------------------------------------
Fix spelling of OPTIONS_FILE.

Approved by:	antoine (implicit)
2017-12-30 22:14:58 +00:00
Stefan Eßer
1525eb96a8 Bump PORT_REVISION, forgotten in previous commit.
Approved by:	antoine (implicit)
2017-12-29 22:14:24 +00:00
Stefan Eßer
81e1fde0e0 Fix regression in kill_bad_children: add missing $ before progcmd ...
Approved by:	antoine (implicit)
2017-12-29 22:13:22 +00:00
Joe Marcus Clarke
9cc44c271c Update to 2.17.15.
* Don't check for direct command use for ONLY_FOR_ARCHS_REASON
  and NOT_FOR_ARCHS_REASON when a specific arch has been specified. [1]
* Preserve an original variable value to make sure the check for copying
  dependecies is actually performed.
* Don't complain about incon installation if the port is a Qt5 port. [2]
* Check that PLIST_FILES entries do not contain %%FOO% notation. [3]
* Check that DOCS and EXAMPLES are defined as OPTIONS when using %%PORTDOCS%%
  and %%PORTEXAMPLES%%. [4]
* Check that if USE_LDCONFIG is defined, then the port installs shared
  objects. [5]
* Check that when USE_KDE is defined, then USES=kde:5 is also defined. [6]
* Ignore flavors when trying to find port directories. [7]
* Revert the fix for 221971 (USE_GITHUB).  More debate is needed here.

PR:		223285 [1]
		223498 [2]
		223539 [3]
		223541 [4]
		223762 [5]
		224140 [6]
		224245 [7]
Submitted by:	adridg [2]
		mat [4]
		224245 [7]
2017-12-28 23:46:54 +00:00
Stefan Eßer
2327d5967a Fix installation from local or remote package including the --packages-build
case. Partially based on patches supplied by Alexander Leidinger.

Reported by:	phk, netchild
Approved by:	antoine (implicit)
2017-12-23 16:36:51 +00:00
Stefan Eßer
1e72c927a7 Add PKG_DEPENDS, EXTRACT_DEPENDS, PATCH_DEPENDS and FETCH_DEPENDS to the
make_dep_list function when called with parameter build-depends-list or
all-depends-list.

Reported by:	phk
Approved by:	antoine (implicit)
2017-12-21 21:44:45 +00:00
Baptiste Daroussin
b1b7d0d33d Remove useless MASTER_SITES entries 2017-12-21 09:14:45 +00:00
Stefan Eßer
5d83816bc6 Update to version 3.18, which already contains all patches required for the
previous version.

Approved by:    antoine (implicit)
2017-12-21 09:11:48 +00:00
Stefan Eßer
aa82bf23b9 Patch package version into the port and install man-page with patched path
for non-standard LOCALBASE. The port used to patch the man-page, but then
installed the unpatched version.

Approved by:	antoine (implicit)
2017-12-21 08:25:55 +00:00
Stefan Eßer
d0a5a6f380 Fix execution of portmaster in a port directory without any port or package
parameters.

Reported by:	lenzi.sergio@gmail.com
Approved by:	antoine (implicit)
2017-12-20 20:05:27 +00:00
Stefan Eßer
6d8a3ed3c9 Add flavor support to routines that convert port origins to shell variable
names. The character '@' is illegal in such names and must be converted to
a legal character same as [-+./].
remobve post processing of "pkg check -dn" output, which was a left-over
from pre-PKG_NG times.

Reported by:	koobs (invalid @), tatsuki_makino@hotmail.com (pkg check)
Approved by:	antoine (implicit)
2017-12-20 12:17:46 +00:00
Stefan Eßer
9d15f65803 Add back local package installation support, which was disabled for PKG_NG.
The patch attached to PR 181450 did no longer apply cleanly, therefore I
edited portmaster to follow the intent and in part the letter of the patch.
This patch should not affect port building in any way. I have no use for
the feature (and I'm still considering to completely remove support for the
installation of packages in portmaster), and therefore did not test that
it performs as expected by the submitter.

PR:		181450
Submitted by:	rozhuk.im@gmail.com
Approved by:	antoine (implicit)
2017-12-19 12:25:34 +00:00
Stefan Eßer
f3376fc92a Add all-depends-list case required for portmaster -t.
Approved by:	antoine (implicit)
2017-12-18 22:22:07 +00:00
Stefan Eßer
3a223ed53d Remove stray double-quote character left from an incomplete edit of that
line (result of directly editing the patch for a trivial change ...)

Approved by:	antoine (implicit)
2017-12-17 13:36:53 +00:00
Stefan Eßer
134638cb8f Add LIB_DEPENDS to dependencies relevant for installation of a package.
Approved by:	antoine (implicit)
2017-12-17 13:32:28 +00:00
Stefan Eßer
0020f526a7 Add support for ports that have been upgraded with a change of both
origin and package name (sans version), as was the case for e.g. the
lang/cython3 port, which was moved to lang/cython@py36 with a package
name change from cython3-$version to py36-cython-$version.

Approved by:	antoine (implicit)
2017-12-17 13:01:28 +00:00
Stefan Eßer
29314a7c31 Fix query for package to be replaced: This could lead to a wrong package
being identified and replaced when the new package is installed.

Add library dependencies to the list of build dependencies to consider.

Reported by:	Robert Huff
Approved by:	antoine (implicit)
2017-12-16 15:17:58 +00:00
Stefan Eßer
f87a111e76 USe correct origin in multiport case (several packages specified on the
command line, which is different from passing "-a").

Reported by:	Robert Huff
Approved by:	antoine (implicit)
2017-12-16 14:05:37 +00:00
Pawel Pekala
aead878569 Update to version 1.6
Changelog:
pfind:
    Add -N option, finds port that provides given package, including flavor

upgrade-ports:
    Fix pkg -> port conversion for ports with one flavor
    Fix backup package path generation
    Fix sorting of flavored ports
    Improve sanity checking procedure
    Work directory can have different name depending on flavor,
    parametrize its usage
    Interactive selection fixes
2017-12-15 22:26:11 +00:00
Stefan Eßer
c934c7e3e4 Add another check for a flavor passed attached to the port directory.
Without this fix, the default flavor was built in specific situations.

Approved by:    antoine (implicit)
2017-12-15 21:01:14 +00:00
Stefan Eßer
df010168c9 Fix patch: The patch had been created from the version used to debug the
previous version's problem and I forgot to
Fix shbang: Remove the -x that had been added for debugging.

Reported by:    (Walter Schwarzenfeld) w.schwarzenfeld@utanet.at
Approved by:	antoine (implicit)
2017-12-15 20:13:38 +00:00
Stefan Eßer
912a5ef5ef Fix regression: The find_new_port function is now invoked from an earlier
place than before flavor	support	was added. Move	its definition to an
appropriate place.

Silence	one pkq	query command that may be called for a non-existing
package	name.

Approved by:    antoine	(implicit)
Reported by:	Milan Obuch, Paul Beard
2017-12-15 17:55:49 +00:00