Changes between Version 3 and Version 4 of SummerOfCode2017
- Timestamp:
- Oct 20, 2019, 10:24:03 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SummerOfCode2017
v3 v4 5 5 6 6 || '''Project''' || '''Student''' || '''Mentor''' || 7 || [wiki:SummerOfCode2017#migrate Adding migration action to port command] || Umesh Kumar Singla|| [wiki:pixilla Bradley Giesbrecht] ||7 || [wiki:SummerOfCode2017#migrate Adding migration action to port command] || [wiki:umeshksingla Umesh Singla] || [wiki:pixilla Bradley Giesbrecht] || 8 8 || [wiki:SummerOfCode2017#bot-ci Bot and CI for macports-ports] || [wiki:l2dy Zero King] || [wiki:mojca Mojca Miklavec], [wiki:cal Clemens Lang] || 9 9 10 10 == Adding migration action to port command == #migrate 11 11 12 A MacPorts installation is designed to work with a particular OS and a particular hardware architecture. After major system changes like an OS upgrade or hardware change, currently, MacPorts users have to follow a set of manual migration instructions to ensure a smooth transition. The purpose of this project is to automate the processes described in the migration documentation ,so that following the migration steps is no longer challenging for casual users or for anyone. The migration tool would install a new port command and using PortIndex, it would uninstall and reinstall the requested ports with variants.12 A MacPorts installation is designed to work with a particular OS and a particular hardware architecture. After major system changes like an OS upgrade or hardware change, currently, MacPorts users have to follow a set of manual migration instructions to ensure a smooth transition. The purpose of this project is to automate the processes described in the migration documentation so that following the migration steps is no longer challenging for casual users or for anyone. The migration tool would install a new port command and using PortIndex, it would uninstall and reinstall the requested ports with variants. 13 13 14 14 [https://summerofcode.withgoogle.com/dashboard/project/5130769411342336/details/ Project on Google's SoC Dashboard (Login required)] 15 15 16 ==== How to use: ==== 17 18 * **NOTE 1: Make sure to take a backup of your requested ports and all ports first in a file.** 19 * NOTE 2: It'd be better to keep the interactive mode on, so you know what's going on from time to time. [[BR]] There is a problem with restoring build dependencies at the moment, so it sometimes asks to continue. 20 21 Run `sudo port migrate` after upgrading your system. It will create a snapshot of your ports first, and restore the active ports then. If there is a need to update macports, it will fail and notify. Try to follow the notes output at the end of its command. 22 23 You can also use: 24 `sudo port snapshot --note "some optional note"` to create a snapshot yourself and later restore it using `sudo port restore --snapshot-id X`. 25 26 At any point, if the restore fails and you need to do some manual changes in the registry, you can simply start the restore again afterward, using the same command as above. 27 16 28 == Bot and CI for macports-ports == #bot-ci 17 29 18 Right now PRs have to be manually tested by commiters and some commiters aren't aware of new PRs at all. Also certain information like whether the PR is submitted by the port maintainer have to be checked manually.30 Right now PRs have to be manually tested by commiters and some commiters aren't aware of new PRs at all. Also, certain information like whether the PR is submitted by the port maintainer have to be checked manually. 19 31 20 32 [wiki:l2dy] plans to implement a bot in Go dealing with PRs for macports-ports and utilize Travis CI to test commits and PRs.