Bug 59450 - sysutils/gdesklets-sysinfo doesn't build when WRKDIRPREFIX is set
Summary: sysutils/gdesklets-sysinfo doesn't build when WRKDIRPREFIX is set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 06:30 UTC by Akifyev Sergey
Modified: 2003-11-19 13:13 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.15 KB, patch)
2003-11-19 06:30 UTC, Akifyev Sergey
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Akifyev Sergey 2003-11-19 06:30:20 UTC
sysutils/gdesklets-sysinfo doesn't build when WRKDIRPREFIX is set,
because patch call assumes work/ is subdir of current dir

How-To-Repeat: # cd /usr/ports/sysutils/gdesklets-sysinfo
# WRKDIRPREFIX=/tmp make
Comment 1 Franz Klammer 2003-11-19 11:19:04 UTC
here a other patch that doesn't use @cd because
it isn't defined in any Mk-file as ${CD}:


diff -Nur gdesklets-sysinfo.orig/Makefile gdesklets-sysinfo/Makefile
--- gdesklets-sysinfo.orig/Makefile     Tue Nov 18 18:39:47 2003
+++ gdesklets-sysinfo/Makefile  Wed Nov 19 12:17:14 2003
@@ -29,7 +29,7 @@
 
 do-build:
        @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC}
-       @${PATCH} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py
+       @${PATCH} -d ${WRKDIR} -sp0 < 
${PATCHDIR}/postbuild-patch-__init__.py
        @${FIND} ${WRKSRC} -name '*.orig' -delete
 
 do-install:
diff -Nur gdesklets-sysinfo.orig/files/postbuild-patch-__init__.py 
gdesklets-sysinfo/files/postbuild-patch-__init__.py
--- gdesklets-sysinfo.orig/files/postbuild-patch-__init__.py    Tue Nov 
18 12:25:45 2003
+++ gdesklets-sysinfo/files/postbuild-patch-__init__.py Wed Nov 19 
11:27:48 2003
@@ -1,5 +1,5 @@
---- work/SysInfo/SysInfo/__init__.py.orig      Fri Sep 12 22:38:38 2003
-+++ work/SysInfo/SysInfo/__init__.py   Mon Nov 17 10:50:07 2003
+--- SysInfo/SysInfo/__init__.py.orig   Fri Sep 12 22:38:38 2003
++++ SysInfo/SysInfo/__init__.py        Mon Nov 17 10:50:07 2003
 @@ -129,7 +129,8 @@
          signal.set("key2[%(index)d]"   % vars(), _("Clock:"))
          signal.set("value2[%(index)d]" % vars(), self.__cpu_speed)
Comment 2 Joe Marcus Clarke freebsd_committer freebsd_triage 2003-11-19 13:13:32 UTC
State Changed
From-To: open->closed

Franz's patch was committed.  Thanks!