aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Strip trailing slash from subpath's if they exist when creating filenames.old/rewrite-on-masterBrian Dolbec2013-11-213-8/+8
| | | | This bug was introduced in commit 52c9d37ff5de18981d6ecbe5bdde524b2bf4ebda when a trailing slash was added to target_subpath.
* Add my outgoing directory to ignoreBrian Dolbec2013-11-211-0/+1
|
* Fix livecd source and target paths not ending with a slashBrian Dolbec2013-11-213-4/+3
|
* main.py, lock.py, fileops.py remove shebangsBrian Dolbec2013-11-213-3/+2
|
* version: Remove shebang (Python modules are not scripts)W. Trevor King2013-11-211-2/+0
| | | | Nobody should be executing this file directly.
* Streamline data_files generation with additional keysBrian Dolbec2013-11-211-17/+17
| | | | | | | | | | * Move data_file generation out of setup(). * Return per-directory keys, since distutils only uses the directory key and value filename (not the value path) when installing data_files. * Use relative key paths for more flexible installation. * Raise NotImplementedError if os.path.sep is not '/', which allows for simpler path handling.
* Makefile: Set PYTHONPATH=. for make_target_table.pyW. Trevor King2013-11-211-1/+1
| | | | | | | | | | | | | | | | Avoid: $ make ... "./doc/make_target_table.py" > "doc/targets.generated.txt" Traceback (most recent call last): File "./doc/make_target_table.py", line 34, in <module> __import__(module_name) ImportError: No module named catalyst.targets.embedded make: *** [doc/targets.generated.txt] Error 1 This also ensures that the local catalyst package takes precedence over any previously installed version.
* Makefiles: create files directory before populating itW. Trevor King2013-11-211-4/+7
| | | | | | | | | | | The syntax for the rules is: targets ...: target-pattern: prereq-patterns | order-only-prerequisites For details, see: http://www.gnu.org/software/make/manual/html_node/Static-Usage.html http://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
* Add set_version command to setup.py.Brian Dolbec2013-11-213-6/+83
| | | | | | * Add/modify functions to save and retrieve the set version information or the live git version. * Change indent to tabs.
* setup.py: Add disutils-based packagingW. Trevor King2013-11-214-1/+104
| | | | | | | | Package catalyst in the usual manner for Python projects. Now it is ready for PyPI :). I also expose the version string in catalyst.__version__, since that's a more traditional location than catalyst.version.__version__.
* fix '-' in stage names for python importsBrian Dolbec2013-11-211-3/+4
|
* Make testpath automagic via dwfeed's tweakBrian Dolbec2013-11-212-4/+10
| | | | Update HOWTO to include the testpath use.
* update doc scripts for the new structureBrian Dolbec2013-11-213-10/+14
|
* doc/catalyst-config.5.txt: Document linking issues with binary packagesW. Trevor King2013-11-211-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | This gives users a heads up explaining why they might see linking errors when pkgcache is enabled. I first saw this when I build a stage1 without update_seed. Because my seed stage3 linked against libmpc.so.2, some of my stage1 files linked against the older mpc. However, the mpc-1.0.1 built for the stage1 installed libmpc.so.3. When I tried to use this stage1 to build a stage2, it died with: /usr/libexec/gcc/i686-pc-linux-gnu/4.6.3/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory To fix this, I enabled update_seed, but binary packages built during my first pass were used to populate the stage1, so even though I'd updated the seed stage3 toolchain, I still had a stage1 with cc1 linked against libmpc.so.2. After clearing the binary package cache, I got a stage1 *built* with the updated seed stage3, which gave a cc1 linked against libmpc.so.3 (hurray!). This commit adds a warning in the pkgcache documentation that should help people understand what might be going wrong if they see similar linking errors. For more details, see the thread following http://thread.gmane.org/gmane.linux.gentoo.catalyst/2137/focus=2193
* doc/catalyst-config.5.txt: Add man page for catalyst.confW. Trevor King2013-11-214-1/+195
| | | | | | | | This mostly translates the inline comments from files/catalyst.conf into asciidoc. While it's nice to have that as stand-alone documentation, it also makes it easier to refer to longer descriptions of any tricky issues. This gives us a place to distill the collected wisdom of current users for the benefit of others.
* livecdfs-update.sh: Run env-update to pick up any /etc/env.d/ changesW. Trevor King2013-11-211-0/+2
| | | | | Otherwise the XSESSION change from e523136 (livecdfs-update.sh: Set XSESSION in /etc/env.d/90xsession, 2013-03-02) is not noticed.
* livecdfs-update.sh: Set XSESSION in /etc/env.d/90xsessionW. Trevor King2013-11-211-2/+1
| | | | | | | | As part of the OpenRC migration, the recommended place for configuring the default X session moved from /etc/rc.conf to /etc/env.d/90xsession [1]. [1]: http://www.gentoo.org/doc/en/openrc-migration.xml
* livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaksW. Trevor King2013-11-211-1/+1
| | | | | | | sshd_config lives in /etc/ssh, not /etc/sshd. This typo has been present since the block was introduced by c06264e (Initial import of Catalyst 2.0.0, 2005-04-04), so it's obviously not a widely used feature ;). It might be better to just remove the block entirely.
* examples: Add newlines to accidentally unwrapped comment linesW. Trevor King2013-11-217-20/+40
| | | | | | With: $ sed -i 's/^\(#.*\)\(#.*\)/\1\n\2/' examples/*.spec
* Move bug-reporting and mailing list notes from TODO to READMEW. Trevor King2013-11-212-5/+9
| | | | | | | This information is generally useful, and folks probably only read TODO if they want to help but don't already have an idea of what to help with ;). Having the contact information in the README should raise its visibility.
* examples/README: Add a pointer to the releng Git repositoryW. Trevor King2013-11-211-0/+5
| | | | | | | | Thanks to Dustin C. Hatch for pointing this out, because I wasn't able to find it on my own. Having a pointer distributed with Catalyst should help other newcomers find example spec files written by folks who know what they're doing ;). The current examples lack a full stage1-through-stage3 progression.
* temp set shebang to python2 until py3 compatibilty is doneBrian Dolbec2013-11-211-1/+1
|
* Rename local unpack var to _unpackBrian Dolbec2013-11-212-12/+12
| | | | The method name was unpack, so rename the local var to _unpack to help avoid confusion.
* Fix a long line.Brian Dolbec2013-11-211-1/+2
|
* Remove some dead codeBrian Dolbec2013-11-211-2/+0
|
* Fix some paths/normpath usage. Use pjoin to join paths.Brian Dolbec2013-11-212-12/+11
| | | | Use os.path.dirname() instead of splitting and rejoining without the filename.
* Create AutoResume class to handle all file creation, deletion...Brian Dolbec2013-11-217-109/+242
| | | | | Create catalyst/base/resume.py. Migrate all auto_resume operations to using the new class.
* Refactor ClearBase code to remove code duplication.Brian Dolbec2013-11-211-44/+29
|
* Initial creation of fileops.pyBrian Dolbec2013-11-219-55/+81
| | | | Migrate to using ensure_dirs()
* Migrate version to use snakeoil's format_version() to append git commit info.Brian Dolbec2013-11-212-5/+30
| | | | This will make tagging releases easy as well as providing better debug info while running live versions of the software.
* Make the use of preserved_libs optional by setting the options variable.Brian Dolbec2013-11-212-1/+2
| | | | | | | | Ported from commits: 462348d88b3a5fa783f322c64131025581ecc220 f6ad384914a00099eea2a0f66232728c479ec628 in the master branch. AUTHOR: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org> (Sun 14 Apr 2013 08:22:34 PM PDT)
* Add support for m68kRaúl Porcel2013-11-211-0/+21
| | | | | port commit for the rewrite branch. Brian Dolbec <dolsen@gentoo.org>
* update version to identify the rewite-git code is being runBrian Dolbec2013-11-211-1/+1
|
* fix indent.Brian Dolbec2013-11-211-1/+1
|
* Fix broken seed stage update...Brian Dolbec2013-11-213-6/+13
| | | | | | | Add a check for the update_seed option to set the correct update options. Fix default seed stage update command to properly update gcc and it's deps. Add --binpkg-respect-use=y for all cases --usepkg is enabled. Apply patch to fix broken if logic in the setup_emergeoptions() by Douglas Freed <dwfreed@mtu.edu> and rebase
* Fix typo in error message, clean up useless tracebacksBrian Dolbec2013-11-213-5/+2
| | | | Remove useless python tracebacks for bash side target failures.
* update gitignoreBrian Dolbec2013-11-211-0/+4
|
* mixed spaces/tabs and indent cleanup.Brian Dolbec2013-11-215-26/+25
|
* Migrate hardcoded /etc/portage pathsBrian Dolbec2013-11-218-51/+56
| | | | | | Create "port_conf" default. Migrate all references to /etc/portage to the config's default. Migrate all make.conf paths to the config'd default.
* Fix a bug that portage didn't get rebuilt with the build use flagBrian Dolbec2013-11-211-3/+4
| | | | If clst_PGKCACHE is defined, --newuse was not being added to clst_myemergeopts, so then portage was not being rebuilt if portage was already up to date.
* Add archdir to settingsBrian Dolbec2013-11-212-2/+4
|
* Commit my testpath file with instructions to run the git checkout code ↵Brian Dolbec2013-11-211-0/+18
| | | | directly without being installed.
* FIXME! Add a forced debug print statement in cmd() for better debug outputBrian Dolbec2013-11-211-2/+2
| | | | Migrate this and other code to use python's logging module.
* Remove trailing slash for consistency in variablesBrian Dolbec2013-11-212-7/+7
| | | | | remove extra slashes in paths, fix hash header
* Fix a relative path bugBrian Dolbec2013-11-211-2/+2
|
* Add '--- 'to at the start of all echo messages to aid debuggingBrian Dolbec2013-11-211-6/+6
|
* Make shdir a complete path to ease it's use.Brian Dolbec2013-11-2119-90/+91
| | | | | | | Add a "shdir" setting to config. This is to make moving the bash code around easier. It also reduces more hardcoded paths in the bash scripts. Migrate all target shell scripts to use the new shdir setting
* Extend ParserBase to do variable substitution.Brian Dolbec2013-11-212-1/+8
| | | | | | Also add embedded variable substitiution to default settings. Why are we not using python's built-in ConfigParser? We'll migrate it later.
* reduce 2 operations into one simpler oneBrian Dolbec2013-11-211-5/+1
|
* Break out more repeated (path1 + path2)'s...Brian Dolbec2013-11-212-22/+32
| | | | | | Just do it once and use the temp variable. Comment out some debug print's. Fix options conversion for export to bash.