Tried to fix rmake chroots with a hacked version of filesystem. The perms
are getting hosed on the chroots by filesystem rpm install.
dr-xr-xr-x 7 rmake rmake 2080 2013-08-07 09:10 acl
It is not fixed yet because rmake is not using the resolveTroves version of
filesystem to create the chroots. I will work on it more tomorrow...
Here is what I did.
in both chroots
sudo yum install iso-codes rpmdevtools
rpmdev-setuptree
in i686 chroot
rpm -ivh filesystem-3.2-19.fc20.src.rpm
cd ~/rpmbuild/SPECS/
cp filesystem.spec filesystem.spec.orig
sed -i 's/(555,root,root)/(755,root,root)/g' filesystem.spec
sed -i 's/19%{?dist}/19%{?dist}.chroot/g' filesystem.spec
rpmbuild -bb filesystem.spec
in X86_64 chroot
rpmbuild -ba filesystem.spec
diff -rupN filesystem.spec.orig filesystem.spec
--- filesystem.spec.orig 2014-02-13 18:20:50.935623745 -0500
+++ filesystem.spec 2014-02-13 18:22:01.422060707 -0500
@@ -1,7 +1,7 @@
Summary: The basic directory layout for a Linux system
Name: filesystem
Version: 3.2
-Release: 19%{?dist}
+Release: 19%{?dist}.chroot
License: Public Domain
URL: https://fedorahosted.org/filesystem
Group: System Environment/Base
@@ -136,9 +136,9 @@ return 0
%files -f filelist
%defattr(0755,root,root,-)
-%dir %attr(555,root,root) /
+%dir %attr(755,root,root) /
/bin
-%attr(555,root,root) /boot
+%attr(755,root,root) /boot
/dev
%dir /etc
/etc/X11
@@ -158,7 +158,7 @@ return 0
/media
%dir /mnt
%dir /opt
-%attr(555,root,root) /proc
+%attr(755,root,root) /proc
%attr(550,root,root) /root
/run
/sbin
@@ -166,23 +166,23 @@ return 0
/sys
%attr(1777,root,root) /tmp
%dir /usr
-%attr(555,root,root) /usr/bin
+%attr(755,root,root) /usr/bin
/usr/games
/usr/include
-%dir %attr(555,root,root) /usr/lib
+%dir %attr(755,root,root) /usr/lib
/usr/lib/debug
-%attr(555,root,root) /usr/lib/games
-%attr(555,root,root) /usr/lib/sse2
+%attr(755,root,root) /usr/lib/games
+%attr(755,root,root) /usr/lib/sse2
%ifarch x86_64 ppc64 sparc64 s390x aarch64
-%attr(555,root,root) /usr/%{_lib}
+%attr(755,root,root) /usr/%{_lib}
%else
-%attr(555,root,root) /usr/lib/tls
-%attr(555,root,root) /usr/lib/X11
-%attr(555,root,root) /usr/lib/pm-utils
+%attr(755,root,root) /usr/lib/tls
+%attr(755,root,root) /usr/lib/X11
+%attr(755,root,root) /usr/lib/pm-utils
%endif
/usr/libexec
/usr/local
-%attr(555,root,root) /usr/sbin
+%attr(755,root,root) /usr/sbin
%dir /usr/share
/usr/share/aclocal
/usr/share/applications
@@ -191,7 +191,7 @@ return 0
/usr/share/desktop-directories
/usr/share/dict
/usr/share/doc
-%attr(555,root,root) %dir /usr/share/empty
+%attr(755,root,root) %dir /usr/share/empty
/usr/share/games
/usr/share/ghostscript
/usr/share/gnome
diff -rupN filesystem.spec.orig filesystem.spec > filesystem.patch
cd ~/x86_64/f20s1.flnx.org_f/20s-c
cvc newpkg filesystem
cd filesystem
vi filesystem.recipe
class Filesystem(CapsuleRecipe):
name = 'filesystem'
version = '3.2-19.fc20.chroot'
def setup(r):
r.addCapsule('filesystem-3.2-19.fc20.chroot.i686.rpm', use=Arch.x86)
r.addCapsule('filesystem-3.2-19.fc20.chroot.x86_64.rpm',
use=Arch.x86_64)
# add flavoring
if Arch.x86:
pass
elif Arch.x86_64:
pass
cp ~/rpmbuild/RPMS/i686/filesystem-3.2-19.fc20.chroot.i686.rpm .
cp ~/rpmbuild/RPMS/x86_64/filesystem-3.2-19.fc20.chroot.x86_64.rpm .
cp ~/rpmbuild/SPECS/filesystem.patch .
cvc add *.*
cvc commit -m "Initial commit"
cd ..
in i686 chroot
cvc cook filesystem --no-deps --context x86
in X86_64 chroot
cvc cook filesystem --no-deps --context x86_64
Add to group-rmake in group-conary-packages
groupRmake = common.find(
'info-rmake',
'info-rmake-chroot',
'rmake',
'rmake-multinode-server',
'rmake-node',
'rmake-proxy',
'rmake-repos',
'rpath-xmllib',
'xobj',
'filesystem',
).createGroup('group-rmake')
cvc ci -m "adding hacked filesystem"
./cookgroups
ssh -A import@rmake
mirrorme (alias for cd to mirrorball scripts dir)
vi ../config/test/rmakerc
add this line
resolveTroves filesystem=f20s1.flnx.org@f:20s-c
./import test
2014-02-13 18:44:59,971 INFO [1756] - acl:source - Failed while creating
chroot: [Errno 13] Permission denied: '/srv/rmake/chroots/acl-2/tmp'
Not fixed....GRRRR!
Silly errors I saw fixed by installing iso-codes in chroots
rpmbuild -bb filesystem.spec
warning: bogus date in %changelog: Wed Jun 20 2013 Ondrej Vasik
<[email protected]> - 3.2-16
warning: bogus date in %changelog: Fri Sep 25 2010 Ondrej Vasik
<[email protected]> 2.4.36-1
warning: bogus date in %changelog: Sun Jun 19 2000 Bill Nottingham
<[email protected]>
warning: bogus date in %changelog: Mon Aug 28 1999 Preston Brown
<[email protected]>
error: Failed build dependencies:
iso-codes is needed by filesystem-3.2-19.fc20.i686
--
Brett C. Smith
[email protected]
Sr Software Developer
Platform Deployment Technologies
(919)531-6635 -- x16635
_______________________________________________
Foresight-devel mailing list
[email protected]
https://lists.foresightlinux.org/mailman/listinfo/foresight-devel