Re: F17 yum/rpm not running groupadd in %pre scripts

2012-08-15 Thread Amit Saha
On Wed, Aug 15, 2012 at 5:30 AM, Chuck Anderson c...@wpi.edu wrote:
 I ran into a comedy of errors today after I did a new F17 installation
 yesterday.  Here are a couple:

 https://bugzilla.redhat.com/show_bug.cgi?id=848148
 Error in PREIN scriptlet in rpm package wireshark-1.6.9-1.fc17.x86_64

 (and why does yum still let the transaction succeed, creating problems
 in the RPMDB, broken dependencies?)

 https://bugzilla.redhat.com/show_bug.cgi?id=845671
 Directory '/var/run/screen' must have mode 777. when opening screen

 (and why does systemd-tmpfiles completely fail to start when there is
 a missing group--it should fail gracefully, allowing the other
 tmpfiles stuff to run and the service as a whole to run)

 Both of these are traceable to missing entries in /etc/group.  In the
 former cae, there is an explicit Error in PREIN script during
 instalation.  In the latter case, there is only a warning and
 installation proceeds:

 Running Transaction
   Installing : screen-4.1.0-0.9.20120314git3c2946.fc17.x86_64   
 1/1
 warning: group screen does not exist - using root
 warning: group screen does not exist - using root

 So what is going on with %pre not running groupadd properly?  Are there
 any known issues in this area?

Would like to add a link to the bug I filed recently [1]. As I note
there, this is what I get:

Error in PREIN scriptlet in rpm package rabbitmq-server-2.6.1-2.fc17.noarch
error: %pre(rabbitmq-server-2.6.1-2.fc17.noarch) scriptlet failed,
exit status 6

And also that Group added using: #groupadd -r rabbitmq and yum
install succeeds.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=844977

Cheers,
Amit

-- 
http://echorand.me
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: F17 yum/rpm not running groupadd in %pre scripts

2012-08-15 Thread Rex Dieter
Chuck Anderson wrote:

 On Tue, Aug 14, 2012 at 09:33:36PM -0500, Rex Dieter wrote:
 Chuck Anderson wrote:
 
  I ran into a comedy of errors today after I did a new F17 installation
  yesterday.  Here are a couple:
  
  https://bugzilla.redhat.com/show_bug.cgi?id=848148
  Error in PREIN scriptlet in rpm package wireshark-1.6.9-1.fc17.x86_64
  
  (and why does yum still let the transaction succeed, creating problems
  in the RPMDB, broken dependencies?)
 
 Still need to file a bug on yum for this one.  yum should have failed
 the transaction rather than allow a package to be installed with
 missing deps.

I don't think that would be worthwhile.  I believe there's no sane way to 
back out of the transaction at that point (please do correct me if I'm 
wrong).

-- rex

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: F17 yum/rpm not running groupadd in %pre scripts

2012-08-14 Thread Rex Dieter
Chuck Anderson wrote:

 I ran into a comedy of errors today after I did a new F17 installation
 yesterday.  Here are a couple:
 
 https://bugzilla.redhat.com/show_bug.cgi?id=848148
 Error in PREIN scriptlet in rpm package wireshark-1.6.9-1.fc17.x86_64
 
 (and why does yum still let the transaction succeed, creating problems
 in the RPMDB, broken dependencies?)

I believe your suspicions are correct.

...
 So what is going on with %pre not running groupadd properly?  Are there
 any known issues in this area?

Maybe try running the scriptlet by hand?

%pre
/usr/sbin/groupadd -g 84 -r -f screen

and and try to figure out why it fails on your box.

-- rex


-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Re: F17 yum/rpm not running groupadd in %pre scripts

2012-08-14 Thread Chuck Anderson
On Tue, Aug 14, 2012 at 09:33:36PM -0500, Rex Dieter wrote:
 Chuck Anderson wrote:
 
  I ran into a comedy of errors today after I did a new F17 installation
  yesterday.  Here are a couple:
  
  https://bugzilla.redhat.com/show_bug.cgi?id=848148
  Error in PREIN scriptlet in rpm package wireshark-1.6.9-1.fc17.x86_64
  
  (and why does yum still let the transaction succeed, creating problems
  in the RPMDB, broken dependencies?)

Still need to file a bug on yum for this one.  yum should have failed
the transaction rather than allow a package to be installed with
missing deps.

 I believe your suspicions are correct.
 
 ...
  So what is going on with %pre not running groupadd properly?  Are there
  any known issues in this area?
 
 Maybe try running the scriptlet by hand?
 
 %pre
 /usr/sbin/groupadd -g 84 -r -f screen
 
 and and try to figure out why it fails on your box.

Already found the problem in selinux-policy:

https://bugzilla.redhat.com/show_bug.cgi?id=844167
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test