summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20110114/003402.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-discuss/20110114/003402.html')
-rw-r--r--zarb-ml/mageia-discuss/20110114/003402.html126
1 files changed, 126 insertions, 0 deletions
diff --git a/zarb-ml/mageia-discuss/20110114/003402.html b/zarb-ml/mageia-discuss/20110114/003402.html
new file mode 100644
index 000000000..bfbb8a148
--- /dev/null
+++ b/zarb-ml/mageia-discuss/20110114/003402.html
@@ -0,0 +1,126 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-discuss] Trying to learn a little about packaging
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Trying%20to%20learn%20a%20little%20about%20packaging&In-Reply-To=%3CAANLkTin2r0HcgUTREUrxvUGkOdrTrseRLP8JApoUbP%3D-%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+
+ <LINK REL="Next" HREF="003403.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-discuss] Trying to learn a little about packaging</H1>
+ <B>Hoyt Duff</B>
+ <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Trying%20to%20learn%20a%20little%20about%20packaging&In-Reply-To=%3CAANLkTin2r0HcgUTREUrxvUGkOdrTrseRLP8JApoUbP%3D-%40mail.gmail.com%3E"
+ TITLE="[Mageia-discuss] Trying to learn a little about packaging">hoytduff at gmail.com
+ </A><BR>
+ <I>Fri Jan 14 06:18:58 CET 2011</I>
+ <P><UL>
+
+ <LI>Next message: <A HREF="003403.html">[Mageia-discuss] Trying to learn a little about packaging
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#3402">[ date ]</a>
+ <a href="thread.html#3402">[ thread ]</a>
+ <a href="subject.html#3402">[ subject ]</a>
+ <a href="author.html#3402">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>The .spec file as provided defines %define _prefix as /usr/local. Yes,
+I know that it should be /usr for a Mandriva-specific package, but I'd
+like to actually build the package first so I can understand what
+needs to be patched to build from the pristine sources on
+Madriva/Mageia, not start from scratch - that kind of defeats the
+purpose of RPM.
+
+In the %files section &quot;%{_libdir}/%{name}&quot; should pick up &quot;%_prefix&quot;,
+but it does not. As a result, some files don't get created in two
+directories and the build fails.
+
+What I'm asking is if there is a difference in how Mandrake handles
+that substitution versus how Fedora handles that. I installed Fedora
+in a VM and the package builds fine on Fedora, but I get the error on
+Madriva. I've examined the .spec file and don't see where there is any
+obvious problem, so I'm seeking some guidance as to where to look
+deeper.
+
+While I can find lots of (mostly useless) info on RPM building through
+Google, I'm not sure where to look for any Mandriva docs for that, so
+a suggestion for that would be welcome as well.
+
+On 1/13/11, Remy CLOUARD &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">shikamaru at mandriva.org</A>&gt; wrote:
+&gt;<i> On Thu, Jan 13, 2011 at 09:41:46AM +0200, P. Christeas wrote:
+</I>&gt;&gt;<i> On Thursday 13 January 2011, Hoyt Duff wrote:
+</I>&gt;&gt;<i> &gt; ...
+</I>&gt;&gt;<i> &gt; I contacted the author, who says the rpm will build on Fedora. He
+</I>&gt;&gt;<i> &gt; says: &quot;Path error. The .spec file &quot;%define _prefix /usr/local&quot;
+</I>&gt;&gt;<i> &gt; (compare with a &quot;./configure --prefix=/usr/local&quot;) and in the %files
+</I>&gt;&gt;<i> &gt; section &quot;%{_libdir}/%{name}&quot; should pick up &quot;%_prefix&quot;. For some
+</I>&gt;&gt;<i> &gt; reason it doesn't but then again I never built RPM's on Mandriva...
+</I>&gt;&gt;<i> &gt;
+</I>&gt;&gt;<i> &gt; ... and gave me a hack to try that fails also with an error he has
+</I>&gt;&gt;<i> &gt; never seen before,
+</I>&gt;&gt;<i> &gt; error: Package already exists: %package __restore__
+</I>&gt;&gt;<i> &gt;
+</I>&gt;&gt;<i> &gt; Can someone point me to where in the Mandriva docs I can find info on
+</I>&gt;&gt;<i> &gt; what might be going wrong? Thanks.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> (by just looking at your mail, no deeper look at rkhunter or else)
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> The prefix should be &quot;/usr&quot;, and not explicitly defined in the project's
+</I>&gt;&gt;<i> spec.
+</I>&gt;&gt;<i> Reason: all software that is installed through distro packages goes to
+</I>&gt;&gt;<i> /usr.
+</I>&gt;&gt;<i> All other that installs through &quot;./install.sh&quot; or custom hacks goes to
+</I>&gt;&gt;<i> &quot;/usr/local&quot;
+</I>&gt;&gt;<i> So, make sure that &quot;/usr/local&quot; is _not_ the path passed to ./configure
+</I>&gt;&gt;<i> and
+</I>&gt;&gt;<i> used to install files onto.
+</I>&gt;&gt;<i>
+</I>&gt;<i> That&#8217;s true.
+</I>&gt;<i>
+</I>&gt;<i> I would add that we also have preconfigured macro that ensures standard
+</I>&gt;<i> directories are respected (among other things).
+</I>&gt;<i>
+</I>&gt;<i> Could you try using %configure2_5x instead of ./configure ? the prefix
+</I>&gt;<i> part should be dropped.
+</I>&gt;<i>
+</I>&gt;<i> If you are curious about what it does, you could try rpm --eval
+</I>&gt;<i> %configure2_5x :-)
+</I>&gt;<i>
+</I>&gt;<i> Regards,
+</I>&gt;<i> --
+</I>&gt;<i> R&#233;my CLOUARD
+</I>&gt;<i> () ascii ribbon campaign - against html e-mail
+</I>&gt;<i> /\ www.asciiribbon.org - against proprietary attachments
+</I>&gt;<i>
+</I>
+
+--
+Hoyt
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+
+ <LI>Next message: <A HREF="003403.html">[Mageia-discuss] Trying to learn a little about packaging
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#3402">[ date ]</a>
+ <a href="thread.html#3402">[ thread ]</a>
+ <a href="subject.html#3402">[ subject ]</a>
+ <a href="author.html#3402">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
+mailing list</a><br>
+</body></html>