Bug 423041 - empty scripts
Summary: empty scripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Test-AutoBuild
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-13 10:10 UTC by Florian La Roche
Modified: 2007-12-22 19:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-22 19:11:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Florian La Roche 2007-12-13 10:10:30 UTC
Description of problem:

This rpm creates a few empty scripts which are then also in the
binary rpm packages. Those can get removed from the spec file.

regards,

Florian La Roche



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2007-12-13 16:37:10 UTC
I don't understand what you mean. Can you point out the actual spec file bits
which are wrong ?

Comment 2 Florian La Roche 2007-12-13 16:49:11 UTC
The following change could go in to prevent empty scripts:

--- perl-Test-AutoBuild.spec    10 Dec 2007 15:25:39 -0000      1.5
+++ perl-Test-AutoBuild.spec    13 Dec 2007 16:47:53 -0000
@@ -223,9 +223,9 @@ else
                     -c 'Test-AutoBuild build engine' -g builder builder
&>/dev/null || :
 fi

+%if %{with_selinux}
 %post
 # Always run, even on upgrade so we reload it
-%if %{with_selinux}
 /usr/sbin/semodule -i %{_datadir}/selinux/packages/auto-build/auto-build.pp
>/dev/null
 fixfiles -R %{name} restore
 %endif
@@ -234,14 +234,14 @@ fixfiles -R %{name} restore
 %__fe_userdel builder &>/dev/null || :
 %__fe_groupdel builder &>/dev/null || :

-%post account
 %if %{with_selinux}
+%post account
 fixfiles -R %{name}-account restore
 %endif

+%if %{with_selinux}
 %postun
 # Unload if last module
-%if %{with_selinux}
 if [ $1 -eq 0 ]; then
   /usr/sbin/semodule -r autobuild >/dev/null
 fi



regards,

Florian La Roche


Comment 3 Daniel Berrangé 2007-12-13 18:12:01 UTC
Ok I will make those changes. Were you actually seeing install problems caused
by the empty scripts that I should do an immediate rebuild for ? If not I'll
wait until the next update to rebuild...

Comment 4 Florian La Roche 2007-12-14 09:00:03 UTC
This is only very minor cleanup, so can wait for the next package build.

Thanks,

Florian La Roche


Comment 5 Daniel Berrangé 2007-12-22 19:11:33 UTC
Fixed in perl-Test-AutoBuild-1.2.2-1.fc9



Note You need to log in before you can comment on or make changes to this bug.