php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28385 [PATCH] some files in $(prefix)/lib/php/build/* installed with wrong permissions
Submitted: 2004-05-13 18:02 UTC Modified: 2004-12-21 05:59 UTC
Votes:5
Avg. Score:4.2 ± 0.7
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: ramsy at ramix dot jp Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ramsy at ramix dot jp
New email:
PHP Version: OS:

 

 [2004-05-13 18:02 UTC] ramsy at ramix dot jp
Description:
------------
$(prefix)/lib/php/build/* was 755.
When rpm package, It is misunderstood with a script and the file of that creates the broken package dependency.


Reproduce code:
---------------
scripts/Makefile.frag(part1):
 BUILD_FILES = \
 	scripts/phpize.m4 \
 	build/mkdep.awk \
-	build/shtool \
 	build/scan_makefile_in.awk \
 	Makefile.global \
 	acinclude.m4
 
+BUILD_FILES_EXEC = \
+	build/shtool
+

scripts/Makefile.frag(part2):
 	@echo "Installing build environment:     $(INSTALL_ROOT)$(phpbuilddir)/"
 	@$(mkinstalldirs) $(INSTALL_ROOT)$(phpbuilddir) $(INSTALL_ROOT)$(bindir) && \
-	(cd $(top_srcdir) && $(INSTALL) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir))
+	(cd $(top_srcdir) && \
+	$(INSTALL) $(BUILD_FILES_EXEC) $(INSTALL_ROOT)$(phpbuilddir) && \
+	$(INSTALL_DATA) $(BUILD_FILES) $(INSTALL_ROOT)$(phpbuilddir) )



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-05 11:54 UTC] hotta dot michihide at gmail dot com
i'm trying to rewrite a bit.

$(prefix)/lib/php/build/* have attributes of 755.
on building php as an rpm package, they are treated as 
scripts and build fails because of broken dependencies.
 [2004-12-21 05:59 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 13:01:31 2024 UTC