mainnyacc parser generator - Support: sr #111260, Consult PKG_CONFIG before relying...

 
 

sr #111260: Consult PKG_CONFIG before relying on PATH.

Submitter:  Felix Lechner <lechner>
Submitted:  Fri 20 Jun 2025 12:25:57 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  mwette
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 07 Jul 2025 02:14:51 PM UTC, comment #4: 

I'm adding this to 2.03, using PKG_CONFIG

Matt Wette <mwette>
Group administrator
Fri 20 Jun 2025 10:05:35 PM UTC, comment #3: 

Hi Matt,

Well, it's not a $PKG_CONFIG_PATH issue.  That helps Pkg-config find the files shipped with a particular library.

My issue is Nyacc not finding the 'pkg-config' executable.

As for my choice of name, I owe you an apology.  I should have mentioned that I picked it.  I'm not sure there are community conventions but having a variable just like the executable, in uppercase, seems to be common throughout Makefiles and when one program calls another.

The only conflict I know of is Gzip.  It looks in $GZIP for command line options.

Any name is fine, really, as long as there is a way to override the plain "pkg-config" string.  Otherwise, it requires a $PATH and more care in order to be reproducible.

Thanks for thinking about it!

Kind regards
Felix

Felix Lechner <lechner>
Fri 20 Jun 2025 08:53:18 PM UTC, comment #2: 

And is this really a PKG_CONFIG_PATH issue?  That's what I usually deal with.

Matt Wette <mwette>
Group administrator
Fri 20 Jun 2025 08:46:54 PM UTC, comment #1: 

Is PKG_CONFIG your own invention or is there some community convention to use that?   I could not find a reference.  I'm trying to figure out the conventional way to deal with this.

Matt Wette <mwette>
Group administrator
Fri 20 Jun 2025 12:25:57 AM UTC, original submission:  

Hi Matt,

Sometimes pkg-config does not run locally when called from the FFI helper.  The attached patch consults the environment variable PKG_CONFIG before picking the string "pkg-config". Will you please consider the patch for potential acceptance.?

Thanks!

Kind regards
Felix

Felix Lechner <lechner>

 

Attached Files

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by mwette (Posted a comment)
  • -email is unavailable- added by lechner (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-07-07 mwette StatusIn Progress Done
        Open/ClosedOpen Closed
    2025-06-20 mwette StatusNone In Progress
        Assigned toNone mwette
    2025-06-20 lechner Attached File- Added 0001-For-pkg-config-in-the-FFI-helper-consult-PKG_CONFIG-.patch, #57307

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code