Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg-hgtk thg-hgtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 515
    • Issues 515
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thg-hgtkthg-hgtk
  • Issues
  • #144

Closed
Open
Created Apr 04, 2009 by Bitbucket Importer@bitbucket_importerOwner

Issuese packaging tortoisehg in rpm

Created originally on Bitbucket by kiilerix (Mads Kiilerich)

I have packaged tortoisehg in an rpm for Fedora.

TortoiseHg is made to run from a source folder anywhere. When it is packaged as an rpm we know exactly where the files are, but they are not organized like in the source folder.

The following hacks worked around the issues for me. Do you have any ideas what you or I could do to reduce the number of hacks/patches?

Are you aware of other places where path manipulation is used and might require attention?

{{{ #!sh

Don't put hardcoded path in sys.path; the python modules has been installed globally

sed -i 's,~/tools/tortoisehg-dev,/usr/lib/python2.5/site-packages,g' contrib/hgtk contrib/nautilus-thg.py

Don't use THG_ICON_PATH; we know where the icons are and it doesn't

sed -i 's|os.environ.get('''THG_ICON_PATH''', None)|'''/usr/share/pixmaps/tortoisehg/icons'''|g' hggtk/shlib.py

COPYING.txt is not installed under prog_root. It is a data file - but we just use it from docs.

sed -i 's|os.path.join(prog_root, "COPYING.txt")|'''/usr/share/doc/tortoisehg-0.7.3/COPYING.txt'''|g' hggtk/about.py

setup.py installs hgproc in /usr/bin (it should probably be /usr/lib/tortoisehg ...)

sed -i 's|os.path.join(thgpath, '''hgproc.py''')|'''/usr/bin/hgproc.py'''|g' contrib/nautilus-thg.py

We know where the icons are ...

sed -i 's|os.path.join(thgpath, '''icons''', '''tortoise''')|'''/usr/share/pixmaps/tortoisehg/icons'''|g' contrib/nautilus-thg.py }}}

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking