Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

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

#1 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#2 Post by Head_on_a_Stick »

Try

Code: Select all

debchange --bpo
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#3 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#4 Post by Head_on_a_Stick »

Yes. Or use aptitude instead, that auto-autoremoves.
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#5 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#6 Post by Head_on_a_Stick »

Yes. Use the --simulate option to test things first.
deadbang

User avatar
Soul Singin'
Posts: 1605
Joined: 2008-12-21 07:02

Re: Trying to build deb -> upstream tar error

#7 Post by Soul Singin' »

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

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#8 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#9 Post by Head_on_a_Stick »

Try

Code: Select all

debuild -us -uc
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#10 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#11 Post by Head_on_a_Stick »

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
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#12 Post by Chrisdb »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#13 Post by Head_on_a_Stick »

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.
deadbang

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Trying to build deb -> upstream tar error

#14 Post by stevepusser »

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.
MX Linux packager and developer

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#15 Post by Chrisdb »

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
Soul Singin'
Posts: 1605
Joined: 2008-12-21 07:02

Re: Trying to build deb -> upstream tar error

#16 Post by Soul Singin' »

Chrisdb wrote:Speaking about tests, during the build process, several tests failed, should I be worried?
I do not know enough about PHP to answer that question. What I can advise you to do -- if you still have the build log -- is to post the relevant section here, so that someone knowledgeable can examine it for you.

In the meantime, if you remember which tests failed, conduct your own tests with those features.

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#17 Post by Chrisdb »

Soul Singin' wrote:
Chrisdb wrote:Speaking about tests, during the build process, several tests failed, should I be worried?
I do not know enough about PHP to answer that question. What I can advise you to do -- if you still have the build log -- is to post the relevant section here, so that someone knowledgeable can examine it for you.

In the meantime, if you remember which tests failed, conduct your own tests with those features.
Is there a way to rerun the tests, without rebuilding the package?

Another question, tests run from debuild, are they executed in a fakeroot environment? I'm asking because 1 of the tests complained about a missing package (php-cgi), but I installed it, then performed a rebuild of the package and it still gave me the error...

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Trying to build deb -> upstream tar error

#18 Post by stevepusser »

I wouldn't worry too much about the tests, myself. Debian packagers have to disable some or all of them for certain packages, since they fail in the standard chroot or schroot build environments that they use.
MX Linux packager and developer

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trying to build deb -> upstream tar error

#19 Post by Head_on_a_Stick »

Make a sid chroot and see if the tests also fail when building the official Debian package.
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Trying to build deb -> upstream tar error

#20 Post by Chrisdb »

Head_on_a_Stick wrote:Make a sid chroot and see if the tests also fail when building the official Debian package.
You mean the stable package (php7.3 in this case?)

Post Reply