Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1462

Empty Depends field in .deb package breaks repository

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.5
    • Fix Version/s: 1.5.6
    • Component/s: installer-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 9.10 with local ubuntu repository

      Description

      After adding the debian package to a local ubuntu repository, apt-get update on any machine which uses that directory, gives the following error:

      Reading package lists... Error!
      E: Problem parsing dependency Depends
      E: Error occurred while processing apacheds (NewVersion1)
      E: Problem with MergeList /var/lib/apt/lists/upd.kontorsplatsen.se_dists_kalamondin_main_binary-amd64_Packages
      E: The package lists or status file could not be parsed or opened.

      The package installs fine with dpkg --install.

      I suspect the problem is that the control file for the package has an empty Depends: line. Packages with no dependencies should probably omit the Depends line altogether.

        Activity

        Hide
        Eddie Olsson added a comment -

        Forgot to mention that it's the amd64 package ( apacheds-1.5.5-amd64.deb ). I haven't tried with the i386 package.

        Show
        Eddie Olsson added a comment - Forgot to mention that it's the amd64 package ( apacheds-1.5.5-amd64.deb ). I haven't tried with the i386 package.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Hi Eddie,

        I'm going to investigate that issue.

        Could you tell me if this documentation [1] found on the Ubuntu website is sufficient to build a local repo similar to yours?
        Did you create yours the same way?

        Thanks,
        Pierre-Arnaud

        [1] - https://help.ubuntu.com/community/Repositories/Personal

        Show
        Pierre-Arnaud Marcelot added a comment - Hi Eddie, I'm going to investigate that issue. Could you tell me if this documentation [1] found on the Ubuntu website is sufficient to build a local repo similar to yours? Did you create yours the same way? Thanks, Pierre-Arnaud [1] - https://help.ubuntu.com/community/Repositories/Personal
        Hide
        Eddie Olsson added a comment -

        Not quite. The repository has been set up according to the instructions in http://www.debian-administration.org/articles/286.
        Package files are added to the repository with:
        reprepro -Vb /var/www includedeb kalamondin apacheds-1.5.5-amd64.deb

        Where "/var/www" is the repository root directory and "kalamondin" is our internal release name

        I can also confirm that I have successfully added apacheds to the repository by unpacking the package file, removing the Depends: line in the control file and repackaging it with dpkg-deb

        Show
        Eddie Olsson added a comment - Not quite. The repository has been set up according to the instructions in http://www.debian-administration.org/articles/286 . Package files are added to the repository with: reprepro -Vb /var/www includedeb kalamondin apacheds-1.5.5-amd64.deb Where "/var/www" is the repository root directory and "kalamondin" is our internal release name I can also confirm that I have successfully added apacheds to the repository by unpacking the package file, removing the Depends: line in the control file and repackaging it with dpkg-deb
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Thanks,

        I'll try to provide you a testing deb file built from the Apache DS 1.5.5 release tag, generated with the "Depends:" line removed.

        If it fixes the problem, I'll apply the fix to the trunk for future releases.

        Show
        Pierre-Arnaud Marcelot added a comment - Thanks, I'll try to provide you a testing deb file built from the Apache DS 1.5.5 release tag, generated with the "Depends:" line removed. If it fixes the problem, I'll apply the fix to the trunk for future releases.
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Eddie,

        Can you tell me if those new packages work out of the box with your local repository?

        http://people.apache.org/~pamarcelot/DIRSERVER-1462/

        Thanks!

        Show
        Pierre-Arnaud Marcelot added a comment - Eddie, Can you tell me if those new packages work out of the box with your local repository? http://people.apache.org/~pamarcelot/DIRSERVER-1462/ Thanks!
        Hide
        Eddie Olsson added a comment -

        Works like a charm!
        Tested the entire chain: publishing to repo, apt-get update, apt-get install with no error or warning.

        Thanks!

        Show
        Eddie Olsson added a comment - Works like a charm! Tested the entire chain: publishing to repo, apt-get update, apt-get install with no error or warning. Thanks!
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Wonderful!

        Thanks a lot.

        I'm going to fix it on our trunk, so our next releases are fully compliant with the use in a repo.

        Show
        Pierre-Arnaud Marcelot added a comment - Wonderful! Thanks a lot. I'm going to fix it on our trunk, so our next releases are fully compliant with the use in a repo.
        Hide
        Pierre-Arnaud Marcelot added a comment -
        Show
        Pierre-Arnaud Marcelot added a comment - Fixed at revision 902767. http://svn.apache.org/viewvc?rev=902767&view=rev

          People

          • Assignee:
            Pierre-Arnaud Marcelot
            Reporter:
            Eddie Olsson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development