From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: How to test a solution for bug 12539 Date: Fri, 27 Nov 2020 18:17:01 +0100 Message-ID: <03f24544-2aa6-ce17-dccc-1818fad411ca@gmail.com> In-Reply-To: <26fc490026412c6071a03ae498d490c5adcb21f6.camel@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2396087447856029945==" List-Id: --===============2396087447856029945== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Erik, Thanks for your input, especially the part about update.sh and checking about= the name change related to already installed situation. I hadn't thought abo= ut that, so that is a good reminder to me. Regards, Adolf. On 27/11/2020 17:39, ummeegge wrote: > Hi Adolf, >=20 > Am Donnerstag, den 26.11.2020, 23:22 +0100 schrieb Adolf Belka: >> Dear All, >> >> I have been working on a solution for bug 12539. >> >> With cups and cups-filters installed the services tab shows cups >> twice in the add-on list. This is because the cut command from the >> installed meta files causes both meta-cups and meta-cups-filters to >> result in cups and therefore shows up twice. >> >> The solution seems to be to rename the Prog name from cups-filters to >> cups_filters. I made these changes in my local repo and everything >> built successfully. >> >> However I can not figure out how to test and confirm that it has >> worked. >> If I install the built ISO and then install cups and cups_filters >> from pakfire they load the programs from the IPFire repo and >> therefore load the original versions which still have the problem and >> show up twice in the services tab. > I think you can not use Pakfire for this. >=20 >> >> If I copy the cup and cups_filters ipfire packages and install them >> into my test bed system, the programs are installed and can be >> successfully started but because they were not installed by pakfire >> they have not been added to the installed meta files in >> /opt/pakfire/db/installed/meta-* and therefore do not show up in the >> services tab at all. > You can generate a file via > touch /opt/pakfire/db/installed/meta-cups_filters > without PGP Signature, Name etc. but it should display it in the status > section. >=20 > But for an IPFire update i see a problem for the installed packages > since simply the name of the package has changed a '-' =E2=89=A0 '_' and > therefor the name has been changed and will be handled like another > package --> > https://git.ipfire.org/?p=3Dipfire-2.x.git;a=3Dblob;f=3Dsrc/pakfire/lib/fun= ctions.pl;hb=3D31cbb589d9c8610ba0d9b15e2cb1612ac05912a6#l647 > . In my opinion, there should be a check in update.sh if the package is > present, the meta file name needs to be changed then, otherwise updates > etc. are not possible. >=20 >=20 > Can anyone help me with advice on how to be able to install these > modified add-on packages so I can check that the original problem is > actually solved by my solution, or do I have to just submit a patch and > the review of the patch will tell me if I have done it correctly or > not. >=20 > Thanks for any help/advice, >=20 > Just my two cents on that, hope it helps :-) . >=20 >=20 > Adolf >=20 >=20 > Best, >=20 > Erik >=20 --===============2396087447856029945==--