tech-pkg archive

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

patching r/o files => failure on Linux

In some of pkgsrc packages read-only files (0444 permissions) are
patched.  As a result patch phase fails on Linux. For example,
this is how devel/libtool-base fails to build.

   => Applying pkgsrc patches for libtool-base-2.2.6bnb4
   File libltdl/config/ is read-only; refusing to patch
   1 out of 1 hunk ignored -- saving rejects to file 
   Patch /srv/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac failed
   ERROR: Patching failed due to modified or broken patch file(s):
   ERROR:  /srv/pkgsrc/devel/libtool-base/../libtool/patches/patch-ac

Workaround shown below fixes the problem.

        chmod +w ${WRKSRC}/libltdl/config/

Is there a better way to fix such problems?

Best regards, Aleksey Cheusov.

Home | Main Index | Thread Index | Old Index