|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| <!--language:en
| | #REDIRECT [[User:Mebrown]] |
| -->
| |
| = Michael Brown =
| |
| | |
| '''Email''': [[MailTo(mebrown AT michaels-house DOT net)]
| |
| | |
| '''Email(work)''': [[MailTo(michael_e_brown AT dell DOT com)]
| |
| | |
| '''IRC''': mebrown or michael_e_brown on [http://freenode.net Freenode]
| |
| | |
| '''GPG''' : [http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD0050FE5 0xD0050FE5] ; to import $ gpg --keyserver=pgp.mit.edu --recv-key 0xD0050FE5
| |
| | |
| '''Member''' :
| |
| | |
| '''Location''': [http://en.wikipedia.org/wiki/Austin_texas Austin] , [http://en.wikipedia.org/wiki/Texas Texas] , USA
| |
| | |
| == Profile ==
| |
| Should put some profile stuff here...
| |
| | |
| I maintain:
| |
| *libsmbios
| |
| *firmware-tools
| |
| *firmware-addon-dell
| |
| *mock
| |
| | |
| I am also upstream for all these packages.
| |
| | |
| == testing... ==
| |
| try.py:
| |
| <pre>
| |
| import os
| |
| | |
| import ctypes
| |
| _libc = ctypes.cdll.LoadLibrary("libc.so.6")
| |
| _errno = ctypes.c_int.in_dll(_libc, "errno")
| |
| | |
| CLONE_NEWNS = 0x00020000
| |
| | |
| def unshare(flags):
| |
| print "unsharing"
| |
| try:
| |
| _libc.unshare.argtypes = [ctypes.c_int,]
| |
| _libc.unshare.restype = ctypes.c_int
| |
| res = _libc.unshare(flags)
| |
| if res:
| |
| raise OSError(_errno.value, os.strerror(_errno.value))
| |
| print "unshared"
| |
| except AttributeError, e:
| |
| pass
| |
| | |
| unshare(CLONE_NEWNS)
| |
| | |
| os.execl("/bin/sh", "/bin/sh", "-e", "./try2.sh")
| |
| </pre>
| |
| | |
| try2.sh
| |
| <pre>#!/bin/sh
| |
| | |
| RPM_SOURCE_DIR="/builddir/build/SOURCES"
| |
| RPM_BUILD_DIR="/builddir/build/BUILD"
| |
| RPM_OPT_FLAGS="-O2"
| |
| RPM_ARCH="ppc"
| |
| RPM_OS="linux"
| |
| export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
| |
| RPM_DOC_DIR="/usr/share/doc"
| |
| export RPM_DOC_DIR
| |
| RPM_PACKAGE_NAME="perl-Email-MIME-Attachment-Stripper"
| |
| RPM_PACKAGE_VERSION="1.314"
| |
| RPM_PACKAGE_RELEASE="2.fc9"
| |
| export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
| |
| RPM_BUILD_ROOT="/var/tmp/perl-Email-MIME-Attachment-Stripper-1.314-2.fc9-root-mockbuild"
| |
| export RPM_BUILD_ROOT
| |
| | |
| set -x
| |
| umask 022
| |
| LANG=C
| |
| export LANG
| |
| unset DISPLAY
| |
| | |
| rm -rf $RPM_BUILD_ROOT
| |
| mkdir -p $RPM_BUILD_ROOT/{some,test,dirs}
| |
| touch $RPM_BUILD_ROOT/{other,files,for,testing}
| |
| touch $RPM_BUILD_ROOT/some/{other,files,for,testing}
| |
| find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
| |
| find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
| |
| | |
| echo This should succeed, but fails for f13.
| |
| chmod -R u+w $RPM_BUILD_ROOT/*
| |
| | |
| echo This will fail
| |
| chmod -R u+w $RPM_BUILD_ROOT/nonexistent/*
| |
| | |
| </pre>
| |
| <BR>
| |
| ----
| |
| [[Category:Homepage]] | |