make redist issues #45

Closed
opened 2023-03-02 19:05:13 +00:00 by badPointer · 8 comments
badPointer commented 2023-03-02 19:05:13 +00:00 (Migrated from git-old.n64.cc)

Running make redist causes an error, looks like a shell interference.
@netkas Could you please investigate?

Running make redist causes an error, looks like a shell interference. @netkas Could you please investigate?
badPointer commented 2023-03-02 19:05:13 +00:00 (Migrated from git-old.n64.cc)

assigned to @netkas

assigned to @netkas
badPointer commented 2023-03-02 19:06:38 +00:00 (Migrated from git-old.n64.cc)
[Logs from latest job](https://git.n64.cc/nosial/ncc/-/jobs/451)
netkas commented 2023-03-02 19:09:51 +00:00 (Migrated from git-old.n64.cc)

If i’m not mistaken, it looks like it’s trying to run the arguments as commands as well?


#10 [builder 5/5] RUN git clone https://git.n64.cc/nosial/ncc.git;                                    cd ncc; make redist
#10 0.192 Cloning into 'ncc'...
#10 3.000 # Generates/creates all the autoloader files
#10 3.001 make src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php
#10 3.002 make[1]: Entering directory '/tmp/ncc'
#10 3.003 /usr/local/bin/php  --output src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php \
#10 3.003 	src/ncc/ThirdParty/defuse/php-encryption
#10 3.011 Error in argument 1, char 1: no argument for option -
~~If i’m not mistaken, it looks like it’s trying to run the arguments as commands as well?~~ ``` #10 [builder 5/5] RUN git clone https://git.n64.cc/nosial/ncc.git; cd ncc; make redist #10 0.192 Cloning into 'ncc'... #10 3.000 # Generates/creates all the autoloader files #10 3.001 make src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php #10 3.002 make[1]: Entering directory '/tmp/ncc' #10 3.003 /usr/local/bin/php --output src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php \ #10 3.003 src/ncc/ThirdParty/defuse/php-encryption #10 3.011 Error in argument 1, char 1: no argument for option - ```
badPointer commented 2023-03-02 19:13:53 +00:00 (Migrated from git-old.n64.cc)

Those commands are a part of the Makefile, no?

Those commands are a part of the Makefile, no?
netkas commented 2023-03-02 19:56:08 +00:00 (Migrated from git-old.n64.cc)
#10 3.000 # Generates/creates all the autoloader files
#10 3.001 make src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php
#10 3.002 make[1]: Entering directory '/tmp/ncc'
#10 3.003 /usr/local/bin/php  --output src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php \
#10 3.003 	src/ncc/ThirdParty/defuse/php-encryption

php isn't supposed to run in this case, it's supposed to be phpab, notice the --output argument including the other arguments provided to php is not applicable to the standard php cli, however it is applicable to phpab

Double check your code and verify it that was that issue

``` #10 3.000 # Generates/creates all the autoloader files #10 3.001 make src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php #10 3.002 make[1]: Entering directory '/tmp/ncc' #10 3.003 /usr/local/bin/php --output src/ncc/ThirdParty/defuse/php-encryption/autoload_spl.php \ #10 3.003 src/ncc/ThirdParty/defuse/php-encryption ``` `php` isn't supposed to run in this case, it's supposed to be `phpab`, notice the `--output` argument including the other arguments provided to php is not applicable to the standard php cli, however it is applicable to `phpab` Double check your code and verify it that was that issue
netkas commented 2023-03-02 20:04:06 +00:00 (Migrated from git-old.n64.cc)

Or perhaps, another possible issue is that phpab was not installed correctly because in https://git.n64.cc/nosial/ncc/-/blob/dev/Makefile#L2 is where the variable PHPAB gets declared by running which phpab and setting the result of that as it's value

If this command fails to run, the variable would be empty. Hence why only php is running and not phpab, because from what i see in https://git.n64.cc/nosial/ncc/-/blob/dev/Makefile#L23 php is supposed to run but also followed by phpab

So try also verifying if phpab is getting installed correctly.

Or perhaps, another possible issue is that `phpab` was not installed correctly because in https://git.n64.cc/nosial/ncc/-/blob/dev/Makefile#L2 is where the variable `PHPAB` gets declared by running `which phpab` and setting the result of that as it's value If this command fails to run, the variable would be empty. Hence why only `php` is running and not `phpab`, because from what i see in https://git.n64.cc/nosial/ncc/-/blob/dev/Makefile#L23 `php` is supposed to run **but also followed by** `phpab` So try also verifying if `phpab` is getting installed correctly.
badPointer commented 2023-03-03 04:48:32 +00:00 (Migrated from git-old.n64.cc)

mentioned in commit 02a5e24b86

mentioned in commit 02a5e24b8623571a4f9cf9f91d31e7df627da5d2
badPointer commented 2023-03-03 04:48:52 +00:00 (Migrated from git-old.n64.cc)

Issue (hopefully) fixed, closing.

Issue (hopefully) fixed, closing.
badPointer (Migrated from git-old.n64.cc) closed this issue 2023-03-03 04:48:54 +00:00
Sign in to join this conversation.
No description provided.