Bug 260477

Summary: www/webtrees20: update to 2.0.19
Product: Ports & Packages Reporter: Andre Rikkert de Koe - ARK-ICT <freebsd-ports>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: fernape
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://webtrees.net/blog/
Attachments:
Description Flags
patch in diff format freebsd-ports: maintainer-approval+

Description Andre Rikkert de Koe - ARK-ICT 2021-12-16 16:39:10 UTC
Created attachment 230181 [details]
patch in diff format

## 
## testresults by patching current webtrees20-2.0.17 with the submitted webtrees20-2.0.19.diff
## 1) cat the test script
## 2) run the test script
##

root@web-int:~/newport2/webtrees20 # cat testport 
#!/bin/sh
set -x
set -e
:
: apply the update
:
uname -a
cd /usr/ports/www/webtrees20/
make deinstall
make clean
patch < /root/newport2/webtrees20/workdir/webtrees20-2.0.19.diff
: 
: Testing with FreeBSD port tool
:
pkg which $(which port)
port test
:
: Testing according to https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-testing.html
:
make stage
make stage-qa
make package
make install
make deinstall
make clean
chown testuser .
echo "id; make package" | su testuser
chown root .
make package
make clean
root@web-int:~/newport2/webtrees20 # 
root@web-int:~/newport2/webtrees20 # 
root@web-int:~/newport2/webtrees20 # ./testport
+ set -e
+ :
+ : apply the update
+ :
+ uname -a
FreeBSD web-int 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC  amd64
+ cd /usr/ports/www/webtrees20/
+ make deinstall
===>  Deinstalling for webtrees20
===>   Deinstalling webtrees20-2.0.17
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	webtrees20: 2.0.17

Number of packages to be removed: 1

The operation will free 67 MiB.
[1/1] Deinstalling webtrees20-2.0.17...
[1/1] Deleting files for webtrees20-2.0.17: 100%
=========================================================================
There remains some webtrees local configuration in /usr/local/www/webtrees20/data.

If you plan on reinstalling webtrees, leave this configuration there and
it will be reused by the new version.

If you are completely uninstalling webtrees, please delete this directory
and /usr/local/www/webtrees20 by hand.

You may want to save your GEDCOM file(s) from the MySQL server, too.  To
do that, you will need to reinstall webtrees, log on as an administrator
and select:
	My Page >> GEDCOM Administration >> Download
