On Mon, Jun 15, 2020 at 11:15:55AM +0200, Frank Steiner wrote: > The behaviour has changed between rpm 4.9 and 4.10 as I could > figure out by installing the old versions from opensuse. > > If you want to keep using "install -o .. -g .." to avoid > naming all files explicitely in %files, you can use sth. like > > find $RPM_BUILD_ROOT -not -type d -printf '%%attr(%m,%u,%g,%m) "/%P"\n' > >files.list > > %files -f files.list Are you building your RPM as root? (Not recommended, in my opinion.) Does the mysql uid/gid exist at the time this RPM is being packaged? > cu, > Frank > > > Frank Steiner wrote: > > >Hi, > > > >when I started with my own spec files many years ago I always used > >lines like > > > >install -o mysql -g mysql -m 700 blabla $RPM_BUILD_ROOT/... > > > >and I'm pretty sure that the file blabla belonged to mysql:mysql > >after installation of the rpm, although it was not mentioned in > >%files with any attr. Actually, we always collect the list of > >files with a find command and use "%files -f files.list", so > >attr/defattr is never used. > > > >With a new RPM I wrote recently I used install lines with owner > >and group like above, but all files belong to root:root after > >installation and I couldn't find any way to change that except > >using attr/defattr in %files. > > > >Has this behaviour changed at some time in the past? Or is my > >remembrance just wrong? > > > >cu, > >Frank > > > > > -- > Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ > Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ > LMU, Amalienstr. 17 Phone: +49 89 2180-4049 > 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 > * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. * > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxxxxx > http://lists.rpm.org/mailman/listinfo/rpm-list -- Brian Reichert <reichert@xxxxxxxxxxx> BSD admin/developer at large _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list