diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/002095.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2011-January/002095.html | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-January/002095.html b/zarb-ml/mageia-sysadm/2011-January/002095.html new file mode 100644 index 000000000..0f022e3a2 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/002095.html @@ -0,0 +1,123 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] [295] - properly set each rpm macros at import + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B295%5D%20-%20properly%20set%20each%20rpm%20macros%20at%20import&In-Reply-To=%3C20110114174016.GA10402%40virgo.home.nanardon.zarb.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="002093.html"> + <LINK REL="Next" HREF="002085.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] [295] - properly set each rpm macros at import</H1> + <B>Olivier Thauvin</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B295%5D%20-%20properly%20set%20each%20rpm%20macros%20at%20import&In-Reply-To=%3C20110114174016.GA10402%40virgo.home.nanardon.zarb.org%3E" + TITLE="[Mageia-sysadm] [295] - properly set each rpm macros at import">nanardon at nanardon.zarb.org + </A><BR> + <I>Fri Jan 14 18:40:16 CET 2011</I> + <P><UL> + <LI>Previous message: <A HREF="002093.html">[Mageia-sysadm] [295] - properly set each rpm macros at import +</A></li> + <LI>Next message: <A HREF="002085.html">[Mageia-sysadm] [296] - fix string formating +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2095">[ date ]</a> + <a href="thread.html#2095">[ thread ]</a> + <a href="subject.html#2095">[ subject ]</a> + <a href="author.html#2095">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>* Olivier Blin (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">mageia at blino.org</A>) wrote: +><i> nicolas vigier <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">boklm at mars-attacks.org</A>> writes: +</I>><i> +</I>><i> > On Fri, 14 Jan 2011, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> wrote: +</I>><i> > +</I>><i> >> - properly set each rpm macros at import +</I>><i> +</I>><i> [...] +</I>><i> +</I>><i> >> def unpack(self, topdir): +</I>><i> >> - execcmd("rpm -i --define '_topdir %s' %s" % (topdir, self.filename)) +</I>><i> >> + execcmd("rpm -i --define '_sourcedir %s/SOURCES' " + +</I>><i> >> + "--define '_specdir %s/SPECS' --define '_patchdir %s/SPECS' %s" +</I>><i> >> + % (topdir, topdir, topdir, self.filename)) +</I>><i> > +</I>><i> > _patchdir in SPECS dir now ? +</I>><i> +</I>><i> And why not keep using topdir ? +</I> +Because: + +[<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">olivier at volantis</A> trunk]$ grep _sourcedir ~/.rpmmacros +%_sourcedir %(echo `pwd`/SOURCES) + +Which make the mgarepo to fail and writing where I don't want. + +But in this case, why is it used in the same software elsewhere ? :) +MgaRepo/rpmutil.py: sourcedir = "--define '_sourcedir %s/%s'" % (tmpdir, "SOURCES") +MgaRepo/rpmutil.py: (sourcecmd, topdir, builddir, rpmdir, sourcedir, specdir, + +Regards. + +><i> +</I>><i> -- +</I>><i> Olivier Blin - blino +</I>><i> _______________________________________________ +</I>><i> Mageia-sysadm mailing list +</I>><i> <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">Mageia-sysadm at mageia.org</A> +</I>><i> <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">https://www.mageia.org/mailman/listinfo/mageia-sysadm</A> +</I>-- + +Olivier Thauvin +CNRS - LATMOS +♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖ +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: not available +Type: application/pgp-signature +Size: 197 bytes +Desc: not available +URL: </pipermail/mageia-sysadm/attachments/20110114/e1ef4ec6/attachment.asc> +</PRE> + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="002093.html">[Mageia-sysadm] [295] - properly set each rpm macros at import +</A></li> + <LI>Next message: <A HREF="002085.html">[Mageia-sysadm] [296] - fix string formating +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2095">[ date ]</a> + <a href="thread.html#2095">[ thread ]</a> + <a href="subject.html#2095">[ subject ]</a> + <a href="author.html#2095">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |