From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Issue from testing out removal of cups Date: Mon, 14 Oct 2024 18:10:14 +0200 Message-ID: In-Reply-To: <5226F0C9-0957-4CC1-A093-9160A4549026@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9216861872095082534==" List-Id: --===============9216861872095082534== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael & all, On 12/10/2024 11:54, Michael Tremer wrote: > Hello, >=20 >> On 12 Oct 2024, at 10:52, Adolf Belka wrote: >> >> Hi Michael, >> >> On 12/10/2024 11:25, Michael Tremer wrote: >>> Hello, >>>> On 10 Oct 2024, at 15:32, Adolf Belka wrote: >>>> >>>> Hi Michael, >>>> >>>> On 10/10/2024 15:14, Michael Tremer wrote: >>>>> Hello, >>>>>> On 10 Oct 2024, at 12:44, Adolf Belka wrote: >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I have run a build with all the obvious candidates related to printing= removed. >>>>>> >>>>>> libtiff removal caused a problem at cdrom stage with perl-Imager as th= e rootfile for that included some tiff libraries, which were then not present= in the build. >>>>>> >>>>>> So I ran without libtiff and then modified the perl-Imager rootfile to= match the results in the Imager file in the Log directory. >>>>> I think the problem with the perl-Imager root file is that it contains = =E2=80=9Cx86_64=E2=80=9D which we scan for and then fail the build. >>>> >>>> Ah, I was looking at the actual files and not the architecture bit. Miss= ed that. >>>> The old build system used to actually say x86_64 architecture used. Repl= ace with xxxMACHINExxx. Hopefully I will remember the next time I make that m= istake. >>>> >>>>> We do need to keep perl-Imager though as we require it to generate the = QR codes for OpenVPN. >>>> >>>> I am not trying to get rid of perl-Imager. I recognised that it is requi= red by OpenVPN for the QR codes. It was just removing the requirement to have= the tiff capability in the perl-Imager rootfile. >>>> >>>>> What other packages did you drop? >>>>> I think we might be able to get rid of these: >>>>> * lcms2 >>>> Hadn't looked at that one. >>> I think we have a couple of image libraries, but we don=E2=80=99t use the= m that much any more. We generate SVG graphs now, there are some charts that = should be PNG and there might be some stuff needed during build, but otherwis= e I don=E2=80=99t think we need to raster any images any more. >> >> I missed adding lcms2 into my build yesterday. Will do it again also with = that one removed. >> >>>>> * ghostscript >>>>> * qpdf >>>>> * poppler >>>>> * poppler-data >>>>> * cups-filters >>>>> * epson-inkjet-printer-escpr >>>>> * cups-pdf >>>>> * foomatic >>>>> * hplip >>>> All above have been removed in the build. >>> Nice. >>>>> Maybe even the following ones: >>>>> * libexif >>>>> * openjpeg >>>>> * libjpeg >>>> >>>> libexif is a dependency for minidlna. >>>> Hadn't tried the other two. >>> I am not losing any sleep over keeping them. >> >> libjpeg is required for minidlna. So staying in. >> However it could be changed from a core program to an addon in the same wa= y as libexif, becoming an install dependency for minidlna. >=20 > I think I would prefer to have things in the core rather than too many add-= ons. >=20 >> I will try that later. >> >>>> Will get the existing set building successfully first then I will go bac= k and add those two additional ones and see how things go with the build and = then do an installation and see if the libtiff, poppler, poppler-data, openjp= eg and libjpeg programs being removed cause any issues anywhere in the graphi= cs used in IPFire. >> >> So completed a build with libtiff, poppler, poppler-data and openjpeg core= programs removed. No problems with the build. >> >> Installed the build iso on a vm system and checked all the menu items that= I could (around 98%). >> >> All graphs/charts are working without any issues. >> >> I will install the modified samba build and all the required dependencies = except for any of the cups related ones and confirm again that everything sti= ll works okay and a file share can still be accessed. >> >> If that works then I will go back and test the removal of the lcms2 and mo= ve the libjpeg to an addon and mark it as a dependency for minidlna. >=20 > Please just leave libjpeg in the core system as it is then. Left libjpeg as it was. Removed lcms2 and together with all the others it built without any problems. Installed the built iso on a vm and checked all menu entries that I could. ev= erything with a chart of graph etc worked as normal. I also installed the modified version of samba with only the following depend= encies:- avahi perl-Parse-Yapp perl-JSON wsdd The samba cgi page worked as normal and an existing share was able to be conn= ected to. I was also able to create a new share and also connect to that with= no problems. I will now submit a patch set for the result so it can be reviewed and consid= ered. Regards, Adolf. >=20 >> >> Regards, >> Adolf. >> >>>> >>>> Regards, >>>> Adolf. >>>> >>>>> I can=E2=80=99t remember where we would generate JPEG images, but I cou= ld be wrong on this. I don=E2=80=99t mind keeping them because they do not ca= use us a lot of work to maintain and they are not a security issue if we don= =E2=80=99t use a lot of it. >>>>> -Michael >>>>>> cdrom then completed without any issues but then right at the end of t= he build it comes up with the message "Checking for rootfile consistency and = at the end says that the rootfiles are inconsistent but I can't figure out wh= at the problem causing it actually is. >>>>>> >>>>>> I have repeated the build three times with a reboot of my machine in b= etween but that didn't help. >>>>>> >>>>>> Would appreciate if anyone can help with what the issue is and what I = need to go and fix. >>>>>> >>>>>> The _build.preparation.log file only has the chroot: failed to run com= mand 'env': No such file or directory. >>>>>> >>>>>> There is not indication of which file or directory is missing. All the= last entries shown in the log below are in the build and also in the rootfil= e. >>>>>> >>>>>> >>>>>> Checking for rootfile consistency... >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/API.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/APIRef.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Color.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Color/Float.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Color/Table.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Cookbook.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/CountColor.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Draw.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Engines.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Expr.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Expr/Assem.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/ExtUtils.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/File/CUR.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/File/ICO.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/File/JPEG.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/File/PNG.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/File/SGI.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Files.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Fill.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Filter/DynTest.= pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Filter/Flines.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Filter/Mandelbr= ot.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Filters.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/BBox.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/FT2.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/FreeType2.= pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/Image.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/Test.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/Truetype.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/Type1.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Font/Wrap.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Fountain.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Handy.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/IO.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/ImageTypes.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Inline.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Install.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/LargeSamples.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Matrix2d.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Preprocess.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Probe.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Regops.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Security.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Test.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Threads.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Transform.pm >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Transformations= .pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/Tutorial.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/interface.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Imager/regmach.pod >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/CountColor= /CountColor.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/File/ICO/I= CO.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/File/JPEG/= JPEG.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/File/PNG/P= NG.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/File/SGI/S= GI.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/Filter/Dyn= Test/DynTest.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/Filter/Fli= nes/Flines.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/Filter/Man= delbrot/Mandelbrot.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/Font/FT2/F= T2.so >>>>>> /home/ipfire/sandbox/ipfire-2.x/config/rootfiles/common/perl-Imager:us= r/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/auto/Imager/Imager.so >>>>>> >>>>>> chroot: failed to run command =E2=80=98env=E2=80=99: No such file= or directory >>>>>> >>>>>> ERROR: Rootfiles are inconsistent = [ FAIL ] >>>>>> Check /home/ipfire/sandbox/ipfire-2.x/log_x86_64/_build.preparati= on.log for errors if applicable [ FAIL ] >>>>>> >>>>>> >>>>>> Regards, >>>>>> >>>>>> Adolf. >>>>>> >>>> >> >> --=20 >> Sent from my laptop >=20 >=20 --===============9216861872095082534==--