build from source error, package depends on itself

If none of the more specific forums is the right place to ask

Re: build from source error, package depends on itself

Postby Head_on_a_Stick » 2020-06-15 14:50

MagicPoulp wrote:
Code: Select all
The following packages have unmet dependencies:
[b] builddeps:openjdk-8-jdk : Depends: openjdk-8-jdk but it is not installable or[/b]
                                    openjdk-7-jdk but it is not installable
E: Unable to correct problems, you have held broken packages.

I've just tried that and my error is different, g++-9 is the missing package for me.

MagicPoulp wrote:I create a chroot with debootstrap, I added unstable to the sources.list

Why not just create a sid chroot in the first place? Or stretch, that openjdk version is also available there.

And please learn how to use the "edit" button, this thread is a ****** mess... :roll:
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: build from source error, package depends on itself

Postby MagicPoulp » 2020-06-16 06:01

Thanks for the help

Actually the g++ depends on the debian version it is dynamic.

It seally seems if there was not this cicruclar dependency t oitself, the package can be built wit hstasble packages mainly

I need a way to run build-dep manually wit hrdepends, still trying
MagicPoulp
 
Posts: 353
Joined: 2018-11-05 21:30

Re: build from source error, package depends on itself

Postby stevepusser » 2020-06-16 06:07

What target release are you building for, Buster? You can't add all kinds of testing and unstable packages to the build environment and expect it to build a Buster-compatible package. Plus there are some tweaks you need to perform to get a successful Buster build.

If you just want openjdk-8 in Buster, I would suggest the wtf repo:

https://www.mirbsd.org/~tg/Debs/debidx.htm

https://www.mirbsd.org/~tg/Debs/dists/b ... openjdk-8/

I've used their binaries to rebuild their source for the Buster MX 19 repo, though I used sbuild to use a vanilla Buster schroot instead of directly in a chroot as you seem to. Pbuilder doesn't work for some reason.

I had the downloaded debs in a directory that I told sbuild to use as a local repo, but you can also add the wtf repo to the sbuild command to get the packages. You can use [trusted=yes] to skip all that jazz about adding the repo key to sbuild.
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.7, QMPlay2 20.07.04, Pale Moon 28.10.0, KeepassXC 2.6.0, Krita 4.3.0, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11815
Joined: 2009-10-06 05:53

Re: build from source error, package depends on itself

Postby Head_on_a_Stick » 2020-06-16 09:46

@OP: please stop opening new threads to solve your single problem, you now have *four* threads open all asking for terrible "solutions" to a single problem.

Read this: https://en.wikipedia.org/wiki/XY_problem

And in future please restrict yourself to a single thread per problem and describe in full exactly what the overall aim is rather than asking for specific solutions for your misinformed understanding of what should be done.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12194
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: build from source error, package depends on itself

Postby MagicPoulp » 2020-06-16 09:51

ok sorry. but only 3 threads were opened. THe locale thing was very specific.
MagicPoulp
 
Posts: 353
Joined: 2018-11-05 21:30

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable