Commit Graph

1202 Commits

Author SHA1 Message Date
Rene Ladan
affecc3c06 Detect flavored dependencies in Tools/scripts/rmport and add myself to the copyright. 2018-03-26 16:55:52 +00:00
Bryan Drewery
d7b83ead05 Show errors for duplicate source entries. 2018-01-25 20:56:18 +00:00
Mathieu Arnold
fb30d2bf17 Run Tools/scripts/mfh through devel/hs-ShellCheck.
SC2068: Double quote array expansions to avoid re-splitting elements.
SC2034: revs appears unused. Verify it or export it.
SC2039: In POSIX sh, XXX is undefined.
    type     -> command -v
    echo -n  -> printf
    read -p  -> printf + read

SC2162: read without -r will mangle backslashes.
SC2086: Double quote to prevent globbing and word splitting.

Sponsored by:	Absolight
2018-01-23 15:53:56 +00:00
Mathieu Arnold
033977e70f Follow up on last commit and actually allow editing
the commit message again.

PR:		224634
Reported by:	yuri
Sponsored by:	Absolight
2017-12-29 13:20:47 +00:00
Mathieu Arnold
30c4ca5784 Generic FLAVORS work.
- Enable FLAVORS.
- Make make describe flavors aware.
- Add a qa check for unique package names amongst flavors.
- Make MOVEDlint understand flavors.
- Add a bit of sanity check to make sure FLAVORS stay lowercase.
- Various fixes.

Reviewed by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12577
2017-11-30 15:33:29 +00:00
Mathieu Arnold
c77bdeb9c9 Commit the actual patch I tested
Sponsored by:	Absolight
2017-11-10 12:01:33 +00:00
Mathieu Arnold
4bcdfb8685 Cleanup resurrected processing.
There is no need to have a resurrected array, it is only used once, so
move the resurrected printf where it belongs.

Sponsored by:	Absolight
2017-11-10 11:59:28 +00:00
Mathieu Arnold
0f100e6d8d Don't blame the person that removed a resurrected.
Sponsored by:	Absolight
2017-11-10 11:59:25 +00:00
Mathieu Arnold
6dbe1c10eb Add braces around all if/else.
Sponsored by:	Absolight
2017-11-10 11:59:17 +00:00
Mathieu Arnold
48fc012063 Re-enable blame (was annotate) with svn and git support.
ak@ asked that I remove the unused error array, and I went to have a
look at what it was actually used for back in the day.  It seemed better
to re-enable the blame feature instead of removing it.

Sponsored by:	Absolight
2017-10-30 13:56:49 +00:00
Mathieu Arnold
47ceacdd9d The final sort was missing from some places.
Sponsored by:	Absolight
2017-10-30 11:23:17 +00:00
Mathieu Arnold
dba0d85150 Do not add $FreeBSD$ to the patch files.
Sponsored by:	Absolight
2017-08-23 13:59:41 +00:00
Bryan Drewery
51eb8c5226 Fix resurrected ports not being warned about if they have a new dest entry.
This now warns about these 2 ports as needing to be marked as resurrected:

    archivers/brotli|archivers/py-brotli|2016-11-24|Brotli is a python module
    devel/libbrotli|archivers/brotli|2017-07-12|meta project no longer required to build libs

    www/rubygem-jquery-rails||2017-01-07|Has expired: Depends on deprecated www/rubygem-railties
    www/rubygem-jquery-rails4|www/rubygem-jquery-rails|2017-03-27|Remove PKGNAMESUFFIX
2017-08-07 17:32:31 +00:00
Bryan Drewery
5bb2bd091b Allow editing commit message on failure and save it somewhere if declined.
With hat:       portmgr
2017-06-12 17:31:56 +00:00
Mathieu Arnold
2249c20332 Fix some FreeBSD.org case of bad case.
Sponsored by:	Absolight
2017-05-04 14:58:54 +00:00
Adam Weinberger
bde099625e Add some usage instructions to the top of the mfh script. In particular,
note that multiple revisions should appear chronologically.
2017-05-01 01:06:15 +00:00
Larry Rosenman
62de852b7f Update Tools/scripts/rmport to ignore commented out EXPIRATION_DATE lines
Reviewed by: 	crees (maintainer)
Approved by:	rene (portmgr, mentor), adamw (portmgr, mentor), crees (maintainer)
Differential Revision:	https://reviews.freebsd.org/D10548
2017-04-30 17:45:31 +00:00
Emanuel Haupt
f361fdd649 Fix shebang. If /usr/bin/env is used the -w flag can't be passed after perl.
Use 'use warnings;' instead.

While here remove distinfochecker. It's not needed anymore as it was written
for a simple purpose eleven years ago.
2017-04-24 17:27:58 +00:00
Rene Ladan
4697095586 Reset pgollucci@ as maintainer after 19 months of inactivity
With hat:	portmgr-secretary
2017-03-29 20:33:05 +00:00
Rene Ladan
4d57cc4370 Set maintainer of these scripts to portmgr as the previous maintainers retired. 2017-02-12 20:43:04 +00:00
Tijl Coosemans
6d324c1f70 - Remove inclusion of bsd.default-versions.mk from ftp/curl/Makefile so
bsd.default-versions.mk can rely on ARCH being defined.
- In bsd.port.mk move inclusion of bsd.default-versions.mk from the
  pre-makefile section to the options section so the variables can be used
  earlier.  Also put the bit of code sitting between the options section and
  the pre-makefile section into the options section.
- Remove last few cases where ports set WITH_OPENSSL_PORT.  This variable is
  handled in bsd.default-versions.mk and some ports were setting it after
  including bsd.port.options.mk.  After FreeBSD 9 EoL all but a few ports,
  and then only when setting non-default options, work without setting that
  variable.

PR:		215996
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-02-05 21:20:24 +00:00
Mathieu Arnold
6f4d50b306 Make sure the merge is done on the latest branch.
Also, make the branch argument optional.

Discussed with:	swills
Sponsored by:	Absolight
2017-01-03 18:33:19 +00:00
Mathieu Arnold
9d7a606915 Use make(1) to extract variables from a Makefile, not grep.
PR:		212486
Submitted by:	mat
Approved by:	crees (maintainer)
Sponsored by:	Absolight
2016-09-08 12:49:02 +00:00
Matthew Seaman
27114e8d9c Fix the '-a' option to ${PORTSDIR}/Tools/scripts/addport
Summary:
Currently addport -a ends up running a command line like:

   make  PORTSDIR="/tmp/ap.BsOuZJBy" clean check-categories

where the temporary directory has only parts of the ports tree
(specifically bits under ${PORTSDIR}/Mk) checked out.  This can't work
as 'make check-categories' needs to see the entire ports tree checked
out.

Instead, run the checks specified by '-a' and '-t' with the value of
$PORTSDIR from the environment.

Reviewers: crees

Reviewed By: crees

Subscribers: mat

Differential Revision: https://reviews.freebsd.org/D7525
2016-08-17 09:14:35 +00:00
Mathieu Arnold
ab87b34d4e Echo where the merge was done, so one can go and have a look.
Sponsored by:	Absolight
2016-08-15 10:01:58 +00:00
Mathieu Arnold
e47d0d2e02 fixup last updates, and try to be better with slave ports.
the case $? needs to have the exit status of the grep, not the awk line,
so remove the awk line, it was not really helpful anyway.

Also, with slave ports, most of the time, they don't have
(PORT|DIST)VERSION,  try to use CATEGORIES, PKGNAMEPREFIX or
PKGNAMESUFFIX.

PR:		211243
Submitted by:	mat
Approved by:	maintainer timeout
Sponsored by:	Absolight
2016-08-03 13:27:47 +00:00
Antoine Brodin
47c247f2d7 MFportsindexbuild:
- build INDEX-12
- remove no longer used scp/ssh
2016-07-17 12:26:00 +00:00
Mathieu Arnold
75a1df13c5 Refactor a bit.
Sponsored by:	Absolight
2016-06-17 14:58:36 +00:00
Sofian Brabez
0789531c19 - Update to last version
Differential Revision:	https://reviews.freebsd.org/D6827
2016-06-13 15:22:32 +00:00
Mathieu Arnold
7fcd63424c Add a script to indent make(1)'s .if/.for blocks.
Sponsored by:	Absolight
2016-06-02 14:13:57 +00:00
Rene Ladan
6544d8b819 Remove a stale comment in Tools/scripts/rmport 2016-05-17 17:53:11 +00:00
Rene Ladan
8e33c1e0fa As a frequent user of the rmport script, it was time for some improvements:
- allow PORTSDIR to be a symbolic link when looking for expired ports or
  dependent ports
- allow for trailing slashes when specifying ports as cat/name. This prevents
  the port being a false positive for itself when the Makefile mentions the
  port name (e.g., in PLIST_FILES)
- fetch possibly open PRs via Bugzilla, GNATS is long gone. Remove the
  version that used freefall. Thanks to crees for pretty-printing the results.
- forcibly delete the temporary checkout to prevent rm(1) from asking for
  confirmation on each file in .svn
- add myself as author

Approved by:	maintainer (crees)
Differential Revision:	https://reviews.freebsd.org/D6396
2016-05-17 17:51:59 +00:00
Antoine Brodin
b7f3384cc4 MFportsindexbuild: build INDEX-9 with fmake 2016-05-01 08:04:32 +00:00
Mathieu Arnold
21bc5c0345 Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.
While there replace USE_SQLITE=x by USES=sqlite:x.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:13:38 +00:00
Matthias Andree
1d10e55b18 Revert escaped un-approved commit.
This was not meant to be applied yet, as it is not yet completely developed.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192706
2016-04-12 06:31:59 +00:00
Matthias Andree
4b7fc05407 Drop maintainership.
If portmgr@ needs to commit against better advise, two years after this was
first discussed without any motion of the upstream.

Drop a few more maintainerships along the way.
2016-04-12 05:54:17 +00:00
John Marino
4b4fde4cf6 redundant-opt-files script: Fix deleted port output
The last change was flawed; for deleted ports it was writing out the
origin, but it should be writing out the appropriate ports cache
database directory.
2016-03-24 21:33:36 +00:00
John Marino
4a68b19d0e redundant-opt-files script: Handle cache for deleted ports
The redundant-opt-file scripts assumes that if options are cached,
then the port that it was created by still exists.  This, of course, is
a terrible assumption.

If the cached options refer to a port that has since been deleted or
otherwise no longer exists, just print the origin and continue.  The
normal use case is that the origin will be piped to xargs rm -rf which
will purge the obsolete directory as desired.
2016-03-24 20:16:59 +00:00
John Marino
aafd191750 redundant-opt-files.sh script: validate PORTSDIR value
Before checking validity of $db_dir, verify $portdir is valid and eject if
it is not.  This provides a better error message when PORTSDIR is invalid.
2016-03-17 13:18:21 +00:00
Olli Hauer
21b3db57df - add Approved by: line 2016-03-15 16:52:10 +00:00
John Marino
75229eb39f Add new tool script: redundant-opt-files.sh
I got a request to make Synth identify "redundant" cached option files,
where "redundant" means the saved port options are identical to the
default options.  For Synth (and portmaster?) which use the port's
cache options, these redundant files are somewhat of a liability.  At
best they do nothing (Synth assumes default options) and at worst they
will cause a future build to stop if the maintainer changes the port
options later.

This situation is avoidable.  Rather than build detection into Synth,
I decided to write a generic shell script for ports.  When run, it
will display the full path to the port's options directory if the
cached options are the same as the defaults.  This output is suitable
to pipe to "xargs rm -rf" to remove all the redundant options in a
single command.
2016-02-14 09:59:08 +00:00
Erwin Lansing
a97ccb88cb Remove spurious quotation mark.
PR:		205304
Submitted by:	Stig Inge Lea Bjoernsen <stiginge@pvv.org>
Sponsored by:	DK Hostmaster A/S
2015-12-22 13:31:14 +00:00
Mathieu Arnold
d984ba9704 Allow running this with a negative revision number, to backout a commit.
Sponsored by:	Absolight
2015-12-18 15:29:38 +00:00
Ruslan Makhmatkhanov
ea6db28b34 Let addport script to use svnlite if available
1. Check if svnlite is available and use it by default, else: use svn
2. Dehardcode svn binary name in shell calls, to make both svn/svnlite
work

Approved by:	crees (maintainer)
2015-09-25 19:29:48 +00:00
Christian Weisgerber
11982cf73b Default to repo.FreeBSD.org for commits, as urged by our repo meister.
Approved by:	portmgr (mat)
2015-09-20 20:56:59 +00:00
Christian Weisgerber
4399edafd2 Default to repo.FreeBSD.org for commits, as urged by our repo meister.
Approved by:	crees
2015-09-15 15:31:54 +00:00
Mathieu Arnold
1124f4f901 Actually allow only one revision to be merged.
Pointy hat to:	mat
Sponsored by:	Absolight
2015-09-07 12:25:29 +00:00
Mathieu Arnold
628561d9c8 Support merging multiple revisions in one go with mfh.
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3553
2015-09-07 12:23:51 +00:00
Mathieu Arnold
21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00
Erwin Lansing
53695d99c4 Drop building 8.x
Sponsored by:	DK Hostmaster A/S
2015-08-01 09:58:21 +00:00