<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] %{_unitdir} after /usr move
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%25%7B_unitdir%7D%20after%20/usr%20move&In-Reply-To=%3C20120724141142.GA3045%40bkor.dhs.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="017785.html">
   <LINK REL="Next"  HREF="017654.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] %{_unitdir} after /usr move</H1>
    <B>Olav Vitters</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%25%7B_unitdir%7D%20after%20/usr%20move&In-Reply-To=%3C20120724141142.GA3045%40bkor.dhs.org%3E"
       TITLE="[Mageia-dev] %{_unitdir} after /usr move">olav at vitters.nl
       </A><BR>
    <I>Tue Jul 24 16:11:42 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="017785.html">[Mageia-dev] Fwd: [VDPAU] [PATCH] Implement workarounds for Adobe Flash bugs
</A></li>
        <LI>Next message: <A HREF="017654.html">[Mageia-dev] %{_unitdir} after /usr move
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17653">[ date ]</a>
              <a href="thread.html#17653">[ thread ]</a>
              <a href="subject.html#17653">[ subject ]</a>
              <a href="author.html#17653">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>$ rpm -E '%{_unitdir}'
/lib/systemd/system

This should show:
/usr/lib/systemd/system

I see that it is defined in two places:
1. /etc/rpm/macros.d/20build.macros: %_unitdir /lib/systemd/system
2. /usr/lib/rpm/macros.systemd: %_unitdir /usr/lib/systemd/system

The latter obviously provides the right setting. But I guess due to
ordering and so on it picks up the setting from 20build.macros.

This is preventing me to package NetworkManager properly (I prefer
relying on %{_unitdir} to give me the location, so the spec still works
on Mageia 2).

Could someone fix this?

-- 
Regards,
Olav
</PRE>




































<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="017785.html">[Mageia-dev] Fwd: [VDPAU] [PATCH] Implement workarounds for Adobe Flash bugs
</A></li>
	<LI>Next message: <A HREF="017654.html">[Mageia-dev] %{_unitdir} after /usr move
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17653">[ date ]</a>
              <a href="thread.html#17653">[ thread ]</a>
              <a href="subject.html#17653">[ subject ]</a>
              <a href="author.html#17653">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>