Mailinglist Archive: opensuse-buildservice (311 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] Make passwd, gshadow and group compatibly with Ubuntu 9.10
I've got a patch so that a Ubuntu chroot can be reused without a clean
being needed:

Index: build
===================================================================
--- build (revision 2041)
+++ build (working copy)
@@ -1176,10 +1176,10 @@
if test $BUILD_USER = abuild ; then
# add abuild user if it doesn't exist
if ! egrep '^abuild:' >/dev/null <$BUILD_ROOT/etc/passwd ; then
- echo "abuild::${ABUILD_UID}:
${ABUILD_GID}:Autobuild:/home/abuild:/bin/bash" >>$BUILD_ROOT/etc/passwd
+ echo "abuild:x:${ABUILD_UID}:
${ABUILD_GID}:Autobuild:/home/abuild:/bin/bash" >>$BUILD_ROOT/etc/passwd
echo 'abuild:*:::::::' >>$BUILD_ROOT/etc/shadow # This is
needed on Mandriva 2009
- echo 'abuild:*:::::::' >>$BUILD_ROOT/etc/gshadow # This is
needed on Ubuntu 8.10
- echo "abuild::${ABUILD_GID}:" >>$BUILD_ROOT/etc/group
+ echo 'abuild:*::' >>$BUILD_ROOT/etc/gshadow # This is
needed on Ubuntu 8.10
+ echo "abuild:x:${ABUILD_GID}:" >>$BUILD_ROOT/etc/group
mkdir -p $BUILD_ROOT/home/abuild
chown ${ABUILD_UID}:${ABUILD_GID} $BUILD_ROOT/home/abuild
# grab previous abuild UID and GID to maintain compatibility

On Mon, 2009-11-09 at 12:19 -0600, Luke Imhoff wrote:
Is there a fix for this:

user abuild has an entry in /etc/shadow, but its password field
in /etc/passwd is not set to 'x'
pwck: no changes
Please correct the error and rerun `/sbin/shadowconfig on'
dpkg: error processing passwd (--install):
subprocess installed post-installation script returned error exit
status 1
Processing triggers for man-db ...
Errors were encountered while processing:
passwd

? It means I have to run with --clean every time.

On Mon, 2009-11-09 at 12:16 -0600, Adrian Schröter wrote:
Am Montag, 9. November 2009 18:52:11 schrieb Adrian Schröter:
Am Montag, 9. November 2009 17:47:11 schrieb Luke Imhoff:
When building against xUbuntu_9.10 using build-2009.07.27, it keeps
reinstall all the .debs. Do .deb based workareas not have detection
that packages are already installed in the chroot like .rpm based
chroots do? Or do I need to upgrade to a newer build? We're still
using OBS 1.5 for the server, so I didn't want to upgrade build if it
might break compatibility.

It worked latetly for me. You may try to upgrade osc and esp. the build
script first on your workstation to test again.

okay, I was wrong here. This is currently not supported by the build script.
A partial fix is in svn now, but it is not complete.

bye
adrian





--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups