gbp import-orig “revision not found” error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I am trying to rebuild a Debian package using new upstream sources. I first do a gbp import-dsc on the Debian source package:



% gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
gbp:info: No git repository found, creating one.
gbp:info: Tag upstream/7.1.0+dfsg not found, importing Upstream tarball
gbp:info: Version '7.1.0+dfsg-13+deb9u2' imported under '/srv/scratch/heimdal-work/heimdal'


No problem there. Next, I try to do animport-orig but get an error:



% cd heimdal
% gbp import-orig --verbose ../heimdal-7.5.0.tar.gz -u7.5.0
gbp:warning: Old style config section [git-import-orig] found please rename to [import-orig]
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'rev-parse', '--git-dir']
gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
gbp:debug: ['git', 'show-ref', 'refs/heads/upstream']
gbp:debug: ['git', 'status', '--porcelain']
gbp:debug: ['git', 'tag', '-l', 'upstream/7.5.0']
gbp:debug: tar ['-C', '../tmpiUAx3m', '-a', '-xf', '../heimdal-7.5.0.tar.gz']
gbp:debug: Unpacked '../heimdal-7.5.0.tar.gz' to '../tmpiUAx3m/heimdal-7.5.0'
gbp:info: Importing '../heimdal-7.5.0.tar.gz' to branch 'upstream'...
gbp:info: Source package is heimdal
gbp:info: Upstream version is 7.5.0
gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'heimdal-7.5.0^']
gbp:error: Import of ../heimdal-7.5.0.tar.gz failed: revision 'heimdal-7.5.0^' not found
gbp:debug: rm ['-rf', '../tmpiUAx3m']


Why am I getting this error and how to work around it?



gbp:error: Import of ../heimdal_7.5.0.orig.tar.gz failed: revision 'heimdal-7.5.0^' not found


The version of gbp import-orig is 0.8.12.2.










