Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issues when using 3rd party PPA's #684

Closed
marcinkuzminski opened this Issue · 12 comments

2 participants

@marcinkuzminski

No description provided.

@marcinkuzminski

I'm getting error when tring to install new GIT version using 3rd party PPA:

No apport report written because MaxReports is reached already

@michaelklishin

You did not provide enough information. Please ask on the mailing list first.

@michaelklishin

Don't forget to include links to your build, .travis.yml and explain why you need a custom git version.

@marcinkuzminski

I believe it's not a question it's an issue that is why i posted it here.
Sorry for not providing the details. I posted an empty issue somehow
here's my .travisci file

language: python
python:
  - "2.5"
  - "2.6"
  - "2.7"

env:  
  - TEST_DB=sqlite:////tmp/rhodecode_test.sqlite
  - TEST_DB=mysql://root@127.0.0.1/rhodecode_test
  - TEST_DB=postgresql://postgres@127.0.0.1/rhodecode_test

# command to install dependencies
before_script:
  - mysql -e 'create database rhodecode_test;'
  - psql -c 'create database rhodecode_test;' -U postgres
  - git --version

before_install:
  - sudo add-apt-repository ppa:pdoes/ppa -y
  - sudo apt-get update -y
  - sudo apt-get install git -y

install:
  - pip install mysql-python psycopg2 mock unittest2
  - pip install . --use-mirrors

# command to run tests
script: nosetests

notifications:
    email:
        - marcinkuz@gmail.com
    irc: "irc.freenode.org#rhodecode"

branches:
  only:
    - dev

Build:http://travis-ci.org/#!/marcinkuzminski/rhodecode/jobs/2236659

@michaelklishin
dpkg: error processing /var/cache/apt/archives/git_2%3a1.7.11.4-0avh1~oneiric_i386.deb (--unpack):

It is an issue with your PPA, not travis CI environment.

@michaelklishin

Can you explain why you need a different git version?

@marcinkuzminski

That is odd since it tested it Locally in virtual machine, and it worked fine with this PPA.
I need latest version of git since my software is build on top of git.

@michaelklishin

Trying to install the package in question via dpkg -i:

$ wget http://ppa.launchpad.net/pdoes/ppa/ubuntu/pool/main/g/git/git-el_1.7.11.4-0avh1~oneiric_all.deb
[-- cut --]

$ sudo dpkg -i git-el_1.7.11.4-0avh1~oneiric_all.deb 
Selecting previously deselected package git-el.
(Reading database ... 32525 files and directories currently installed.)
Unpacking git-el (from git-el_1.7.11.4-0avh1~oneiric_all.deb) ...
dpkg: dependency problems prevent configuration of git-el:
 git-el depends on emacs | emacsen; however:
  Package emacs is not installed.
  Package emacsen is not installed.
dpkg: error processing git-el (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 git-el

We do not preprovision Emacs. Moreover, after trying to install this package, I can no longer install emacs23-nox without doing a lot of manual dependency fixing. All of this in a clean VM that only has bare essentials like profile/env variables/build directories provisioned.

So yeah, this package is badly broken.

@marcinkuzminski

Thanks, i'll investigate more, or try to find different PPA.
I don't know why it works for on a clean ubuntu for me.

@michaelklishin

Just out of curiousity, if you install emacs23-nox first and then try to dpkg -i ... this git package, you get

travis@nettuno:~$ sudo dpkg -i git_1.7.11.4-0avh1~oneiric_i386.deb 
(Reading database ... 35110 files and directories currently installed.)
Preparing to replace git 1:1.7.5.4-1 (using git_1.7.11.4-0avh1~oneiric_i386.deb) ...
mv: `/usr/lib/git-core/git-add.tmp' and `/usr/lib/git-core/git-add' are the same file
dpkg: error processing git_1.7.11.4-0avh1~oneiric_i386.deb (--install):
 subprocess new pre-installation script returned error exit status 1
@michaelklishin

@marcinkuzminski I have a workaround for you. This package does install cleanly if there is no earlier versions of git installed (and we now use standard Ubuntu packages, not a custom-built version we used to run before). So if you

sudo apt-get remove git

in a before_install and then add the PPA, it should work. We may consider switching to this PPA to provide a newer git version, although most projects don't care. It worries me that this package cannot cleanly do an upgrade from the standard git version but if it works well otherwise, it's not a problem for us to provision it. Let me know how it goes.

@michaelklishin michaelklishin referenced this issue from a commit in travis-ci/travis-cookbooks
@michaelklishin michaelklishin Introduce git::ppa, references travis-ci/travis-ci#684
The decision about using it hasn't been made yet but it was 2 minutes of work
to add this recipe.
6d45709
@marcinkuzminski

Perfect, build is running now after uninstalling older version.

probably It can do upgrades after you add this PPA, I think the mv command is simply broken because maintainer didn't assume that older version can have same components, and should be replaced by mv -f.

It would be nice if default environment could provide a never git version. There were a lot of bugfixes after 1.7.5 version.
Also what i'm mostly interested in that most command can take -c option to override default configuration when running git subcommands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.