OSDN Git Service

portsreinstall/current.git
5 years agoFix a syntax destruction at command_do_is_everything_resolved () about /dev/null.
Mamoru Sakaue / MwGhennndo [Thu, 2 Aug 2018 18:20:18 +0000 (02:20 +0800)]
Fix a syntax destruction at command_do_is_everything_resolved () about /dev/null.

 Changes to be committed:
modified:   lib/libcommand_do.sh

5 years agoFixed to suppress warnings of missing requirements.all.full in build of mandatory...
Mamoru Sakaue / MwGhennndo [Thu, 2 Aug 2018 12:43:24 +0000 (20:43 +0800)]
Fixed to suppress warnings of missing requirements.all.full in build of mandatory ports/packages management tools.

 Changes to be committed:
modified:   lib/libmain.sh

5 years agoFixed a bug that some commands were broken when options are specified.
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 16:51:47 +0000 (00:51 +0800)]
Fixed a bug that some commands were broken when options are specified.

 Changes to be committed:
modified:   bin/portsreinstall
modified:   bin/portsreinstall-chroot
modified:   lib/chroot/libcommand_do.sh
modified:   lib/libmain.sh
modified:   share/bin/portsreinstall-chroot-mount
modified:   share/bin/portsreinstall-upgrade

5 years agoMoved command_do_prepare_for_inspect_all_dependencies into the loop of catching port...
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 15:54:58 +0000 (23:54 +0800)]
Moved command_do_prepare_for_inspect_all_dependencies into the loop of catching port option changes so that the changes are correctly reflected.

 Changes to be committed:
modified:   lib/libcommand_do.sh
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoCorrected the broken functionality of skipping reinetallation/installatopn of ports...
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 10:47:17 +0000 (18:47 +0800)]
Corrected the broken functionality of skipping reinetallation/installatopn of ports whose requirements are missing.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoImproved the error message in case of unmount error.
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 10:28:19 +0000 (18:28 +0800)]
Improved the error message in case of unmount error.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/chroot/libmain.sh
modified:   lib/libmain.sh
modified:   lib/libtemp.sh

5 years agoThe description of the previous modification in HISTORY section of the man page was...
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 02:23:18 +0000 (10:23 +0800)]
The description of the previous modification in HISTORY section of the man page was enriched.

 Changes to be committed:
modified:   man/portsreinstall.8

5 years ago[BUG FIX] Flavored requirements were incorrectly inspected.
Mamoru Sakaue / MwGhennndo [Wed, 1 Aug 2018 01:52:57 +0000 (09:52 +0800)]
[BUG FIX] Flavored requirements were incorrectly inspected.

Fixed a bug that pending file systems were not shown in case of mount error by portsreinstall-chroot.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years ago[IMPROVED] Inside- and outside-parent jail/chroot mounting/unmounting operations...
Mamoru Sakaue / MwGhennndo [Tue, 31 Jul 2018 13:49:35 +0000 (21:49 +0800)]
[IMPROVED] Inside- and outside-parent jail/chroot mounting/unmounting operations by portsreinstall-chroot(8) and portsreinstall-chroot-mount(8) are now safely protected each other.

 Changes to be committed:
modified:   bin/portsreinstall-chroot
modified:   lib/chroot-mount/libcommand.sh
modified:   lib/chroot/libcommand.sh
modified:   lib/chroot/libcommand_do.sh
modified:   lib/chroot/libdatabase_maintain.sh
modified:   lib/chroot/libfs.sh
modified:   lib/chroot/libmain.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8
modified:   share/bin/portsreinstall-chroot-mount

5 years ago[IMPROVED] The message at the exit from portsreinstall-chroot(8) builder chroot envir...
Mamoru Sakaue / MwGhennndo [Sun, 29 Jul 2018 12:50:34 +0000 (20:50 +0800)]
[IMPROVED] The message at the exit from portsreinstall-chroot(8) builder chroot environment is modified to be less shocking.

The bugs of portsreinstall-chroot -s option is fixed.

 Changes to be committed:
modified:   lib/chroot/libcommand_do.sh
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   man/portsreinstall.8

5 years ago[NEW] show leaves and show obsolete commands are added.
Mamoru Sakaue / MwGhennndo [Sun, 29 Jul 2018 09:21:05 +0000 (17:21 +0800)]
[NEW] show leaves and show obsolete commands are added.

 Changes to be committed:
modified:   lib/libcommand.sh
modified:   lib/libcommand_show.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libmain.sh
modified:   lib/main/libcommand.sh
modified:   lib/main/libusage.sh
modified:   man/portsreinstall.8

5 years agoFixed the wrong implementation of show errormessage.
Mamoru Sakaue / MwGhennndo [Sun, 29 Jul 2018 06:07:04 +0000 (14:07 +0800)]
Fixed the wrong implementation of show errormessage.

 Changes to be committed:
modified:   lib/libcommand_show.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libmain.sh

5 years agoFixed a bug that -chroot auto didn't block duplicated execution.
Mamoru Sakaue / MwGhennndo [Sun, 29 Jul 2018 05:44:59 +0000 (13:44 +0800)]
Fixed a bug that -chroot auto didn't block duplicated execution.

 Changes to be committed:
modified:   lib/chroot/libcommand.sh
modified:   lib/libmain.sh

5 years agoThe HOSTORY section of the man page is modified to say [IMPROVED] The (Re)installatio...
Mamoru Sakaue / MwGhennndo [Sat, 28 Jul 2018 17:58:43 +0000 (01:58 +0800)]
The HOSTORY section of the man page is modified to say [IMPROVED] The (Re)installation scheme is ..., and always retry failed build.

 Changes to be committed:
modified:   man/portsreinstall.8

5 years agoAdditional syntax fix ofthe previous modification.
Mamoru Sakaue / MwGhennndo [Sat, 28 Jul 2018 17:52:23 +0000 (01:52 +0800)]
Additional syntax fix ofthe previous modification.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoSyntax fix of the previous modification.
Mamoru Sakaue / MwGhennndo [Sat, 28 Jul 2018 17:49:33 +0000 (01:49 +0800)]
Syntax fix of the previous modification.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoThe target version is changed from 4.0.1 to 4.1.0.
Mamoru Sakaue / MwGhennndo [Sat, 28 Jul 2018 16:48:03 +0000 (00:48 +0800)]
The target version is changed from 4.0.1 to 4.1.0.

 Changes to be committed:
modified:   lib/libmain.sh

5 years ago[NEW] errormessage command is added.
Mamoru Sakaue / MwGhennndo [Sat, 28 Jul 2018 16:07:33 +0000 (00:07 +0800)]
[NEW] errormessage command is added.

 Changes to be committed:
modified:   README
modified:   lib/libcommand_show.sh
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   lib/main/libcommand.sh
modified:   lib/main/libusage.sh
modified:   man/portsreinstall.8

5 years agoEdited the man page of portsreinstall-chroot to reflect the new features.
Mamoru Sakaue / MwGhennndo [Wed, 25 Jul 2018 17:45:41 +0000 (01:45 +0800)]
Edited the man page of portsreinstall-chroot to reflect the new features.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall-chroot.8

5 years agoFixed command_do_auto_if_incomplete () to work correctly.
Mamoru Sakaue / MwGhennndo [Wed, 25 Jul 2018 14:05:42 +0000 (22:05 +0800)]
Fixed command_do_auto_if_incomplete () to work correctly.

 Changes to be committed:
modified:   lib/chroot/libcommand_do.sh
modified:   lib/libmain.sh

5 years ago[NEW] auto command is added to portsreinstall-chroot(8).
Mamoru Sakaue / MwGhennndo [Wed, 25 Jul 2018 09:49:55 +0000 (17:49 +0800)]
[NEW] auto command is added to portsreinstall-chroot(8).

 Changes to be committed:
modified:   bin/portsreinstall
modified:   bin/portsreinstall-chroot
modified:   lib/chroot/libcommand.sh
modified:   lib/chroot/libcommand_do.sh
modified:   lib/chroot/libusage.sh
modified:   lib/libdatabase_maintain.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall-chroot.8
modified:   man/portsreinstall.8
modified:   share/bin/portsreinstall-chroot-mount
modified:   share/bin/portsreinstall-upgrade

5 years agoProbably finally fixed the part to detect and recover remained unmount.
Mamoru Sakaue / MwGhennndo [Tue, 24 Jul 2018 18:26:20 +0000 (02:26 +0800)]
Probably finally fixed the part to detect and recover remained unmount.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libfs.sh

5 years ago[NEW] Option -s is added to portsreinstall-chroot(8).
Mamoru Sakaue / MwGhennndo [Tue, 24 Jul 2018 15:50:10 +0000 (23:50 +0800)]
[NEW] Option -s is added to portsreinstall-chroot(8).
fs_chk_mounted () is modified to return correct status.

 Changes to be committed:
modified:   bin/portsreinstall-chroot
modified:   etc/portsreinstall.conf
modified:   lib/chroot/libcommand_do.sh
modified:   lib/chroot/libfs.sh
modified:   lib/chroot/liboptions.sh
modified:   lib/chroot/libusage.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   man/portsreinstall-chroot.8
modified:   man/portsreinstall.8

5 years agoReformed to unify the regularization of file path for df and /etc/fstab.
Mamoru Sakaue / MwGhennndo [Fri, 20 Jul 2018 07:04:20 +0000 (15:04 +0800)]
Reformed to unify the regularization of file path for df and /etc/fstab.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libstr.sh

5 years agoThe previous modification was removed.
Mamoru Sakaue / MwGhennndo [Thu, 19 Jul 2018 12:40:23 +0000 (20:40 +0800)]
The previous modification was removed.

 Changes to be committed:
modified:   lib/libfs.sh

5 years agoFixed the same place again.
Mamoru Sakaue / MwGhennndo [Thu, 19 Jul 2018 01:31:00 +0000 (09:31 +0800)]
Fixed the same place again.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoThe messege at the termination by loss of unionfs lower layer image is fixed not...
Mamoru Sakaue / MwGhennndo [Thu, 19 Jul 2018 00:11:55 +0000 (08:11 +0800)]
The messege at the termination by loss of unionfs lower layer image is fixed not to give  wrong instruction to reset the database.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoFixed a problem that portsreinstall-chroot aborted by error when unmount/clean comman...
Mamoru Sakaue / MwGhennndo [Tue, 17 Jul 2018 15:23:42 +0000 (23:23 +0800)]
Fixed a problem that portsreinstall-chroot aborted by error when unmount/clean command is executed after unmounting once.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years ago[BUG FIX] Breset command discarded the information of the initially installed packages.
Mamoru Sakaue / MwGhennndo [Tue, 17 Jul 2018 15:05:56 +0000 (23:05 +0800)]
[BUG FIX] Breset command discarded the information of the initially installed packages.

 Changes to be committed:
modified:   lib/libdatabase_maintain.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years ago[BUG FIX] Dependency inspection terminated with error when obsolete ports exist.
Mamoru Sakaue / MwGhennndo [Tue, 17 Jul 2018 07:34:29 +0000 (15:34 +0800)]
[BUG FIX] Dependency inspection terminated with error when obsolete ports exist.

 Changes to be committed:
modified:   lib/libdatabase_build.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years agoCorrected the previous modification.
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 14:20:52 +0000 (22:20 +0800)]
Corrected the previous modification.

 Changes to be committed:
modified:   lib/libfs.sh

5 years agoCorrected fs_fix_unionfs_image_if_hidden () to show the proper message.
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 14:16:56 +0000 (22:16 +0800)]
Corrected fs_fix_unionfs_image_if_hidden () to show the proper message.

 Changes to be committed:
modified:   lib/libfs.sh

5 years agoAdditional corrections related to the previous one.
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 09:56:14 +0000 (17:56 +0800)]
Additional corrections related to the previous one.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   lib/upgrade/libcommand_do.sh

5 years ago[BUG FIX] Evaluation of globs was incorrect for the regular expression form.
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 08:34:21 +0000 (16:34 +0800)]
[BUG FIX] Evaluation of globs was incorrect for the regular expression form.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   man/portsreinstall.8

5 years agoThe comments of BUILDCONFLICT and INSTCONFLICT sections of etc/portsreinstall.conf...
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 07:02:20 +0000 (15:02 +0800)]
The comments of BUILDCONFLICT and INSTCONFLICT sections of etc/portsreinstall.conf are enriched.

 Changes to be committed:
modified:   etc/portsreinstall.conf

5 years ago[NEW] BUILDCONFLICT and INSTCONFLICT sections are added to ${LOCALBASE}/etc/portsrein...
Mamoru Sakaue / MwGhennndo [Sun, 15 Jul 2018 06:13:57 +0000 (14:13 +0800)]
[NEW] BUILDCONFLICT and INSTCONFLICT sections are added to ${LOCALBASE}/etc/portsreinstall.conf.

 Changes to be committed:
modified:   etc/portsreinstall.conf
modified:   lib/libconf.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   man/portsreinstall.8

5 years agoModified to show the correct failure reason in case freezing fails.
Mamoru Sakaue / MwGhennndo [Sat, 14 Jul 2018 18:10:35 +0000 (02:10 +0800)]
Modified to show the correct failure reason in case freezing fails.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoFixed the previous wrong modification.
Mamoru Sakaue / MwGhennndo [Sat, 14 Jul 2018 14:50:32 +0000 (22:50 +0800)]
Fixed the previous wrong modification.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoIs is changed to preserve the builder fstab in the temporary database.
Mamoru Sakaue / MwGhennndo [Sat, 14 Jul 2018 13:57:19 +0000 (21:57 +0800)]
Is is changed to preserve the builder fstab in the temporary database.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoIncluded the target version into COMPATIBLE_VERSIONS in main_set_version ().
Mamoru Sakaue / MwGhennndo [Sat, 14 Jul 2018 13:44:06 +0000 (21:44 +0800)]
Included the target version into COMPATIBLE_VERSIONS in main_set_version ().

 Changes to be committed:
modified:   lib/libmain.sh

5 years agoUnmounting failure is changed from error to warning.
Mamoru Sakaue / MwGhennndo [Sat, 14 Jul 2018 13:41:46 +0000 (21:41 +0800)]
Unmounting failure is changed from error to warning.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/chroot/libmain.sh
modified:   lib/libmain.sh

5 years ago[IMPROVED] It is changed to unlock in all error termination.
Mamoru Sakaue / MwGhennndo [Fri, 13 Jul 2018 11:26:34 +0000 (19:26 +0800)]
[IMPROVED] It is changed to unlock in all error termination.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libtemp.sh
modified:   man/portsreinstall.8

5 years agoFix a bug that escaped conflict and old version were not restored after failure of...
Mamoru Sakaue / MwGhennndo [Thu, 12 Jul 2018 02:58:21 +0000 (10:58 +0800)]
Fix a bug that escaped conflict and old version were not restored after failure of frozen package installation.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoFixed pkg_get_remote_repository_version () to get the package correctly, without...
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 18:22:11 +0000 (02:22 +0800)]
Fixed pkg_get_remote_repository_version () to get the package correctly, without including the message output by pkg fetch.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh

5 years ago[BUG FIX] Conflict was not correctly escaped in package installation.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 17:46:22 +0000 (01:46 +0800)]
[BUG FIX] Conflict was not correctly escaped in package installation.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years ago[IMPROVED] It is changed so that ports to freeze are upgraded to the latest available...
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 16:44:29 +0000 (00:44 +0800)]
[IMPROVED] It is changed so that ports to freeze are upgraded to the latest available package version.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years agoFixed bugs and errors in the previous modification.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 14:40:47 +0000 (22:40 +0800)]
Fixed bugs and errors in the previous modification.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoModefined fs_mount () and fs_unmount () to use a custom fstab.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 14:19:29 +0000 (22:19 +0800)]
Modefined fs_mount () and fs_unmount () to use a custom fstab.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoFix the problem that unionfs trouble is recorded as a normal failure.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 13:36:00 +0000 (21:36 +0800)]
Fix the problem that unionfs trouble is recorded as a normal failure.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoModified to correctly register STAGE completion.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 11:06:50 +0000 (19:06 +0800)]
Modified to correctly register STAGE completion.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years ago[BUG FIX] Failure in unmounting of file systems by portsreinstall-chroot(8) left...
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 10:11:56 +0000 (18:11 +0800)]
[BUG FIX] Failure in unmounting of file systems by portsreinstall-chroot(8) left the privilege lock.

 Changes to be committed:
modified:   lib/chroot/libmain.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years agoChanged the reinstallation to stop in case of unfixable loss of unionfs image.
Mamoru Sakaue / MwGhennndo [Wed, 11 Jul 2018 09:07:06 +0000 (17:07 +0800)]
Changed the reinstallation to stop in case of unfixable loss of unionfs image.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   lib/libreinstall.sh

5 years agoFixed to unmount to skip the further if failed.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:57:40 +0000 (02:57 +0800)]
Fixed to unmount to skip the further if failed.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoFixed a bug in mount/unmount file systems.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:47:41 +0000 (02:47 +0800)]
Fixed a bug in mount/unmount file systems.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoWrong detection of unionfs bug when /etc/make.conf is nonexistent.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:42:51 +0000 (02:42 +0800)]
Wrong detection of unionfs bug when /etc/make.conf is nonexistent.

 Changes to be committed:
modified:   lib/libconf.sh
modified:   lib/libmain.sh

5 years agoFix to the same point.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:39:07 +0000 (02:39 +0800)]
Fix to the same point.

 Changes to be committed:
modified:   lib/libfs.sh

5 years agoThe same fix again.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:37:18 +0000 (02:37 +0800)]
The same fix again.

 Changes to be committed:
modified:   lib/libfs.sh

5 years agoFixed again to fs_fix_unionfs_image_if_hidden ().
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:35:16 +0000 (02:35 +0800)]
Fixed again to fs_fix_unionfs_image_if_hidden ().

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoAdditioal fix to the previous.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:31:43 +0000 (02:31 +0800)]
Additioal fix to the previous.

 Changes to be committed:
modified:   lib/libpkgsys.sh

5 years agoFixed fs_fix_unionfs_image_if_hidden () about the previous modification.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 18:28:42 +0000 (02:28 +0800)]
Fixed fs_fix_unionfs_image_if_hidden () about the previous modification.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoModified the unionfs check to show message and exit.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 17:39:37 +0000 (01:39 +0800)]
Modified the unionfs check to show message and exit.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoAdded the previous modification to HISTORY of the man page.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 17:02:05 +0000 (01:02 +0800)]
Added the previous modification to HISTORY of the man page.
[BUG FIX] Unmounting of file systems by portsreinstall-chroot(8) had some problems due to inclusion of r
edundant series of slashes in the path.

 Changes to be committed:
modified:   man/portsreinstall.8

5 years agoFixed a syntax error in the previous modofication.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 16:52:34 +0000 (00:52 +0800)]
Fixed a syntax error in the previous modofication.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoResolved mount/unmount problem sometimes occurs in portsreinstall-chroot.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 16:49:59 +0000 (00:49 +0800)]
Resolved mount/unmount problem sometimes occurs in portsreinstall-chroot.

 Changes to be committed:
modified:   lib/chroot/libfs.sh
modified:   lib/libmain.sh

5 years agoRemoved the contamination in the code of fs_chk_mounted ().
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 16:36:44 +0000 (00:36 +0800)]
Removed the contamination in the code of fs_chk_mounted ().

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoAttempt to improve the previous problem.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 15:28:50 +0000 (23:28 +0800)]
Attempt to improve the previous problem.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoTried to enhance the previous fix.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 15:19:42 +0000 (23:19 +0800)]
Tried to enhance the previous fix.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   lib/libreinstall.sh

5 years agoFixed a still remaining bug related to the previous.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 04:07:09 +0000 (12:07 +0800)]
Fixed a still remaining bug related to the previous.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoFixed a remaining bug related to the previous one.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 04:04:42 +0000 (12:04 +0800)]
Fixed a remaining bug related to the previous one.

 Changes to be committed:
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years agoFixed a bug emerged by the previous modification.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 04:00:33 +0000 (12:00 +0800)]
Fixed a bug emerged by the previous modification.

 Changes to be committed:
modified:   lib/libconf.sh
modified:   lib/libfs.sh
modified:   lib/libmain.sh

5 years ago[IMPROVED] The behavior with union file systems is stabilized.
Mamoru Sakaue / MwGhennndo [Tue, 10 Jul 2018 03:44:24 +0000 (11:44 +0800)]
[IMPROVED] The behavior with union file systems is stabilized.

modified:   Makefile
modified:   bin/portsreinstall
modified:   bin/portsreinstall-chroot
modified:   lib/chroot-mount/libmain.sh
modified:   lib/chroot/libfs.sh
modified:   lib/chroot/libmain.sh
modified:   lib/chroot/liboptions.sh
modified:   lib/libconf.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libdatabase_record.sh
modified:   lib/libdeinstall.sh
new file:   lib/libfs.sh
modified:   lib/libmain.sh
modified:   lib/libmisc.sh
modified:   lib/libpkgsys.sh
modified:   lib/libreinstall.sh
modified:   lib/upgrade/liboptions.sh
modified:   man/portsreinstall.8
modified:   share/bin/portsreinstall-chroot-mount
modified:   share/bin/portsreinstall-upgrade

5 years agoFixed a bug emerged by the previous modification about the error termination at make...
Mamoru Sakaue / MwGhennndo [Mon, 9 Jul 2018 08:42:51 +0000 (16:42 +0800)]
Fixed a bug emerged by the previous modification about the error termination at make stage.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoBug fix related to the previous modification in reinstall_restore_conflicts ().
Mamoru Sakaue / MwGhennndo [Mon, 9 Jul 2018 08:14:08 +0000 (16:14 +0800)]
Bug fix related to the previous modification in reinstall_restore_conflicts ().

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoBug fix related to the previous modification.
Mamoru Sakaue / MwGhennndo [Sun, 8 Jul 2018 22:37:15 +0000 (06:37 +0800)]
Bug fix related to the previous modification.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoImproved the previous modification.
Mamoru Sakaue / MwGhennndo [Sun, 8 Jul 2018 09:21:12 +0000 (17:21 +0800)]
Improved the previous modification.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years agoRemoved unneeded modification on the build of database.
Mamoru Sakaue / MwGhennndo [Sun, 8 Jul 2018 09:08:14 +0000 (17:08 +0800)]
Removed unneeded modification on the build of database.

 Changes to be committed:
modified:   lib/libdatabase_build.sh
modified:   lib/libmain.sh

5 years agoThe conflict detenction and removal are corrected for merged ports.
Mamoru Sakaue / MwGhennndo [Sun, 8 Jul 2018 09:02:11 +0000 (17:02 +0800)]
The conflict detenction and removal are corrected for merged ports.