This will let you save your family tree data in a foo.ged GEDCOM file
which you can upload into most other ancestry software or websites.
=========================================================================
+ make clean
===>  Cleaning for webtrees20-2.0.17
+ patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/www/webtrees20/Makefile b/www/webtrees20/Makefile
|index bcba121acd28..402712fcd799 100644
|--- a/www/webtrees20/Makefile
|+++ b/www/webtrees20/Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/www/webtrees20/distinfo b/www/webtrees20/distinfo
|index 4a64bdb0c4f8..264979ef6c1f 100644
|--- a/www/webtrees20/distinfo
|+++ b/www/webtrees20/distinfo
--------------------------
Patching file distinfo using Plan A...
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/www/webtrees20/pkg-plist b/www/webtrees20/pkg-plist
|index a168aeb5a1b6..4b792c97d15d 100644
|--- a/www/webtrees20/pkg-plist
|+++ b/www/webtrees20/pkg-plist
--------------------------
Patching file pkg-plist using Plan A...
Hunk #1 succeeded at 220.
Hunk #2 succeeded at 307.
Hunk #3 succeeded at 472.
Hunk #4 succeeded at 524.
Hunk #5 succeeded at 1309.
Hunk #6 succeeded at 1757.
Hunk #7 succeeded at 2400.
Hunk #8 succeeded at 2433.
Hunk #9 succeeded at 2842.
Hunk #10 succeeded at 2852.
Hunk #11 succeeded at 2886.
Hunk #12 succeeded at 3379.
Hunk #13 succeeded at 4998.
Hunk #14 succeeded at 5023.
Hunk #15 succeeded at 5041.
Hunk #16 succeeded at 5076.
Hunk #17 succeeded at 5104.
Hunk #18 succeeded at 5133.
Hunk #19 succeeded at 5142.
Hunk #20 succeeded at 5157.
Hunk #21 succeeded at 5208.
Hunk #22 succeeded at 5223.
Hunk #23 succeeded at 5265.
Hunk #24 succeeded at 5279.
Hunk #25 succeeded at 5310.
Hunk #26 succeeded at 5353.
Hunk #27 succeeded at 5379.
Hunk #28 succeeded at 5409.
Hunk #29 succeeded at 5424.
Hunk #30 succeeded at 5444.
Hunk #31 succeeded at 5462.
Hunk #32 succeeded at 5488.
Hunk #33 succeeded at 5496.
Hunk #34 succeeded at 5655.
Hunk #35 succeeded at 5668.
Hunk #36 succeeded at 5681.
Hunk #37 succeeded at 5704.
Hunk #38 succeeded at 5956.
Hunk #39 succeeded at 5996.
Hunk #40 succeeded at 6035.
Hunk #41 succeeded at 7004.
Hunk #42 succeeded at 7314.
Hunk #43 succeeded at 7336.
Hunk #44 succeeded at 7405.
Hunk #45 succeeded at 7455.
Hunk #46 succeeded at 7501.
Hunk #47 succeeded at 7953.
Hunk #48 succeeded at 7968.
Hunk #49 succeeded at 8003.
Hunk #50 succeeded at 8044.
Hunk #51 succeeded at 8097.
Hunk #52 succeeded at 8292.
Hunk #53 succeeded at 8354.
Hunk #54 succeeded at 8365.
Hunk #55 succeeded at 8400.
Hunk #56 succeeded at 8423.
Hunk #57 succeeded at 8466.
Hunk #58 succeeded at 8885.
done
+ :
+ : Testing with FreeBSD port tool
+ :
+ which port
+ pkg which /usr/local/bin/port
/usr/local/bin/port was installed by package porttools-1.10
+ port test
===> Using ports tree /usr/ports
===> Validating port with portlint
looks fine.
===> flags: PREFIX=/tmp/webtrees20-2.0.19 NO_DEPENDS=yes PKG_DBDIR=/tmp/pkg_db.nb7sMGqG PORTSDIR=/usr/ports --
===> Cleaning workspace before port test
===>  Cleaning for webtrees20-2.0.19
===>  License GPLv3+ accepted by the user
===> Fetching all distfiles required by webtrees20-2.0.19 for building
===>  Extracting for webtrees20-2.0.19
=> SHA256 Checksum OK for webtrees-2.0.19.zip.
===>  Patching for webtrees20-2.0.19
===>  Configuring for webtrees20-2.0.19
===>  Staging for webtrees20-2.0.19
===>   Generating temporary packing list
/bin/mkdir -p /usr/ports/www/webtrees20/work/stage/tmp/webtrees20-2.0.19/www/webtrees20
====> Compressing man pages (compress-man)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
===>  Building package for webtrees20-2.0.19
===>  Installing for webtrees20-2.0.19
===>  Checking if webtrees20 is already installed
===>   Registering installation for webtrees20-2.0.19
Installing webtrees20-2.0.19...
The following configuration will need to be done prior to using
webtrees for the first time:

1. For installation on the apache web server, add the following to your
   apache site configuration, and restart the web server:

	Alias /webtrees20 /tmp/webtrees20-2.0.19/www/webtrees20/

	### Add the AcceptPathInfo directive only for Apache 2.0.30
	### or later.
	AcceptPathInfo On

	<Directory /tmp/webtrees20-2.0.19/www/webtrees20>
		AllowOverride None
		Order Allow,Deny
		Allow from all
	</Directory>

2. Webtrees uses a MySQL database.  Configure a MySQL webtrees user
   and database using commands such as (substitute PASSWD for something
   of your own choosing):

	mysql> create user webtrees20@localhost identified by PASSWD;
	mysql> create database webtrees20;
	mysql> grant all on webtrees20.* to webtrees20@localhost;

3. Configure webtrees by browsing to the webtrees URL:
	http://your.server.com/webtrees20/
   and you should be taken to the setup wizard, which will lead you
   through setting up webtrees: asking for the database server, database
   user and database name, and then assist you in creating a webtrees
   admin account, etc.

===>  Checking pkg info
webtrees20-2.0.19
Name           : webtrees20
Version        : 2.0.19
Installed on   : Thu Dec 16 17:25:33 2021 CET
Origin         : www/webtrees20
Architecture   : FreeBSD:12:*
Prefix         : /tmp/webtrees20-2.0.19
Categories     : www
Licenses       : GPLv3+
Maintainer     : freebsd-ports@misc.ark-ict.nl
WWW            : http://webtrees.net/
Comment        : Online genealogy viewer (for PHP 7.1-7.4)
Annotations    :
	cpe            : cpe:2.3:a:webtrees:webtrees:2.0.19:::::freebsd12:x64
Flat size      : 71.9MiB
Description    :
webtrees is the web's leading online collaborative genealogy
application. webtrees works from standard GEDCOM files, and is
therefore compatible with every major desktop application.  webtrees
aims to be efficient and effective by using the right combination
of third-party tools, design techniques and open standards.

WWW: http://webtrees.net/

===>  Checking shared library dependencies
===>  Deinstalling for webtrees20
===>   Deinstalling webtrees20-2.0.19
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	webtrees20: 2.0.19

Number of packages to be removed: 1

The operation will free 72 MiB.
[1/1] Deinstalling webtrees20-2.0.19...
[1/1] Deleting files for webtrees20-2.0.19: 100%
=========================================================================
There remains some webtrees local configuration in /tmp/webtrees20-2.0.19/www/webtrees20/data.

If you plan on reinstalling webtrees, leave this configuration there and
it will be reused by the new version.

If you are completely uninstalling webtrees, please delete this directory
and /tmp/webtrees20-2.0.19/www/webtrees20 by hand.

You may want to save your GEDCOM file(s) from the MySQL server, too.  To
do that, you will need to reinstall webtrees, log on as an administrator
and select:
	My Page >> GEDCOM Administration >> Download
This will let you save your family tree data in a foo.ged GEDCOM file
which you can upload into most other ancestry software or websites.
=========================================================================
===> Extra files and directories check
===> Cleaning up after port test
===>  Cleaning for webtrees20-2.0.19
===>  Removing existing /tmp/webtrees20-2.0.19 dir
===> Done.
+ :
+ : Testing according to https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-testing.html
+ :
+ make stage
===>  License GPLv3+ accepted by the user
===>   webtrees20-2.0.19 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by webtrees20-2.0.19 for building
===>  Extracting for webtrees20-2.0.19
=> SHA256 Checksum OK for webtrees-2.0.19.zip.
===>  Patching for webtrees20-2.0.19
===>  Configuring for webtrees20-2.0.19
===>  Staging for webtrees20-2.0.19
===>   webtrees20-2.0.19 depends on file: /usr/local/include/php/main/php.h - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/calendar.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/dom.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/filter.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/gd.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/json.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/pdo_mysql.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/session.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/simplexml.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/xml.so - found
===>   Generating temporary packing list
/bin/mkdir -p /usr/ports/www/webtrees20/work/stage/usr/local/www/webtrees20
====> Compressing man pages (compress-man)
+ make stage-qa
====> Running Q/A tests (stage-qa)
/!\ To run stage-qa automatically add DEVELOPER=yes to your environment /!\
+ make package
===>  Building package for webtrees20-2.0.19
+ make install
===>  Installing for webtrees20-2.0.19
===>  Checking if webtrees20 is already installed
===>   Registering installation for webtrees20-2.0.19
Installing webtrees20-2.0.19...
The following configuration will need to be done prior to using
webtrees for the first time:

1. For installation on the apache web server, add the following to your
   apache site configuration, and restart the web server:

	Alias /webtrees20 /usr/local/www/webtrees20/

	### Add the AcceptPathInfo directive only for Apache 2.0.30
	### or later.
	AcceptPathInfo On

	<Directory /usr/local/www/webtrees20>
		AllowOverride None
		Order Allow,Deny
		Allow from all
	</Directory>

2. Webtrees uses a MySQL database.  Configure a MySQL webtrees user
   and database using commands such as (substitute PASSWD for something
   of your own choosing):

	mysql> create user webtrees20@localhost identified by PASSWD;
	mysql> create database webtrees20;
	mysql> grant all on webtrees20.* to webtrees20@localhost;

3. Configure webtrees by browsing to the webtrees URL:
	http://your.server.com/webtrees20/
   and you should be taken to the setup wizard, which will lead you
   through setting up webtrees: asking for the database server, database
   user and database name, and then assist you in creating a webtrees
   admin account, etc.

+ make deinstall
===>  Deinstalling for webtrees20
===>   Deinstalling webtrees20-2.0.19
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	webtrees20: 2.0.19

Number of packages to be removed: 1

The operation will free 72 MiB.
[1/1] Deinstalling webtrees20-2.0.19...
[1/1] Deleting files for webtrees20-2.0.19: 100%
=========================================================================
There remains some webtrees local configuration in /usr/local/www/webtrees20/data.

If you plan on reinstalling webtrees, leave this configuration there and
it will be reused by the new version.

If you are completely uninstalling webtrees, please delete this directory
and /usr/local/www/webtrees20 by hand.

You may want to save your GEDCOM file(s) from the MySQL server, too.  To
do that, you will need to reinstall webtrees, log on as an administrator
and select:
	My Page >> GEDCOM Administration >> Download
This will let you save your family tree data in a foo.ged GEDCOM file
which you can upload into most other ancestry software or websites.
=========================================================================
+ make clean
===>  Cleaning for webtrees20-2.0.19
+ chown testuser .
+ echo 'id; make package'
+ su testuser
uid=1003(testuser) gid=1003(testuser) groups=1003(testuser)
===>  License GPLv3+ accepted by the user
===>   webtrees20-2.0.19 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by webtrees20-2.0.19 for building
===>  Extracting for webtrees20-2.0.19
=> SHA256 Checksum OK for webtrees-2.0.19.zip.
===>  Patching for webtrees20-2.0.19
===>  Configuring for webtrees20-2.0.19
===>  Staging for webtrees20-2.0.19
===>   webtrees20-2.0.19 depends on file: /usr/local/include/php/main/php.h - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/calendar.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/dom.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/filter.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/gd.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/json.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/pdo_mysql.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/session.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/simplexml.so - found
===>   webtrees20-2.0.19 depends on file: /usr/local/lib/php/20190902-zts/xml.so - found
===>   Generating temporary packing list
/bin/mkdir -p /usr/ports/www/webtrees20/work/stage/usr/local/www/webtrees20
====> Compressing man pages (compress-man)
===>  Building package for webtrees20-2.0.19
+ chown root .
+ make package
+ make clean
===>  Cleaning for webtrees20-2.0.19
root@web-int:~/newport2/webtrees20 # 
root@web-int:~/newport2/webtrees20 #
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2021-12-16 16:39:10 UTC
Maintainer informed via mail
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-12-22 16:26:30 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f0f0a4b744a52c0f1777b752e4834790f166ceab

commit f0f0a4b744a52c0f1777b752e4834790f166ceab
Author:     Andre Rikkert de Koe - ARK-ICT <freebsd-ports@andre.rikkertdekoe.nl>
AuthorDate: 2021-12-22 13:45:21 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-12-22 16:24:50 +0000

    www/webtrees20: update to 2.0.19

    ChangeLog: https://webtrees.net/blog/

    PR:     260477
    Reported by:    freebsd-ports@andre.rikkertdekoe.nl (maintainer)

 www/webtrees20/Makefile  |    4 +-
 www/webtrees20/distinfo  |    6 +-
 www/webtrees20/pkg-plist | 1327 +++++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 1330 insertions(+), 7 deletions(-)
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2021-12-22 16:26:56 UTC
Committed,

Thanks!
Comment 4 Andre Rikkert de Koe - ARK-ICT 2021-12-22 18:17:03 UTC
Thanks for the fast commit.
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2021-12-22 21:13:59 UTC
(In reply to Andre Rikkert de Koe - ARK-ICT from comment #4)
No problem. Thanks for the PR!

Cheers!