[SOLVED] Trying to build deb -> upstream tar error

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 09:41

Hi,

I'm trying to build and experimental package: php7.4.
The problem is after running 'debchange' and 'debuild', I get the following error:

Code: Select all
no upstream tarball found at ../php7.4_7.4.0~bp10+1.orig.tar


The command I used for debchange under directory 'php7.4-7.4.0~rc6' was:
Code: Select all
debchange -b -v 7.4.0~bp10+1


The solution probably is to change the name of the tar, but shouldn't this be done automatically?

Thx
Last edited by Chrisdb on 2020-01-09 09:55, edited 1 time in total.
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 10:08

Try
Code: Select all
debchange --bpo
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 11:13

Head_on_a_Stick wrote:Try
Code: Select all
debchange --bpo


That worked, thx!

One more question. After my build is done, should I use the following commands tot remove the build dependencies?

Code: Select all
apt-get purge <packagename>-build-deps
apt-get autoremove
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 11:23

Yes. Or use aptitude instead, that auto-autoremoves.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 11:46

Head_on_a_Stick wrote:Yes. Or use aptitude instead, that auto-autoremoves.


After reading your post I had a look at aptitude as I do not use it very often. Apparently aptitude does remove more thoroughly.

So if I replace
Code: Select all
apt-get purge <packagename>-build-deps
apt-get autoremove

With just
Code: Select all
aptitude purge package_name

It should be enough?
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 11:47

Yes. Use the --simulate option to test things first.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby Soul Singin' » 2020-01-04 11:55

Chrisdb wrote:I'm trying to build and experimental package: php7.4.

Keep us posted. Let us know how it goes.

Good luck and have fun!
- Soul
User avatar
Soul Singin'
 
Posts: 1607
Joined: 2008-12-21 07:02

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 12:12

Soul Singin' wrote:
Chrisdb wrote:I'm trying to build and experimental package: php7.4.

Keep us posted. Let us know how it goes.

Good luck and have fun!
- Soul


apparently some errors:
Code: Select all
Now signing changes and any dsc files...
 signfile dsc php7.4_7.4.0~rc6-1~bpo10+1.dsc chris <chris@mydebian>
gpg: keybox '/home/chris/.gnupg/pubring.kbx' created
gpg: skipped "chris <chris@mydebian>": No secret key
gpg: /tmp/debsign.oiyl1dyo/php7.4_7.4.0~rc6-1~bpo10+1.dsc: clear-sign failed: No secret key
debsign: gpg error occurred!  Aborting....
debuild: fatal error at line 1112:
running debsign failed

User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 12:23

Try
Code: Select all
debuild -us -uc
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 12:28

Head_on_a_Stick wrote:Try
Code: Select all
debuild -us -uc


Thx, will keep you posted :wink:

Btw after the build I do get a lot of .deb files like php7.4-sqlite etc. And when I try to install the php7.4 deb, I get dependency errors.

Is there a way to create a single .deb containing everything?
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 13:04

Chrisdb wrote:after the build I do get a lot of .deb files like php7.4-sqlite etc. And when I try to install the php7.4 deb, I get dependency errors

You probably have to install the .debs in a certain order, they may depend on each other.

Or set up a local repository: https://packages.debian.org/buster/local-apt-repository
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 15:44

Head_on_a_Stick wrote:
Chrisdb wrote:after the build I do get a lot of .deb files like php7.4-sqlite etc. And when I try to install the php7.4 deb, I get dependency errors

You probably have to install the .debs in a certain order, they may depend on each other.

Or set up a local repository: https://packages.debian.org/buster/local-apt-repository


Thx, the local-apt solution worked :D
Is this the recommended way to handle this situation?

How should I have handled it manually?
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

Postby Head_on_a_Stick » 2020-01-04 16:06

Chrisdb wrote:Is this the recommended way to handle this situation?

I would certainly recommend it, I didn't even know about it until you started this thread though. Isn't it brilliant?

I use SUSE's Open Build Service to host custom Debian packages so that they're available for several machines at once: https://build.opensuse.org

Chrisdb wrote:How should I have handled it manually?

Look at the output when you try to install the "main" .deb package, that should tell you which .debs are needed first.

EDIT: it's just like installing an AUR package in Arch (without a "helper") that depends on other AUR packages.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Trying to build deb -> upstream tar error

Postby stevepusser » 2020-01-04 20:05

Yes, "debuild" just by itself will try to sign the packages, but it's not a fatal error, and you still could have used the packages from that build where the final signing step failed. Signing the packages provides extra security if you're going to upload the packages to an actual repository, but it's not necessary if the debs are for your own use.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.5, Featherpad 0.12.0, PulseEffects 4.7.0, KeepassXC 2.5.2, SuperTuxKart 1.1, Waterfox 2019.12
User avatar
stevepusser
 
Posts: 11397
Joined: 2009-10-06 05:53

Re: Trying to build deb -> upstream tar error

Postby Chrisdb » 2020-01-04 20:07

Head_on_a_Stick wrote:
Chrisdb wrote:Is this the recommended way to handle this situation?

I would certainly recommend it, I didn't even know about it until you started this thread though. Isn't it brilliant?

I use SUSE's Open Build Service to host custom Debian packages so that they're available for several machines at once: https://build.opensuse.org

Chrisdb wrote:How should I have handled it manually?

Look at the output when you try to install the "main" .deb package, that should tell you which .debs are needed first.

EDIT: it's just like installing an AUR package in Arch (without a "helper") that depends on other AUR packages.


Thx, the first tests seem tot work (php version, phpinfo) :D

Speaking about tests, during the build process, several tests failed, should I be worried?
User avatar
Chrisdb
 
Posts: 156
Joined: 2018-04-10 07:16

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable