tech-pkg archive

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

Cannot patch devel/patch



Greetings,

I'm trying to build devel/patch on macOS, and it fails with

=> Applying pkgsrc patch /dist/pkgsrc/devel/patch/patches/patch-src_pch.c
/bin/sh: -d: command not found
Patch /dist/pkgsrc/devel/patch/patches/patch-src_pch.c failed
=> Verifying /dist/pkgsrc/devel/patch/patches/patch-tests_Makefile.in
=> Applying pkgsrc patch /dist/pkgsrc/devel/patch/patches/patch-tests_Makefile.in
/bin/sh: -d: command not found
Patch /dist/pkgsrc/devel/patch/patches/patch-tests_Makefile.in failed
=> Verifying /dist/pkgsrc/devel/patch/patches/patch-tests_ed-style
=> Applying pkgsrc patch /dist/pkgsrc/devel/patch/patches/patch-tests_ed-style
/bin/sh: -d: command not found
Patch /dist/pkgsrc/devel/patch/patches/patch-tests_ed-style failed
ERROR: Patching failed due to modified or broken patch file(s):
ERROR: 	/dist/pkgsrc/devel/patch/patches/patch-src_pch.c
ERROR: 	/dist/pkgsrc/devel/patch/patches/patch-tests_Makefile.in
ERROR: 	/dist/pkgsrc/devel/patch/patches/patch-tests_ed-style
*** Error code 1


It is due to this fragment in tools/replace.mk -- why is it needed?

.if !defined(TOOLS_IGNORE.patch) && !empty(_USE_TOOLS:Mpatch)
.  if !empty(PKGPATH:Mdevel/patch)
MAKEFLAGS+=                     TOOLS_IGNORE.patch=
.  elif !empty(_TOOLS_USE_PKGSRC.patch:M[yY][eE][sS])
TOOLS_DEPENDS.patch?=           nbpatch-[0-9]*:../../devel/nbpatch
TOOLS_CREATE+=                  patch
TOOLS_PATH.patch=               ${LOCALBASE}/bin/nbpatch
_PATCH_CAN_BACKUP=              yes
_PATCH_BACKUP_ARG=              -V simple -z
.  endif
.endif


Also, doing 'lintpkgsrc -or', always removes 'patch-2.7.6.tar.xz'

% lintpkgsrc -or
Scan distinfo: ........................................... (19393 packages)
1 unreferenced file(s) in '/dist/distfiles':
patch-2.7.6.tar.xz
Unlinking 'bad' distfiles


How can we fix these?

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index