modified:   lib/libdatabase_build.sh
modified:   lib/libdeinstall.sh
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years ago[BUG FIX] Evaluation of old origins was incomplete for merged ports.
Mamoru Sakaue / MwGhennndo [Sun, 8 Jul 2018 06:46:26 +0000 (14:46 +0800)]
[BUG FIX] Evaluation of old origins was incomplete for merged ports.

modified:   lib/libcommand_forget.sh
modified:   lib/libcommand_pkgs.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years agoUpdated the version.
Mamoru Sakaue / MwGhennndo [Sat, 7 Jul 2018 17:08:14 +0000 (01:08 +0800)]
Updated the version.

 Changes to be committed:
modified:   lib/libmain.sh

5 years agoModified the previous part again.
Mamoru Sakaue / MwGhennndo [Sat, 7 Jul 2018 17:06:00 +0000 (01:06 +0800)]
Modified the previous part again.

 Changes to be committed:
modified:   lib/libreinstall.sh

5 years agoBug fix to the previous modification.
Mamoru Sakaue / MwGhennndo [Sat, 7 Jul 2018 17:01:46 +0000 (01:01 +0800)]
Bug fix to the previous modification.

 Changes to be committed:
modified:   lib/libreinstall.sh

5 years agoCorrented the previous modification about the comment: It was because the test depend...
Mamoru Sakaue / MwGhennndo [Sat, 7 Jul 2018 16:52:30 +0000 (00:52 +0800)]
Corrented the previous modification about the comment: It was because the test depends are included in make missing.

 Changes to be committed:
modified:   lib/libreinstall.sh

5 years agoAh hoc patch at the detenction of missing ports at the build time due to a bug of...
Mamoru Sakaue / MwGhennndo [Sat, 7 Jul 2018 16:25:27 +0000 (00:25 +0800)]
Ah hoc patch at the detenction of missing ports at the build time due to a bug of /usr/ports/Mk to show unrelated ports.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh

5 years ago[IMPROVED] It is changed to detect unflavored ports or ports with old flavor names...
Mamoru Sakaue / MwGhennndo [Thu, 5 Jul 2018 03:21:16 +0000 (11:21 +0800)]
[IMPROVED] It is changed to detect unflavored ports or ports with old flavor names of flavored ports as obsolete.

 Changes to be committed:
modified:   lib/libdatabase_build.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years agoBug fix for the previous change.
Mamoru Sakaue / MwGhennndo [Wed, 4 Jul 2018 16:17:38 +0000 (00:17 +0800)]
Bug fix for the previous change.

 Changes to be committed:
modified:   lib/libreinstall.sh

5 years ago[IMPROVED] The (Re)installation scheme is changed to skip ports whose requirements...
Mamoru Sakaue / MwGhennndo [Wed, 4 Jul 2018 14:33:17 +0000 (22:33 +0800)]
[IMPROVED] The (Re)installation scheme is changed to skip ports whose requirements are not installed at their turns .

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libreinstall.sh
modified:   man/portsreinstall.8

5 years ago[NEW] Option -x is added.
Mamoru Sakaue / MwGhennndo [Tue, 3 Jul 2018 16:03:34 +0000 (00:03 +0800)]
[NEW] Option -x is added.

 Changes to be committed:
modified:   lib/libmain.sh
modified:   lib/libpkgsys.sh
modified:   lib/main/liboptions.sh
modified:   lib/main/libusage.sh
modified:   man/portsreinstall-chroot.8
modified:   man/portsreinstall.8

5 years ago[IMPROVED] It is changed to show messages of reset ports at the stage of reloading...
Mamoru Sakaue / MwGhennndo [Tue, 3 Jul 2018 08:35:38 +0000 (16:35 +0800)]
[IMPROVED] It is changed to show messages of reset ports at the stage of reloading ${LOCALBASE}/etc/portsreinstall.conf.

[BUG FIX] Changes made by commands or in ${LOCALBASE}/etc/portsreinstall.conf were not reflected to dependents of the specified ports in the redo runs with incorrect messages notifying as already inspected merged ports.

 Changes to be committed:
modified:   lib/libcommand_do.sh
modified:   lib/libcommand_forget.sh
modified:   lib/libcommand_pkgs.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libmain.sh
modified:   man/portsreinstall.8

5 years agoCorrection of a typo in the HISTORY section of the manual page.
Mamoru Sakaue / MwGhennndo [Fri, 29 Jun 2018 08:20:22 +0000 (16:20 +0800)]
Correction of a typo in the HISTORY section of the manual page.

 Changes to be committed:
modified:   man/portsreinstall.8

5 years agoREADME is corrected.
Mamoru Sakaue / MwGhennndo [Fri, 29 Jun 2018 06:24:11 +0000 (14:24 +0800)]
README is corrected.

 Changes to be committed:
modified:   README

5 years agoBumped to the release version 4.0.0
Mamoru Sakaue / MwGhennndo [Fri, 29 Jun 2018 06:19:21 +0000 (14:19 +0800)]
Bumped to the release version 4.0.0

Makefile is modified to correct the deinstall target.

 Changes to be committed:
modified:   Makefile
modified:   lib/libmain.sh
modified:   man/portsreinstall-chroot-mount.8
modified:   man/portsreinstall-chroot.8
modified:   man/portsreinstall-upgrade.8
modified:   man/portsreinstall.8

5 years agoVersion 3.3.2+toward_4.0.0_20180629133501
Mamoru Sakaue / MwGhennndo [Fri, 29 Jun 2018 05:43:50 +0000 (13:43 +0800)]
Version 3.3.2+toward_4.0.0_20180629133501

The library structures are largely changed for implementation of new executable scripts.

[NEW] Flavor is supported. Related to this feature, representations of port origins without flavor is recognized to exactly match the unflavored ones.

[NEW] Option -F is added.

[NEW] packupgrade command is added.

[NEW] reset keepstatus command is added.

[NEW] freeze and show freeze commands are added. FREEZE section is added to ${LOCALBASE}/etc/portsreinstall.conf.

[NEW] show conflict_files command is added.

[NEW] CONFLICT section is added to ${LOCALBASE}/etc/portsreinstall.conf.

[NEW] Utilities of portsreinstall-upgrade(8) and portsreinstall-chroot(8) are added.

[NEW] Change of port options made outside of portsreinstall(8) is automatically detected.

[IMPROVED] The (re)installation process is changed to be repeated until all-automatically resolvable problems are resolved. Thus there is no more need to simply repeat redo command to complete the automatic solution.

[IMPROVED] The way of detecting the packages system is changed to check both WITH_PKG and WITH_PKGNG in accordance with the specification change of the ports tree. The descriptions about the packages system is updated as well.

[IMPROVED] reset command is improved to reset the database cleaner and preserve manually set taboo/freeze/need/noneed lists.

[IMPROVED] reconf command is changed to be available any time.

[IMPROVED] Inspection of merged ports is improved to make the deinstallation of old packages effective.

[BUG FIX] pkgsanity command had lost its ability to detect missing files because of the specification change of pkg(8).

[BUG FIX] Command line arguments could have interpreted "add" keyword as a glog matching math/add.

[BUG FIX] Option -k did not work properly with option -g.

 Changes to be committed:
modified:   COPYRIGHT
modified:   INSTALL
modified:   Makefile
modified:   README
modified:   bin/portsreinstall
new file:   bin/portsreinstall-chroot
modified:   etc/portsreinstall.conf
new file:   lib/chroot-mount/libcommand.sh
new file:   lib/chroot-mount/libconf.sh
new file:   lib/chroot-mount/libdatabase_maintain.sh
new file:   lib/chroot-mount/libmain.sh
new file:   lib/chroot-mount/libmessage.sh
new file:   lib/chroot-mount/liboptions.sh
new file:   lib/chroot-mount/libtemp.sh
new file:   lib/chroot-mount/libusage.sh
new file:   lib/chroot/libcommand.sh
new file:   lib/chroot/libcommand_do.sh
new file:   lib/chroot/libdatabase_maintain.sh
new file:   lib/chroot/libfs.sh
new file:   lib/chroot/libmain.sh
new file:   lib/chroot/libmessage.sh
new file:   lib/chroot/liboptions.sh
new file:   lib/chroot/libusage.sh
modified:   lib/libcommand.sh
new file:   lib/libcommand_do.sh
new file:   lib/libcommand_flexconf.sh
new file:   lib/libcommand_forget.sh
new file:   lib/libcommand_pkgs.sh
new file:   lib/libcommand_show.sh
modified:   lib/libconf.sh
modified:   lib/libdatabase_build.sh
new file:   lib/libdatabase_maintain.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libdatabase_record.sh
modified:   lib/libdeinstall.sh
        modified:   lib/libfileedit.sh
new file:   lib/libmain.sh
modified:   lib/libmessage.sh
modified:   lib/libmisc.sh
modified:   lib/liboptions.sh
modified:   lib/libpkgsys.sh
modified:   lib/libprogram.sh
modified:   lib/libreinstall.sh
modified:   lib/libstr.sh
modified:   lib/libtemp.sh
modified:   lib/libusage.sh
new file:   lib/main/libcommand.sh
new file:   lib/main/liboptions.sh
new file:   lib/main/libtemp.sh
copied:     lib/libusage.sh -> lib/main/libusage.sh
new file:   lib/upgrade/libcommand.sh
new file:   lib/upgrade/libcommand_do.sh
new file:   lib/upgrade/libmain.sh
new file:   lib/upgrade/libmessage.sh
new file:   lib/upgrade/liboptions.sh
new file:   lib/upgrade/libusage.sh
new file:   libexec/order_dependencies.awk
new file:   man/portsreinstall-chroot-mount.8
new file:   man/portsreinstall-chroot.8
new file:   man/portsreinstall-upgrade.8
modified:   man/portsreinstall.8
new file:   share/bin/portsreinstall-chroot-mount
new file:   share/bin/portsreinstall-upgrade

