[MacPorts] #49104: star @1.5.2: mkdir: /etc/default: Operation not permitted

MacPorts noreply at macports.org
Mon May 8 15:44:02 UTC 2023


#49104: star @1.5.2: mkdir: /etc/default: Operation not permitted
----------------------+--------------------------------
  Reporter:  rlhamil  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.3.4
Resolution:           |   Keywords:  elcapitan
      Port:  star     |
----------------------+--------------------------------

Comment (by RobK88):

 I have been able to get `star` v1.5.3 and v1.6 to compile and build just
 fine on my Mac running High Sierra.

 With `star` v1.5.3, `smake` works as expected.   But one cannot use
 `smake` when building the latest version of`star` - v1.6.  One sees
 strange errors:

 {{{
 creating xconfig.h
         ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/conf"
         ==> MAKING "all" ON SUBDIRECTORY "SRCROOT/inc"
         ==> MAKING "all" ON SUBCOMPONENT "SRCROOT/inc/align_test.mk"
         ==> MAKING DIRECTORY "OBJ/i386-darwin-clang"
         ==> MAKING DIRECTORY "OBJ/i386-darwin-clang/man"
         ==> MAKING DEPENDENCIES "OBJ/i386-darwin-clang/align_test.d"
 smake: No such file or directory. Can not open 'OBJ/i386-darwin-
 clang/OBJ/i386-darwin-clang/align_test.d'.
 smake: No such file or directory. *** Code 2 from command line for target
 'all'.
 smake: The following command caused the error:
 for MK in align_test.mk avoffset.mk ;                                   \
         do                                                              \
                 (                                                       \
                 if [ -r ./$MK ] ; then                                  \
                         echo "  ==> MAKING \"all\" ON SUBCOMPONENT
 \"SRCROOT/inc/$MK\""; "smake" -f $MK  XARCH=x86_64-darwin-clang all;\
                 else                                                    \
                         echo "NOTICE: Partial source (SRCROOT/inc/$MK)
 missing";\
                 fi                                                      \
                 );                                                      \
         done
 smake: Couldn't make 'all'.
 smake: Leaving  'smake'[1] from directory
 '/Users/rob/Downloads/star-1.6/inc'
 smake: Default commandline target: 'all'
 smake: Doing                       exit(1)
 smake: Operation not permitted. *** Code 1 from command line for target
 'all'.
 smake: The following command caused the error:
 list="";                                                        \
         if [ -d TARGETS -a -f TARGETS/__slot ]; then
 \
                 list=`echo TARGETS/[0123456789][0123456789]* |
 \
                         sed -e 's;TARGETS/[0123456789][0123456789];;g' |
 sed -e 's;!@!;/;g'`;\
         fi;
 \
         for DIR in ${list} ;
 \
         do
 \
                 (
 \
                 echo "  ==> MAKING \"all\" ON SUBDIRECTORY
 \"SRCROOT/$DIR\"";\
                 if [ -d ./$DIR -a -r ./$DIR/Makefile ] ; then
 \
                         cd ./$DIR && "smake"  XARCH=x86_64-darwin-clang
 DIRNAME=SRCROOT/$DIR all;               \
                 else
 \
                         echo "NOTICE: Partial source (SRCROOT/$DIR)
 missing";\
                 fi
 \
                 );
 \
         done
 smake: Couldn't make 'all'
 }}}


 If one really wants to use `smake`, one can either fix the various
 makefiles or just create symlinks linking the bogus phantom directories to
 the real ones.

 However, `star` v1.6 will build just fine using regular `make`.  This is
 the easiest approach!

 When I am back home in a few weeks, I will update the `star`portfile
 accordingly and will submit a Pull Request (PR).

-- 
Ticket URL: <https://trac.macports.org/ticket/49104#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list