tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tex-* package weirdness



On Sun, Sep 18, 2011 at 19:18, Benny Siegert <bsiegert%gmail.com@localhost> 
wrote:
> when building tex-related packages on MirBSD, I see a very weird behavior:

So it seems that pax on MirBSD does not accept a non-existing target
directory, while other pax implementations will silently create it.
The behavior is stated in the manpage.

What is weird is that on Darwin, this behavior is also stated in the manpage:

     The directory operand specifies a destination directory pathname.
 If the directory operand
     does not exist, or it is not writable by the user, or it is not
of type directory, pax will
     exit with a non-zero exit status.

So arguably, the target directory should be created before calling
pax. Would it be okay to commit this:

Index: package.mk
===================================================================
RCS file: /cvsroot/pkgsrc/print/texlive/package.mk,v
retrieving revision 1.9
diff -u -d -r1.9 package.mk
--- package.mk  24 Sep 2010 16:04:19 -0000      1.9
+++ package.mk  18 Sep 2011 17:40:11 -0000
@@ -102,6 +102,7 @@
 .for _dir in ${_dirs}
        if [ -d ${WRKSRC}/${_dir} ]; then \
                cd ${WRKSRC} && \
+               mkdir -p ${_topdir} && \
                pax -rwpm -s ',.*\.orig$$,,' \
                        ${_dir} ${_topdir}; \
        fi


--Benny.

-- 
The first essential in chemistry is that you should perform practical
work and conduct experiments, for he who performs not practical work
nor makes experiments will never attain the least degree of mastery.
        -- Abu Musa Jabir ibn Hayyan (721-815)


Home | Main Index | Thread Index | Old Index