Path: csiph.com!news.mixmin.net!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Vladimir Petko Newsgroups: linux.debian.maint.java Subject: Re: building individual test issue Date: Mon, 28 Aug 2023 22:10:01 +0200 Message-ID: References: X-Original-To: Mykhaylo Lodygin X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Aug 28 20:09:19 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.401 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Gm-Message-State: AOJu0Yw8R5hOMLb6yql7X/h4dXg8CoUUvZn4+rnigntx9hntAsNh7djZ dQvWB+a7VWeRmYNR5GDGU7TyUHaQgCrKurIBvuVwdPn+vlFTJ7rS2nN9ZiiVjhR4CJhuK2xm4un 9fVll21hQdo0ZH4bVlELsy2zX04+ZwtWbyJ34kLVT1praIZi1kpk0NJEhEPJjqsnqyw== X-Received: by 2002:a05:6870:42ce:b0:1b4:6b8a:a0fd with SMTP id z14-20020a05687042ce00b001b46b8aa0fdmr31139565oah.3.1693253334478; Mon, 28 Aug 2023 13:08:54 -0700 (PDT) X-Google-SMTP-Source: AGHT+IEHkmJK61frhl3PVmy9xnhTxR51ab02ZIBbtsSUvzLVmiyv1CUr0EPFsbmABpSJV8FAGgQkLfn4bcbv9Gggw6c= X-Received: by 2002:a05:6870:42ce:b0:1b4:6b8a:a0fd with SMTP id z14-20020a05687042ce00b001b46b8aa0fdmr31139560oah.3.1693253334286; Mon, 28 Aug 2023 13:08:54 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/23371 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CALFf3keYxtVP5edtgxYvq-VfQsT1feep6b0aD9=FebjaV1pAjg@mail.gmail.com Approved: robomod@news.nic.it Lines: 35 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-java@lists.debian.org X-Original-Date: Tue, 29 Aug 2023 08:08:43 +1200 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.java:12689 Hi, Debian/Ubuntu version applies some patches to the source tree, so if you are trying to build OpenJDK package using make command directly, you might want to run `quilt push -a` and configure using `configure` arguments from `debian/rules`, e.g. --with-pcsclite=3Dsystem, because psclite is stripped from the original tarball. Best Regards, Vladimir. On Mon, Aug 28, 2023 at 11:58=E2=80=AFPM Mykhaylo Lodygin wrote: > > Hello colleagues, > I've build JDK locally successfully, but got several tests "FAILED". > Tried to run one of the failing test separately with "make test TEST=3D"<= path_to_test>". > Were unable to do so due to build error - the compiler was unfamiliar to = include path to winscard.h, fixed with configuration option: > bash configure --with-extra-cflags=3D"-I/usr/include/PCSC" > next error was incapability of linker to link with libjpeg - fixed with > adding --with-libjpeg=3Dsystem to configure. > the issue was solved, but a new one was added with missing libgif. > I was curious and tried a test that "Passed", thinking that "failure" cou= ld had happen due to inability to build the test. Tried sun/util/calendar/z= i/Beyond2037.java but got a very similar error of inability to link with li= blcms2-2. > I'm flabbergasted, hence my questions are: does "make test" target is exp= ected to rebuild JDK's code? does my approach of adding options to configur= e script is proper one? How come a test could be "Passed" while running it = separately results in inability to build the test? > Thank you. > Mykhaylo Lodygin