[LU-1935] Build warning for lustre/scripts directory Created: 13/Sep/12 Updated: 26/Dec/12 Resolved: 26/Dec/12 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.4.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Ned Bass |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 4408 |
| Description |
|
Since the landing of lustre/scripts/Makefile:740: warning: overriding commands for target `lustre'
$(genscripts): %: %.in
sed -e 's#@scriptlibdir@#$(scriptlibdir)#' < $< > $@
chmod +x $@
lustre/scripts/Makefile:389: warning: ignoring old commands for target `lustre'
lustre: $(top_builddir)/config.status $(srcdir)/lustre.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
This was caused by the addition of lustre to the genscripts variable. I don't know if this is serious or not, but I suspect something isn't working as it should be. |
| Comments |
| Comment by Ned Bass [ 13/Sep/12 ] |
|
A quick fix would be to just remove lustre from genscripts. The genscripts target (1) expands the @scriptlibdir@ token, which the lustre script doesn't use, and (2) adds execute permission, which is otherwise handled by 'make install'. However, I think a better fix would be to convert lustre.in from an auto-generated file to a static one. We generate it to expand @PFSCK@ and @TUNE2FS@ for ldiskfsprogs support, but we could just use /sbin/ {pfsck,tunefs}.ldiskfs if they exist, otherwise use the e2fsprogs versions. This is similar to what we did for test-framework.sh. |
| Comment by Ned Bass [ 17/Sep/12 ] |