share|improve this question

























    up vote
    2
    down vote

    favorite












    I am trying to rebuild a Debian package using new upstream sources. I first do a gbp import-dsc on the Debian source package:



    % gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
    gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
    gbp:info: No git repository found, creating one.
    gbp:info: Tag upstream/7.1.0+dfsg not found, importing Upstream tarball
    gbp:info: Version '7.1.0+dfsg-13+deb9u2' imported under '/srv/scratch/heimdal-work/heimdal'


    No problem there. Next, I try to do animport-orig but get an error:



    % cd heimdal
    % gbp import-orig --verbose ../heimdal-7.5.0.tar.gz -u7.5.0
    gbp:warning: Old style config section [git-import-orig] found please rename to [import-orig]
    gbp:debug: ['git', 'rev-parse', '--show-cdup']
    gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
    gbp:debug: ['git', 'rev-parse', '--git-dir']
    gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
    gbp:debug: ['git', 'show-ref', 'refs/heads/upstream']
    gbp:debug: ['git', 'status', '--porcelain']
    gbp:debug: ['git', 'tag', '-l', 'upstream/7.5.0']
    gbp:debug: tar ['-C', '../tmpiUAx3m', '-a', '-xf', '../heimdal-7.5.0.tar.gz']
    gbp:debug: Unpacked '../heimdal-7.5.0.tar.gz' to '../tmpiUAx3m/heimdal-7.5.0'
    gbp:info: Importing '../heimdal-7.5.0.tar.gz' to branch 'upstream'...
    gbp:info: Source package is heimdal
    gbp:info: Upstream version is 7.5.0
    gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'heimdal-7.5.0^']
    gbp:error: Import of ../heimdal-7.5.0.tar.gz failed: revision 'heimdal-7.5.0^' not found
    gbp:debug: rm ['-rf', '../tmpiUAx3m']


    Why am I getting this error and how to work around it?



    gbp:error: Import of ../heimdal_7.5.0.orig.tar.gz failed: revision 'heimdal-7.5.0^' not found


    The version of gbp import-orig is 0.8.12.2.










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I am trying to rebuild a Debian package using new upstream sources. I first do a gbp import-dsc on the Debian source package:



      % gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
      gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
      gbp:info: No git repository found, creating one.
      gbp:info: Tag upstream/7.1.0+dfsg not found, importing Upstream tarball
      gbp:info: Version '7.1.0+dfsg-13+deb9u2' imported under '/srv/scratch/heimdal-work/heimdal'


      No problem there. Next, I try to do animport-orig but get an error:



      % cd heimdal
      % gbp import-orig --verbose ../heimdal-7.5.0.tar.gz -u7.5.0
      gbp:warning: Old style config section [git-import-orig] found please rename to [import-orig]
      gbp:debug: ['git', 'rev-parse', '--show-cdup']
      gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
      gbp:debug: ['git', 'rev-parse', '--git-dir']
      gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
      gbp:debug: ['git', 'show-ref', 'refs/heads/upstream']
      gbp:debug: ['git', 'status', '--porcelain']
      gbp:debug: ['git', 'tag', '-l', 'upstream/7.5.0']
      gbp:debug: tar ['-C', '../tmpiUAx3m', '-a', '-xf', '../heimdal-7.5.0.tar.gz']
      gbp:debug: Unpacked '../heimdal-7.5.0.tar.gz' to '../tmpiUAx3m/heimdal-7.5.0'
      gbp:info: Importing '../heimdal-7.5.0.tar.gz' to branch 'upstream'...
      gbp:info: Source package is heimdal
      gbp:info: Upstream version is 7.5.0
      gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'heimdal-7.5.0^']
      gbp:error: Import of ../heimdal-7.5.0.tar.gz failed: revision 'heimdal-7.5.0^' not found
      gbp:debug: rm ['-rf', '../tmpiUAx3m']


      Why am I getting this error and how to work around it?



      gbp:error: Import of ../heimdal_7.5.0.orig.tar.gz failed: revision 'heimdal-7.5.0^' not found


      The version of gbp import-orig is 0.8.12.2.










      share|improve this question













      I am trying to rebuild a Debian package using new upstream sources. I first do a gbp import-dsc on the Debian source package:



      % gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
      gbp import-dsc heimdal_7.1.0+dfsg-13+deb9u2.dsc
      gbp:info: No git repository found, creating one.
      gbp:info: Tag upstream/7.1.0+dfsg not found, importing Upstream tarball
      gbp:info: Version '7.1.0+dfsg-13+deb9u2' imported under '/srv/scratch/heimdal-work/heimdal'


      No problem there. Next, I try to do animport-orig but get an error:



      % cd heimdal
      % gbp import-orig --verbose ../heimdal-7.5.0.tar.gz -u7.5.0
      gbp:warning: Old style config section [git-import-orig] found please rename to [import-orig]
      gbp:debug: ['git', 'rev-parse', '--show-cdup']
      gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
      gbp:debug: ['git', 'rev-parse', '--git-dir']
      gbp:debug: ['git', 'for-each-ref', '--format=%(refname:short)', 'refs/heads/']
      gbp:debug: ['git', 'show-ref', 'refs/heads/upstream']
      gbp:debug: ['git', 'status', '--porcelain']
      gbp:debug: ['git', 'tag', '-l', 'upstream/7.5.0']
      gbp:debug: tar ['-C', '../tmpiUAx3m', '-a', '-xf', '../heimdal-7.5.0.tar.gz']
      gbp:debug: Unpacked '../heimdal-7.5.0.tar.gz' to '../tmpiUAx3m/heimdal-7.5.0'
      gbp:info: Importing '../heimdal-7.5.0.tar.gz' to branch 'upstream'...
      gbp:info: Source package is heimdal
      gbp:info: Upstream version is 7.5.0
      gbp:debug: ['git', 'rev-parse', '--quiet', '--verify', 'heimdal-7.5.0^']
      gbp:error: Import of ../heimdal-7.5.0.tar.gz failed: revision 'heimdal-7.5.0^' not found
      gbp:debug: rm ['-rf', '../tmpiUAx3m']


      Why am I getting this error and how to work around it?



      gbp:error: Import of ../heimdal_7.5.0.orig.tar.gz failed: revision 'heimdal-7.5.0^' not found


      The version of gbp import-orig is 0.8.12.2.







      debian packaging






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 3 at 17:55









      rlandster

      278212




      278212




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          This happens because of the following configuration directive in debian/gbp.conf:



          upstream-vcs-tag=heimdal-%(version)s


          This matches the upstream tags, but fails when you attempt to import the sources using gbp. To fix this, remove the above line.



          You could save yourself a lot of time by using the packaged sources for version 7.5.0:



          dget -x http://deb.debian.org/debian/pool/main/h/heimdal/heimdal_7.5.0+dfsg-2.dsc


          or



          git clone https://salsa.debian.org/debian/heimdal.git





          share|improve this answer



























            up vote
            0
            down vote













            It turns out that I needed to be on the upstream branch before running gbp import-orig. I am pretty sure that in earlier releases of import-dsc and import-orig that was not necessary.






            share|improve this answer




















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473049%2fgbp-import-orig-revision-not-found-error%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              This happens because of the following configuration directive in debian/gbp.conf:



              upstream-vcs-tag=heimdal-%(version)s


              This matches the upstream tags, but fails when you attempt to import the sources using gbp. To fix this, remove the above line.



              You could save yourself a lot of time by using the packaged sources for version 7.5.0:



              dget -x http://deb.debian.org/debian/pool/main/h/heimdal/heimdal_7.5.0+dfsg-2.dsc


              or



              git clone https://salsa.debian.org/debian/heimdal.git





              share|improve this answer
























                up vote
                2
                down vote













                This happens because of the following configuration directive in debian/gbp.conf:



                upstream-vcs-tag=heimdal-%(version)s


                This matches the upstream tags, but fails when you attempt to import the sources using gbp. To fix this, remove the above line.



                You could save yourself a lot of time by using the packaged sources for version 7.5.0:



                dget -x http://deb.debian.org/debian/pool/main/h/heimdal/heimdal_7.5.0+dfsg-2.dsc


                or



                git clone https://salsa.debian.org/debian/heimdal.git





                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  This happens because of the following configuration directive in debian/gbp.conf:



                  upstream-vcs-tag=heimdal-%(version)s


                  This matches the upstream tags, but fails when you attempt to import the sources using gbp. To fix this, remove the above line.



                  You could save yourself a lot of time by using the packaged sources for version 7.5.0:



                  dget -x http://deb.debian.org/debian/pool/main/h/heimdal/heimdal_7.5.0+dfsg-2.dsc


                  or



                  git clone https://salsa.debian.org/debian/heimdal.git





                  share|improve this answer












                  This happens because of the following configuration directive in debian/gbp.conf:



                  upstream-vcs-tag=heimdal-%(version)s


                  This matches the upstream tags, but fails when you attempt to import the sources using gbp. To fix this, remove the above line.



                  You could save yourself a lot of time by using the packaged sources for version 7.5.0:



                  dget -x http://deb.debian.org/debian/pool/main/h/heimdal/heimdal_7.5.0+dfsg-2.dsc


                  or



                  git clone https://salsa.debian.org/debian/heimdal.git






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 3 at 19:32









                  Stephen Kitt

                  149k23331397




                  149k23331397






















                      up vote
                      0
                      down vote













                      It turns out that I needed to be on the upstream branch before running gbp import-orig. I am pretty sure that in earlier releases of import-dsc and import-orig that was not necessary.






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        It turns out that I needed to be on the upstream branch before running gbp import-orig. I am pretty sure that in earlier releases of import-dsc and import-orig that was not necessary.






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          It turns out that I needed to be on the upstream branch before running gbp import-orig. I am pretty sure that in earlier releases of import-dsc and import-orig that was not necessary.






                          share|improve this answer












                          It turns out that I needed to be on the upstream branch before running gbp import-orig. I am pretty sure that in earlier releases of import-dsc and import-orig that was not necessary.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Oct 4 at 13:52









                          rlandster

                          278212




                          278212



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473049%2fgbp-import-orig-revision-not-found-error%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              Peggy Mitchell

                              Palaiologos

                              The Forum (Inglewood, California)