Activity log for bug #2061825

Date Who What changed Old value New value Message
2024-04-16 11:16:43 Ponnuvel Palaniyappan bug added bug
2024-04-16 11:16:57 Ponnuvel Palaniyappan nominated for series Ubuntu Jammy
2024-04-16 11:16:57 Ponnuvel Palaniyappan bug task added ucf (Ubuntu Jammy)
2024-04-16 11:17:13 Ponnuvel Palaniyappan ucf (Ubuntu): status New Fix Released
2024-04-16 11:17:25 Ponnuvel Palaniyappan ucf (Ubuntu Jammy): status New In Progress
2024-04-16 11:17:27 Ponnuvel Palaniyappan ucf (Ubuntu Jammy): assignee Ponnuvel Palaniyappan (pponnuvel)
2024-04-16 11:17:40 Ponnuvel Palaniyappan ucf (Ubuntu Jammy): importance Undecided High
2024-04-17 16:20:12 Ponnuvel Palaniyappan summary ucf fails to work for local diversions on Jammy [SRU] ucf fails to work for local diversions on Jammy
2024-04-17 16:52:51 Ponnuvel Palaniyappan tags sts
2024-04-17 16:52:59 Ponnuvel Palaniyappan description ucf doesn't work correctly when local diversions in place. This is due to a syntax error and has been fixed in Debian upstream: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979354 Mantic and Noble have the fixed version already. This bug doesn't exist Focal. This will be a Jammy-only backport. [ Impact ] When a dpkg-diversion is used to setup a package diversion and ucf for managing the configuration files for chrony package, the postinst script of ucf fails when installing chrony. This issue isn't specific to chrony but can happen for any package whose config files are managed by ucf. This affects users on Jammy who use ucf. Newer versions of ucf have this bug fixed already. [ Test Plan ] 1. Create a Jammy container or VM 2. Setup a diversion for chrony.conf: dpkg-divert --package chrony --add --rename --divert /etc/chrony/chrony.conf.custom /etc/chrony/chrony.conf 3. Install chrony: apt install chrony -y 4. Notice the postinst script fail with syntax errors such as: ``` Preparing to unpack .../chrony_4.2-2ubuntu2_amd64.deb ... Unpacking chrony (4.2-2ubuntu2) ... Setting up chrony (4.2-2ubuntu2) ... /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory ``` 5. Install the package with the fix from the PPA: https://launchpad.net/~pponnuvel/+archive/ubuntu/ucf-jammy (to be replaced with the package from the -proposed pocket) 6. Repeat the same from steps 1 to 4 and notice no failures at step4. [ Where problems could occur ] Can further introduce similar bugs if the patch contains similar syntax errors. Consequently local diversion may not take effect for packages using ucf to manage configuration files. [ Other Info ] Upstream bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979354 It's been fixed in version ucf/3.0043+nmu1. Lunar/Mantic/Noble all have the ucf version with this patch. Affects Jammy only and thus backported to only Jammy.
2024-04-18 08:32:10 Ponnuvel Palaniyappan attachment added debdiff.txt https://bugs.launchpad.net/ubuntu/+source/ucf/+bug/2061825/+attachment/5767388/+files/debdiff.txt
2024-04-24 14:13:40 Ponnuvel Palaniyappan attachment added debdiff_2061825_new.txt https://bugs.launchpad.net/ubuntu/+source/ucf/+bug/2061825/+attachment/5770060/+files/debdiff_2061825_new.txt
2024-04-24 15:34:55 Heitor Alves de Siqueira bug added subscriber Heitor Alves de Siqueira
2024-04-24 17:30:49 Dariusz Gadomski bug added subscriber Dariusz Gadomski
2024-05-01 15:35:14 Robie Basak ucf (Ubuntu Jammy): status In Progress Incomplete
2024-05-01 15:37:30 Robie Basak bug added subscriber Robie Basak
2024-05-17 12:23:26 Ponnuvel Palaniyappan description [ Impact ] When a dpkg-diversion is used to setup a package diversion and ucf for managing the configuration files for chrony package, the postinst script of ucf fails when installing chrony. This issue isn't specific to chrony but can happen for any package whose config files are managed by ucf. This affects users on Jammy who use ucf. Newer versions of ucf have this bug fixed already. [ Test Plan ] 1. Create a Jammy container or VM 2. Setup a diversion for chrony.conf: dpkg-divert --package chrony --add --rename --divert /etc/chrony/chrony.conf.custom /etc/chrony/chrony.conf 3. Install chrony: apt install chrony -y 4. Notice the postinst script fail with syntax errors such as: ``` Preparing to unpack .../chrony_4.2-2ubuntu2_amd64.deb ... Unpacking chrony (4.2-2ubuntu2) ... Setting up chrony (4.2-2ubuntu2) ... /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory ``` 5. Install the package with the fix from the PPA: https://launchpad.net/~pponnuvel/+archive/ubuntu/ucf-jammy (to be replaced with the package from the -proposed pocket) 6. Repeat the same from steps 1 to 4 and notice no failures at step4. [ Where problems could occur ] Can further introduce similar bugs if the patch contains similar syntax errors. Consequently local diversion may not take effect for packages using ucf to manage configuration files. [ Other Info ] Upstream bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979354 It's been fixed in version ucf/3.0043+nmu1. Lunar/Mantic/Noble all have the ucf version with this patch. Affects Jammy only and thus backported to only Jammy. [ Impact ] When a dpkg-diversion is used to setup a package diversion and ucf for managing the configuration files for chrony package, the postinst script of ucf fails when installing chrony. This issue isn't specific to chrony but can happen for any package whose config files are managed by ucf. This affects users on Jammy who use ucf. Newer versions of ucf have this bug fixed already. "ucf should respect dpkg-divert" (refer https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477773) indicates it is a feature and has been supported since 3.0040 and has been accepted by the upstream maintainer. [ Test Plan ] Common case. A1. Create a Jammy container or VM A2. Install chrony: apt install chrony -y A3. Confirm ucf works with no failures (including syntax errors) B1. Modify the configuration: /etc/chrony/chrony.conf B2. Remove chrony package and re-install B3. Confirm it still works. B. Case when a diversion is in place. 1. Create a Jammy container or VM 2. Setup a diversion for chrony.conf: dpkg-divert --package chrony --add --rename --divert /etc/chrony/chrony.conf.custom /etc/chrony/chrony.conf 3. Install chrony: apt install chrony -y 4. Notice the postinst script fail with syntax errors such as: ``` Preparing to unpack .../chrony_4.2-2ubuntu2_amd64.deb ... Unpacking chrony (4.2-2ubuntu2) ... Setting up chrony (4.2-2ubuntu2) ... /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory /usr/bin/ucf: 444: [: missing ] grep: ]: No such file or directory ``` 5. Install the package with the fix from the PPA: https://launchpad.net/~pponnuvel/+archive/ubuntu/ucf-jammy (to be replaced with the package from the -proposed pocket) 6. Repeat the same from steps 1 to 4 and notice no failures at step4. [ Where problems could occur ] Can further introduce similar bugs if the patch contains similar syntax errors. Consequently local diversion may not take effect for packages using ucf to manage configuration files. [ Other Info ] Upstream bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979354 It's been fixed in version ucf/3.0043+nmu1. Lunar/Mantic/Noble all have the ucf version with this patch. Affects Jammy only and thus backported to only Jammy.
2024-05-17 12:26:05 Ponnuvel Palaniyappan bug watch added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477773
2024-05-17 12:26:05 Ponnuvel Palaniyappan attachment added lp2061825.debdiff https://bugs.launchpad.net/ubuntu/jammy/+source/ucf/+bug/2061825/+attachment/5779403/+files/lp2061825.debdiff
2024-05-17 12:26:37 Ponnuvel Palaniyappan attachment removed debdiff_2061825_new.txt https://bugs.launchpad.net/ubuntu/jammy/+source/ucf/+bug/2061825/+attachment/5770060/+files/debdiff_2061825_new.txt
2024-05-17 12:27:01 Ponnuvel Palaniyappan attachment removed debdiff.txt https://bugs.launchpad.net/ubuntu/jammy/+source/ucf/+bug/2061825/+attachment/5767388/+files/debdiff.txt
2024-05-17 12:27:37 Ponnuvel Palaniyappan ucf (Ubuntu Jammy): status Incomplete In Progress