6 years ago[NEW] Option -F is added.
Mamoru Sakaue / MwGhennndo [Mon, 22 May 2017 03:37:38 +0000 (12:37 +0900)]
[NEW] Option -F is added.

 Changes to be committed:
modified:   README
modified:   bin/portsreinstall
modified:   lib/liboptions.sh
modified:   lib/libreinstall.sh
modified:   lib/libusage.sh
modified:   man/portsreinstall.8

7 years ago[BUG FIX] pkgsanity command had lost its ability to detect missing files because...
Mamoru Sakaue / MwGhennndo [Mon, 20 Feb 2017 21:32:34 +0000 (06:32 +0900)]
[BUG FIX] pkgsanity command had lost its ability to detect missing files because of the specification change of pkg(8).

modified:   README
modified:   bin/portsreinstall
modified:   lib/libpkgsys.sh
modified:   man/portsreinstall.8

7 years agoBumped to Release version 3.3.2.
Mamoru Sakaue / MwGhennndo [Wed, 15 Feb 2017 03:49:17 +0000 (12:49 +0900)]
Bumped to Release version 3.3.2.

[CHANGED] The permission of the configuration sample file is changed to writable so that pkg(8) will install the configuration file to be writable.

Changes to be committed:
modified:   Makefile
modified:   README
modified:   bin/portsreinstall
modified:   man/portsreinstall.8

7 years agoBumbped the copyright year.
Mamoru Sakaue / MwGhennndo [Tue, 7 Feb 2017 07:55:15 +0000 (16:55 +0900)]
Bumbped the copyright year.

[BUG FIX] "Selection of removing leaf ports" might have failed at ports which has not been installed yet and becomes leaves by REPLACE_* tags in the configuration file.

Changes to be committed:
modified:   COPYRIGHT
modified:   INSTALL
modified:   Makefile
modified:   README
modified:   bin/portsreinstall
modified:   lib/libcommand.sh
modified:   lib/libconf.sh
modified:   lib/libdatabase_build.sh
modified:   lib/libdatabase_query.sh
modified:   lib/libdatabase_record.sh
modified:   lib/libdeinstall.sh
modified:   lib/libfileedit.sh
modified:   lib/libmessage.sh
modified:   lib/libmisc.sh
modified:   lib/liboptions.sh
modified:   lib/libpkgsys.sh
modified:   lib/libprogram.sh
modified:   lib/libreinstall.sh
modified:   lib/libstr.sh
modified:   lib/libtemp.sh
modified:   lib/libusage.sh
modified:   man/portsreinstall.8

7 years agoBumped to the release version.
Mamoru Sakaue / MwGhennndo [Thu, 18 Aug 2016 04:44:56 +0000 (13:44 +0900)]
Bumped to the release version.

Changes to be committed:
modified:   bin/portsreinstall

7 years ago[BUG FIX] Error messages from failed detection of option configuration were not output.
Mamoru Sakaue / MwGhennndo [Thu, 18 Aug 2016 04:21:11 +0000 (13:21 +0900)]
[BUG FIX] Error messages from failed detection of option configuration were not output.

Changes to be committed:
modified:   README
modified:   bin/portsreinstall
modified:   lib/libdatabase_build.sh
modified:   man/portsreinstall.8

7 years ago[BUG FIX] Detection of the default option configuration was unsuccessful or wrong...
Mamoru Sakaue / MwGhennndo [Wed, 17 Aug 2016 05:56:40 +0000 (14:56 +0900)]
[BUG FIX] Detection of the default option configuration was unsuccessful or wrong when /etc/make.conf was configured; some ports caused aborting in the phase of inspection.

Changes to be committed:
modified:   README
modified:   bin/portsreinstall
modified:   lib/libdatabase_build.sh
modified:   man/portsreinstall.8

7 years agoBumped to a release version 3.3.0.
Mamoru Sakaue / MwGhennndo [Sun, 10 Jul 2016 03:55:44 +0000 (12:55 +0900)]
Bumped to a release version 3.3.0.

Changes to be committed:
modified:   README
modified:   bin/portsreinstall
modified:   man/portsreinstall.8